arm/targets: Add rpi2, rename raspberry_pi to rpi1

* The Raspberry pi 2 uses a new SoC which differs slightly
  from the Raspberry Pi 1.
* Someday these two board targets could go away when we get
  FDT support.
This commit is contained in:
Alexander von Gluck IV
2015-03-07 12:31:12 -06:00
parent d05e5f1db6
commit 427d40adb5
10 changed files with 143 additions and 9 deletions
@@ -5,8 +5,8 @@
* Authors:
* Alexander von Gluck, kallisti5@unixzen.com
*/
#ifndef _BOARD_RASPBERRY_PI_BOARD_CONFIG_H
#define _BOARD_RASPBERRY_PI_BOARD_CONFIG_H
#ifndef _BOARD_RPI1_BOARD_CONFIG_H
#define _BOARD_RPI1_BOARD_CONFIG_H
#define BOARD_NAME_PRETTY "Raspberry Pi"
@@ -32,4 +32,4 @@
/* 3Mhz */
#endif /* _BOARD_RASPBERRY_PI_BOARD_CONFIG_H */
#endif /* _BOARD_RPI1_BOARD_CONFIG_H */
@@ -0,0 +1,35 @@
/*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Alexander von Gluck, [email protected]
*/
#ifndef _BOARD_RPI2_BOARD_CONFIG_H
#define _BOARD_RPI2_BOARD_CONFIG_H
#define BOARD_NAME_PRETTY "Raspberry Pi 2"
#define BOARD_CPU_TYPE_ARM7 1
#define BOARD_CPU_BCM2836 1
#include <arch/arm/bcm283X.h>
// UART Settings
#define BOARD_UART_AMBA_PL011 1
#define BOARD_UART1_BASE UART0_BASE
// PL011 UART
#define BOARD_UART2_BASE UART1_BASE + 0x40
// miniUART
#define BOARD_UART3_BASE 0
// N/A
#define BOARD_UART_DEBUG BOARD_UART1_BASE
#define BOARD_UART_CLOCK 3000000
/* 3Mhz */
#endif /* _BOARD_RPI2_BOARD_CONFIG_H */