am33xx: enable GPMC clocks for TI814x
PATCH 1/2 am33xx: enable GPMC clocks for TI814x
GPMC registers need to be pre-initialized for NAND and NOR probe. So this patch brings out GPMC H/W engine from IDLE state.
Signed-off-by Pekon Gupta <[email protected]>
--- arch/arm/cpu/armv7/am33xx/clock_ti814x.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/cpu/armv7/am33xx/clock_ti814x.c +5 -0
@@ -269,6 +269,11 @@ static void enable_per_clocks(void)while (readl (&cmalwon->uart0clkctrl) !=PRCM_MOD_EN ) ; +/* GPMC */ +writel (PRCM_MOD_EN , &cmalwon->gpmcclkctrl); +while (readl (&cmalwon->gpmcclkctrl) !=PRCM_MOD_EN ) + ; +/* HSMMC1 */ writel (PRCM_MOD_EN , &cmalwon->mmchs1clkctrl);while (readl (&cmalwon->mmchs1clkctrl) !=PRCM_MOD_EN )
Signature · 1 line
1.8.1
PATCH 2/2 ti814x_evm: enable support for NAND
ti814x_evm has on-board socket for using Micron (MT29Fxx) family of NAND devices to GPMC interface. This patch
- adds NAND related pin-mux configuration for same
- adds #defines for NAND partitions to TI814x configs
- enables support for NAND in TI814x configs
-
Signed-off-by Pekon Gupta <[email protected]>
--- board/ti/ti814x/evm.c | 4 +++ board/ti/ti814x/evm.h | 1 + board/ti/ti814x/mux.c | 59 +++++++++++++++++++++++++++++++++++++ include/configs/ti814x_evm.h | 70 +++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 133 insertions(+), 1 deletion(-)
board/ti/ti814x/evm.c +4 -0
@@ -140,6 +140,9 @@ void s_init(void)/* Set Ethernet pins */ enable_enet_pin_mux (); +/* Set NAND pins */ +enable_nand_pin_mux (); +/* Enable UART */ uart_enable ();
@@ -162,6 +165,7 @@ void s_init(void)int board_init (void ) { gd->bd->bi_boot_params =PHYS_DRAM_1 +0x100 ; +gpmc_init ();return 0 ; }
board/ti/ti814x/evm.h +1 -0
@@ -4,5 +4,6 @@void enable_uart0_pin_mux (void );void enable_mmc1_pin_mux (void );void enable_enet_pin_mux (void ); +void enable_nand_pin_mux (void );#endif /* _EVM_H */
board/ti/ti814x/mux.c +59 -0
68 lines not on this page · raw message
include/configs/ti814x_evm.h +69 -1
105 lines not on this page · raw message
Signature · 1 line
1.8.1