Pi uart: Begin first attempts at UART communication on Pi.
* Make Kernel ARM UART slightly more generic through (BOARD_UART_CLOCK) configured per board * Add initial Raspberry Pi serial code * Still rough and non-working
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#ifndef _BOARD_OVERO_BOARD_CONFIG_H
|
||||
#define _BOARD_OVERO_BOARD_CONFIG_H
|
||||
|
||||
|
||||
#define BOARD_NAME_PRETTY "Beagle Board"
|
||||
|
||||
#define BOARD_CPU_TYPE_OMAP 1
|
||||
@@ -12,10 +13,15 @@
|
||||
|
||||
#include <arch/arm/omap3.h>
|
||||
|
||||
// UART Settings
|
||||
#define BOARD_UART1_BASE OMAP_UART1_BASE
|
||||
#define BOARD_UART2_BASE OMAP_UART2_BASE
|
||||
#define BOARD_UART3_BASE OMAP_UART3_BASE
|
||||
|
||||
#define BOARD_DEBUG_UART 2
|
||||
|
||||
#define BOARD_UART_CLOCK 48000000
|
||||
// 48MHz (APLL96/2)
|
||||
|
||||
|
||||
#endif /* _BOARD_OVERO_BOARD_CONFIG_H */
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#ifndef _BOARD_FREERUNNER_BOARD_CONFIG_H
|
||||
#define _BOARD_FREERUNNER_BOARD_CONFIG_H
|
||||
|
||||
|
||||
#define BOARD_NAME_PRETTY "Openmoko Neo FreeRunner"
|
||||
|
||||
#define BOARD_CPU_TYPE_ARM9 1
|
||||
@@ -12,10 +13,15 @@
|
||||
|
||||
#include <arch/arm/arm920t.h>
|
||||
|
||||
// UART Settings
|
||||
#define BOARD_UART1_BASE UART0_BASE
|
||||
#define BOARD_UART2_BASE UART1_BASE
|
||||
#define BOARD_UART3_BASE UART2_BASE
|
||||
|
||||
#define BOARD_DEBUG_UART 2
|
||||
|
||||
#define BOARD_UART_CLOCK 48000000
|
||||
// 48MHz (APLL96/2)
|
||||
|
||||
|
||||
#endif /* _BOARD_FREERUNNER_BOARD_CONFIG_H */
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#ifndef _BOARD_OVERO_BOARD_CONFIG_H
|
||||
#define _BOARD_OVERO_BOARD_CONFIG_H
|
||||
|
||||
|
||||
#define BOARD_NAME_PRETTY "Gumstix Overo"
|
||||
|
||||
#define BOARD_CPU_TYPE_OMAP 1
|
||||
@@ -12,10 +13,15 @@
|
||||
|
||||
#include <arch/arm/omap3.h>
|
||||
|
||||
// UART Settings
|
||||
#define BOARD_UART1_BASE OMAP_UART1_BASE
|
||||
#define BOARD_UART2_BASE OMAP_UART2_BASE
|
||||
#define BOARD_UART3_BASE OMAP_UART3_BASE
|
||||
|
||||
#define BOARD_DEBUG_UART 2
|
||||
|
||||
#define BOARD_UART_CLOCK 48000000
|
||||
// 48MHz (APLL96/2)
|
||||
|
||||
|
||||
#endif /* _BOARD_OVERO_BOARD_CONFIG_H */
|
||||
|
||||
@@ -15,12 +15,15 @@
|
||||
|
||||
#include <arch/arm/bcm2708.h>
|
||||
|
||||
// UART Settings
|
||||
#define BOARD_UART1_BASE UART0_BASE
|
||||
#define BOARD_UART2_BASE UART1_BASE
|
||||
#define BOARD_UART3_BASE UART1_BASE
|
||||
#warning NO UART3!!!
|
||||
#define BOARD_UART3_BASE 0
|
||||
|
||||
#define BOARD_DEBUG_UART 0
|
||||
|
||||
#define BOARD_UART_CLOCK 125000000
|
||||
/* 125Mhz, strange */
|
||||
|
||||
|
||||
#endif /* _BOARD_RASPBERRY_PI_BOARD_CONFIG_H */
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#ifndef _BOARD_VERDEX_BOARD_CONFIG_H
|
||||
#define _BOARD_VERDEX_BOARD_CONFIG_H
|
||||
|
||||
|
||||
#define BOARD_NAME_PRETTY "Gumstix Verdex"
|
||||
|
||||
#define BOARD_CPU_TYPE_PXA 1
|
||||
@@ -12,10 +13,15 @@
|
||||
|
||||
#include <arch/arm/pxa270.h>
|
||||
|
||||
// UART Settings
|
||||
#define BOARD_UART1_BASE FFUART_BASE
|
||||
#define BOARD_UART2_BASE BTUART_BASE
|
||||
#define BOARD_UART3_BASE STUART_BASE
|
||||
|
||||
#define BOARD_DEBUG_UART 0
|
||||
|
||||
#define BOARD_UART_CLOCK 48000000
|
||||
// 48MHz (APLL96/2)
|
||||
|
||||
|
||||
#endif /* _BOARD_VERDEX_BOARD_CONFIG_H */
|
||||
|
||||
Reference in New Issue
Block a user