ARMV7: Add basic gpmc initialization for OMAP4
PATCH 1/1 ARMV7: Add basic gpmc initialization for OMAP4
This patch adds a gpmc_init function for OMAP4 and adds calls to gpmc_init for existing OMAP4 boards: panda and sdp4430
--- arch/arm/cpu/armv7/omap4/Makefile | 1 + arch/arm/cpu/armv7/omap4/mem.c | 45 +++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/cpu.h | 48 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/omap4.h | 2 +- arch/arm/include/asm/arch-omap4/sys_proto.h | 1 + board/ti/panda/panda.c | 2 + board/ti/sdp4430/sdp.c | 2 + 7 files changed, 100 insertions(+), 1 deletions(-) create mode 100644 arch/arm/cpu/armv7/omap4/mem.c
arch/arm/cpu/armv7/omap4/Makefile +1 -0
@@ -28,6 +28,7 @@ LIB = $(obj)lib$(SOC).a SOBJS += lowlevel_init.o COBJS += board.o +COBJS += mem.o COBJS += sys_info.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
arch/arm/cpu/armv7/omap4/mem.c new file +45 -0
45 lines not on this page · raw message
arch/arm/include/asm/arch-omap4/cpu.h +48 -0
60 lines not on this page · raw message
arch/arm/include/asm/arch-omap4/omap4.h +1 -1
@@ -62,7 +62,7 @@#define SYNC_32KTIMER_BASE (OMAP44XX_L4_WKUP_BASE + 0x4000)/* GPMC */ -#define GPMC_BASE 0x50000000 +#define OMAP44XX_GPMC_BASE 0x50000000/* * Hardware Register Details
arch/arm/include/asm/arch-omap4/sys_proto.h +1 -0
@@ -28,6 +28,7 @@ struct omap_sysinfo {char *board_string; }; +void gpmc_init (void );void watchdog_init (void );u32 get_device_type (void );void invalidate_dcache (u32 );
board/ti/panda/panda.c +2 -0
@@ -37,6 +37,8 @@ const struct omap_sysinfo sysinfo = {*/ int board_init (void ) { +gpmc_init (); + gd->bd->bi_arch_number =MACH_TYPE_OMAP4_PANDA ; gd->bd->bi_boot_params = (0x80000000 +0x100 );/* boot param addr */
board/ti/sdp4430/sdp.c +2 -0
@@ -38,6 +38,8 @@ const struct omap_sysinfo sysinfo = {*/ int board_init (void ) { +gpmc_init (); + gd->bd->bi_arch_number =MACH_TYPE_OMAP_4430SDP ; gd->bd->bi_boot_params = (0x80000000 +0x100 );/* boot param addr */
Signature · 1 line
1.7.0.4
Paulraj
PATCH 1/1 ARMV7: Add basic gpmc initialization for OMAP4
Quoted 7 lines
This patch adds a
gpmc_initfunction for OMAP4 and adds calls togpmc_initfor existing OMAP4 boards: panda and sdp4430Signed-off-by Steve Sakoman <[email protected]>
Quoted 12 lines
--- arch/arm/cpu/armv7/omap4/Makefile | 1 + arch/arm/cpu/armv7/omap4/mem.c | 45 +++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/cpu.h | 48 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/omap4.h | 2 +- arch/arm/include/asm/arch-omap4/sys_proto.h | 1 + board/ti/panda/panda.c | 2 + board/ti/sdp4430/sdp.c | 2 + 7 files changed, 100 insertions(+), 1 deletions(-) create mode 100644 arch/arm/cpu/armv7/omap4/mem.c
ERROR: trailing whitespace
#43: FILE: arch/arm/cpu/armv7/omap4/mem.c:4:
+ * $
WARNING: please, no space before tabs
#114: FILE: arch/arm/include/asm/arch-omap4/cpu.h:55:
+^Iu32 timeout_control; ^I/* 0x40 */$
total: 1 errors, 1 warnings, 143 lines checked
please fix the above checkpatch errors
Regards,
Sandeep
Paulraj
PATCH 1/1 ARMV7: Add basic gpmc initialization for OMAP4
Quoted 23 lines
Quoted 6 lines
This patch adds a
gpmc_initfunction for OMAP4 and adds calls togpmc_initfor existing OMAP4 boards: panda and sdp4430Signed-off-by Steve Sakoman <[email protected]>Quoted 12 lines
--- arch/arm/cpu/armv7/omap4/Makefile | 1 + arch/arm/cpu/armv7/omap4/mem.c | 45 +++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/cpu.h | 48 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-omap4/omap4.h | 2 +- arch/arm/include/asm/arch-omap4/sys_proto.h | 1 + board/ti/panda/panda.c | 2 + board/ti/sdp4430/sdp.c | 2 + 7 files changed, 100 insertions(+), 1 deletions(-) create mode 100644 arch/arm/cpu/armv7/omap4/mem.cERROR: trailing whitespace
#43: FILE:arch/arm/cpu/armv7/omap4/mem.c:4:
+ * $
Quoted 8 lines
WARNING: please, no space before tabs
#114: FILE:arch/arm/include/asm/arch-omap4/cpu.h:55:
+^Iu32timeout_control; ^I/*0x40*/$total: 1 errors, 1 warnings, 143 lines checked
please fix the above checkpatch errors
I fixed them myself
Pushed to u-boot-ti