2 * Copyright (C) 2009-2012
3 * Wojciech Dubowik <wojciech.dubowik@neratec.com>
4 * Luka Perkov <luka@openwrt.org>
6 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/cpu.h>
12 #include <asm/arch/soc.h>
13 #include <asm/arch/mpp.h>
16 DECLARE_GLOBAL_DATA_PTR;
18 int board_early_init_f(void)
21 * default gpio configuration
22 * There are maximum 64 gpios controlled through 2 sets of registers
23 * the below configuration configures mainly initial LED status
25 mvebu_config_gpio(ICONNECT_OE_VAL_LOW,
27 ICONNECT_OE_LOW, ICONNECT_OE_HIGH);
29 /* Multi-Purpose Pins Functionality configuration */
30 static const u32 kwmpp_config[] = {
37 MPP6_SYSRST_OUTn, /* Reset signal */
39 MPP8_TW_SDA, /* I2C */
40 MPP9_TW_SCK, /* I2C */
43 MPP12_GPO, /* Reset button */
66 MPP35_GPIO, /* OTB button */
72 MPP41_GPIO, /* LED brightness */
73 MPP42_GPIO, /* LED power (blue) */
74 MPP43_GPIO, /* LED power (red) */
75 MPP44_GPIO, /* LED USB 1 */
76 MPP45_GPIO, /* LED USB 2 */
77 MPP46_GPIO, /* LED USB 3 */
78 MPP47_GPIO, /* LED USB 4 */
79 MPP48_GPIO, /* LED OTB */
83 kirkwood_mpp_conf(kwmpp_config, NULL);
89 /* adress of boot parameters */
90 gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;