2 * Copyright (C) 2013 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/system_manager.h>
11 DECLARE_GLOBAL_DATA_PTR;
14 * Configure all the pin muxes
16 void sysmgr_pinmux_init(void)
18 unsigned long offset = CONFIG_SYSMGR_PINMUXGRP_OFFSET;
20 const unsigned long *pval = sys_mgr_init_table;
23 for (i = 0; i < ARRAY_SIZE(sys_mgr_init_table);
24 i++, offset += sizeof(unsigned long)) {
25 writel(*pval++, (SOCFPGA_SYSMGR_ADDRESS + offset));