arm: socfpga: spl: allow bootrom to enable IOs after warm reset
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -154,6 +154,9 @@ void spl_board_init(void)
|
|||||||
/* reconfigure the PLLs */
|
/* reconfigure the PLLs */
|
||||||
cm_basic_init(&cm_default_cfg);
|
cm_basic_init(&cm_default_cfg);
|
||||||
|
|
||||||
|
/* Enable bootrom to configure IOs. */
|
||||||
|
sysmgr_enable_warmrstcfgio();
|
||||||
|
|
||||||
/* configure the IOCSR / IO buffer settings */
|
/* configure the IOCSR / IO buffer settings */
|
||||||
if (scan_mgr_configure_iocsr())
|
if (scan_mgr_configure_iocsr())
|
||||||
hang();
|
hang();
|
||||||
|
|||||||
@@ -66,3 +66,12 @@ void sysmgr_pinmux_init(void)
|
|||||||
|
|
||||||
populate_sysmgr_fpgaintf_module();
|
populate_sysmgr_fpgaintf_module();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This bit allows the bootrom to configure the IOs after a warm reset.
|
||||||
|
*/
|
||||||
|
void sysmgr_enable_warmrstcfgio(void)
|
||||||
|
{
|
||||||
|
setbits_le32(&sysmgr_regs->romcodegrp_ctrl,
|
||||||
|
SYSMGR_ROMCODEGRP_CTRL_WARMRSTCFGIO);
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
void sysmgr_pinmux_init(void);
|
void sysmgr_pinmux_init(void);
|
||||||
|
void sysmgr_enable_warmrstcfgio(void);
|
||||||
|
|
||||||
/* declaration for handoff table type */
|
/* declaration for handoff table type */
|
||||||
extern unsigned long sys_mgr_init_table[CONFIG_HPS_PINMUX_NUM];
|
extern unsigned long sys_mgr_init_table[CONFIG_HPS_PINMUX_NUM];
|
||||||
|
|||||||
Reference in New Issue
Block a user