ARM: OMAP4/5: Remove dead code against CONFIG_SYS_ENABLE_PADS_ALL
PATCH 2/2 ARM: OMAP4/5: Remove dead code against CONFIG_SYS_ENABLE_PADS_ALL
The commitf3f98bb0 : "ARM: OMAP4/5: Do not configure non essential pads, clocks, dplls" removed the config option aimed towards moving that stuff into kernel, which renders some code unreachable. Remove that code.
--- arch/arm/cpu/armv7/omap-common/hwinit-common.c | 6 - arch/arm/include/asm/arch-omap4/sys_proto.h | 1 - arch/arm/include/asm/arch-omap5/sys_proto.h | 1 - board/ti/omap5_evm/evm.c | 11 - board/ti/omap5_evm/mux_data.h | 234 ------------------------ board/ti/panda/panda.c | 28 --- board/ti/panda/panda_mux_data.h | 186 ------------------- board/ti/sdp4430/sdp.c | 18 -- board/ti/sdp4430/sdp4430_mux_data.h | 197 -------------------- 9 files changed, 0 insertions(+), 682 deletions(-)
arch/arm/cpu/armv7/omap-common/hwinit-common.c +0 -6
@@ -51,16 +51,10 @@ static void set_mux_conf_regs(void)set_muxconf_regs_essential ();break ;case OMAP_INIT_CONTEXT_UBOOT_AFTER_SPL : -#ifdef CONFIG_SYS_ENABLE_PADS_ALL -set_muxconf_regs_non_essential (); -#endif break ;case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR :case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH :set_muxconf_regs_essential (); -#ifdef CONFIG_SYS_ENABLE_PADS_ALL -set_muxconf_regs_non_essential (); -#endif break ; } }
arch/arm/include/asm/arch-omap4/sys_proto.h +0 -1
@@ -37,7 +37,6 @@ void watchdog_init(void);u32 get_device_type (void );void do_set_mux (u32 base,struct pad_conf_entry const *array,int size);void set_muxconf_regs_essential (void ); -void set_muxconf_regs_non_essential (void );void sr32 (void *,u32 ,u32 ,u32 );u32 wait_on_value (u32 ,u32 ,void *,u32 );void sdelay (unsigned long );
arch/arm/include/asm/arch-omap5/sys_proto.h +0 -1
@@ -38,7 +38,6 @@ void watchdog_init(void);u32 get_device_type (void );void do_set_mux (u32 base,struct pad_conf_entry const *array,int size);void set_muxconf_regs_essential (void ); -void set_muxconf_regs_non_essential (void );void sr32 (void *,u32 ,u32 ,u32 );u32 wait_on_value (u32 ,u32 ,void *,u32 );void sdelay (unsigned long );
board/ti/omap5_evm/evm.c +0 -11
@@ -80,17 +80,6 @@ void set_muxconf_regs_essential(void) sizeof(struct pad_conf_entry)); } -void set_muxconf_regs_non_essential (void ) -{ -do_set_mux (CONTROL_PADCONF_CORE , core_padconf_array_non_essential, -sizeof (core_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); - -do_set_mux (CONTROL_PADCONF_WKUP , wkup_padconf_array_non_essential, -sizeof (wkup_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); -} -#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) {
board/ti/omap5_evm/mux_data.h +0 -234
238 lines not on this page · raw message
board/ti/panda/panda.c +0 -28
@@ -148,34 +148,6 @@ void set_muxconf_regs_essential(void) sizeof(struct pad_conf_entry)); } -void set_muxconf_regs_non_essential (void ) -{ -do_set_mux (CONTROL_PADCONF_CORE , core_padconf_array_non_essential, -sizeof (core_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); - -if (omap_revision () <OMAP4460_ES1_0 ) -do_set_mux (CONTROL_PADCONF_CORE , - core_padconf_array_non_essential_4430, -sizeof (core_padconf_array_non_essential_4430) / -sizeof (struct pad_conf_entry )); -else -do_set_mux (CONTROL_PADCONF_CORE , - core_padconf_array_non_essential_4460, -sizeof (core_padconf_array_non_essential_4460) / -sizeof (struct pad_conf_entry )); - -do_set_mux (CONTROL_PADCONF_WKUP , wkup_padconf_array_non_essential, -sizeof (wkup_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); - -if (omap_revision () <OMAP4460_ES1_0 ) -do_set_mux (CONTROL_PADCONF_WKUP , - wkup_padconf_array_non_essential_4430, -sizeof (wkup_padconf_array_non_essential_4430) / -sizeof (struct pad_conf_entry )); -} -#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) {
board/ti/panda/panda_mux_data.h +0 -186
190 lines not on this page · raw message
board/ti/sdp4430/sdp.c +0 -18
@@ -87,24 +87,6 @@ void set_muxconf_regs_essential(void) sizeof(struct pad_conf_entry)); } -void set_muxconf_regs_non_essential (void ) -{ -do_set_mux (CONTROL_PADCONF_CORE , core_padconf_array_non_essential, -sizeof (core_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); - -do_set_mux (CONTROL_PADCONF_WKUP , wkup_padconf_array_non_essential, -sizeof (wkup_padconf_array_non_essential) / -sizeof (struct pad_conf_entry )); - -if (omap_revision () <OMAP4460_ES1_0 ) { -do_set_mux (CONTROL_PADCONF_WKUP , - wkup_padconf_array_non_essential_4430, -sizeof (wkup_padconf_array_non_essential_4430) / -sizeof (struct pad_conf_entry )); - } -} -#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) {
board/ti/sdp4430/sdp4430_mux_data.h +0 -197
201 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 2/2 ARM: OMAP4/5: Remove dead code against CONFIG_SYS_ENABLE_PADS_ALL
Quoted 6 lines · Jassi Brar
The commit
f3f98bb0: "ARM: OMAP4/5: Do not configure non essential pads, clocks, dplls" removed the config option aimed towards moving that stuff into kernel, which renders some code unreachable. Remove that code.Signed-off-by Jassi Brar <[email protected]>
With logical changes to apply again, applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140124/6eb8b442/attachment.pgp>