2 * Copyright (C) 2013 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/system_manager.h>
10 #include <asm/arch/fpga_manager.h>
12 DECLARE_GLOBAL_DATA_PTR;
14 static struct socfpga_system_manager *sysmgr_regs =
15 (struct socfpga_system_manager *)SOCFPGA_SYSMGR_ADDRESS;
18 * Configure all the pin muxes
20 void sysmgr_pinmux_init(void)
22 uint32_t regs = (uint32_t)&sysmgr_regs->emacio[0];
25 for (i = 0; i < ARRAY_SIZE(sys_mgr_init_table); i++) {
26 writel(sys_mgr_init_table[i], regs);