2012-04-19 18:44:38 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Alexander von Gluck, kallisti5@unixzen.com
|
|
|
|
*/
|
2015-03-07 12:31:12 -06:00
|
|
|
#ifndef _BOARD_RPI2_BOARD_CONFIG_H
|
|
|
|
#define _BOARD_RPI2_BOARD_CONFIG_H
|
2012-04-19 18:44:38 -05:00
|
|
|
|
|
|
|
|
2015-03-07 12:31:12 -06:00
|
|
|
#define BOARD_NAME_PRETTY "Raspberry Pi 2"
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2015-03-07 12:31:12 -06:00
|
|
|
#define BOARD_CPU_TYPE_ARM7 1
|
|
|
|
#define BOARD_CPU_BCM2836 1
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2015-03-07 11:11:53 -06:00
|
|
|
#include <arch/arm/bcm283X.h>
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2015-04-04 17:44:06 -05:00
|
|
|
#define DEVICE_BASE BCM2836_PERIPHERAL_BASE
|
|
|
|
#define DEVICE_SIZE 0xFFFFFF
|
|
|
|
|
|
|
|
#define VECT_BASE 0xFFFF0000
|
|
|
|
#define VECT_SIZE SIZE_4K
|
|
|
|
|
|
|
|
#define SDRAM_BASE BCM283X_SDRAM_BASE
|
|
|
|
#define SDRAM_SIZE 0x4000000
|
|
|
|
// 64Mb
|
|
|
|
|
2012-05-04 21:59:50 -05:00
|
|
|
// UART Settings
|
2015-03-07 13:42:18 -06:00
|
|
|
#define BOARD_UART_PL011 1
|
2012-05-06 16:26:08 -05:00
|
|
|
|
2012-04-19 20:11:24 -05:00
|
|
|
#define BOARD_UART1_BASE UART0_BASE
|
2012-05-10 12:38:52 -05:00
|
|
|
// PL011 UART
|
2012-05-06 19:30:03 -05:00
|
|
|
#define BOARD_UART2_BASE UART1_BASE + 0x40
|
2012-05-10 12:38:52 -05:00
|
|
|
// miniUART
|
2012-05-04 21:59:50 -05:00
|
|
|
#define BOARD_UART3_BASE 0
|
2012-05-10 12:38:52 -05:00
|
|
|
// N/A
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2015-03-07 13:42:18 -06:00
|
|
|
#define BOARD_UART_DEBUG DEVICE_BASE + BOARD_UART1_BASE
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2012-05-06 22:53:56 -05:00
|
|
|
#define BOARD_UART_CLOCK 3000000
|
|
|
|
/* 3Mhz */
|
2012-05-04 21:59:50 -05:00
|
|
|
|
2012-04-19 18:44:38 -05:00
|
|
|
|
2015-03-07 12:31:12 -06:00
|
|
|
#endif /* _BOARD_RPI2_BOARD_CONFIG_H */
|