pxa168: avengers lite board bring up
Subsystems (3)
PATCH 1/1 pxa168: avengers lite board bring up
Signed-off-by Jing Xiang <[email protected]>
Signed-off-by Jack Ren <[email protected]>
Signed-off-by Haojian Zhuang <[email protected]>
--- arch/arm/configs/pxa168_defconfig | 125 ++++++++++++++++----------- arch/arm/mach-mmp/Kconfig | 7 ++ arch/arm/mach-mmp/Makefile | 1 + arch/arm/mach-mmp/avengers_lite.c | 51 +++++++++++ arch/arm/mach-mmp/include/mach/uncompress.h | 12 ++- 5 files changed, 145 insertions(+), 51 deletions(-) create mode 100644 arch/arm/mach-mmp/avengers_lite.c
(quoted diff) +0 -0
b/arch/arm/configs/pxa168_defconfig
index 791b8c3..e9fdfd6 100644
arch/arm/configs/pxa168_defconfig +76 -49
376 lines not on this page · raw message
arch/arm/mach-mmp/Kconfig +7 -0
@@ -16,6 +16,13 @@ config MACH_ZYLONITE2 Say 'Y' here if you want to support the Marvell PXA168-based Zylonite2 Development Board. +config MACH_AVENGERS_LITE + bool "Marvell's PXA168 Avengers Lite Development Board" + select CPU_PXA168 + help + Say 'Y' here if you want to support the Marvell PXA168-based + Avengers Lite Development Board. + config MACH_TAVOREVB bool "Marvell's PXA910 TavorEVB Development Board" select CPU_PXA910
arch/arm/mach-mmp/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_CPU_MMP2) += mmp2.o irq-mmp2.o # board support obj-$(CONFIG_MACH_ASPENITE) += aspenite.o obj-$(CONFIG_MACH_ZYLONITE2) += aspenite.o +obj-$(CONFIG_MACH_AVENGERS_LITE)+= avengers_lite.o obj-$(CONFIG_MACH_TAVOREVB) += tavorevb.o obj-$(CONFIG_MACH_TTC_DKB) += ttc_dkb.o obj-$(CONFIG_MACH_FLINT) += flint.o
(quoted diff) +0 -0
b/arch/arm/mach-mmp/avengers_lite.c
new file mode 100644
index 0000000..494e560
arch/arm/mach-mmp/avengers_lite.c new file +51 -0
51 lines not on this page · raw message
(quoted diff) +0 -0
b/arch/arm/mach-mmp/include/mach/uncompress.h
index c93d5fa..1902f6d 100644
arch/arm/mach-mmp/include/mach/uncompress.h +10 -2
@@ -8,14 +8,16 @@#include <linux/serial_reg.h> #include <mach/addr-map.h> +#include <asm/mach-types.h> #define UART1_BASE (APB_PHYS_BASE + 0x36000)#define UART2_BASE (APB_PHYS_BASE + 0x17000)#define UART3_BASE (APB_PHYS_BASE + 0x18000) +static volatile unsigned long *UART = (volatile unsigned long *)UART2_BASE ; +static inline void putc (char c) { -volatile unsigned long *UART = (unsigned long *)UART2_BASE ;/* UART enabled? */ if (!(UART [UART_IER ] &UART_IER_UUE ))
@@ -34,8 +36,14 @@ static inline void flush(void) { } +static inline void arch_decomp_setup (void ) +{ +if (machine_is_avengers_lite ()) +UART = (volatile unsigned long *)UART3_BASE ; +} +/* * nothing to do */ -#define arch_decomp_setup () +#define arch_decomp_wdog ()
Signature · 1 line
1.5.6.5