projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPL: add support to boot from a partition type
[oweals/u-boot.git]
/
arch
/
arm
/
mach-socfpga
/
system_manager.c
diff --git
a/arch/arm/mach-socfpga/system_manager.c
b/arch/arm/mach-socfpga/system_manager.c
index 5ed47c3cff354a90e9513feea9895c4a7b561cfc..75a65f3e62369cec486bf70549a15592b8dcceb6 100644
(file)
--- a/
arch/arm/mach-socfpga/system_manager.c
+++ b/
arch/arm/mach-socfpga/system_manager.c
@@
-57,9
+57,13
@@
static void populate_sysmgr_fpgaintf_module(void)
void sysmgr_pinmux_init(void)
{
uint32_t regs = (uint32_t)&sysmgr_regs->emacio[0];
void sysmgr_pinmux_init(void)
{
uint32_t regs = (uint32_t)&sysmgr_regs->emacio[0];
+ const u8 *sys_mgr_init_table;
+ unsigned int len;
int i;
int i;
- for (i = 0; i < ARRAY_SIZE(sys_mgr_init_table); i++) {
+ sysmgr_get_pinmux_table(&sys_mgr_init_table, &len);
+
+ for (i = 0; i < len; i++) {
writel(sys_mgr_init_table[i], regs);
regs += sizeof(regs);
}
writel(sys_mgr_init_table[i], regs);
regs += sizeof(regs);
}