ib62x0.c (3dc23f7852158fafde9eb736060f9e8131997f19) ib62x0.c (d5c5132f878394b7487d3f6da0d469aa72737318)
1/*
2 * Copyright (C) 2011-2012
3 * Gerald Kerma <dreagle@doukki.net>
4 * Luka Perkov <luka@openwrt.org>
5 * Simon Baatz <gmbnomis@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */

--- 10 unchanged lines hidden (view full) ---

19
20int board_early_init_f(void)
21{
22 /*
23 * default gpio configuration
24 * There are maximum 64 gpios controlled through 2 sets of registers
25 * the below configuration configures mainly initial LED status
26 */
1/*
2 * Copyright (C) 2011-2012
3 * Gerald Kerma <dreagle@doukki.net>
4 * Luka Perkov <luka@openwrt.org>
5 * Simon Baatz <gmbnomis@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */

--- 10 unchanged lines hidden (view full) ---

19
20int board_early_init_f(void)
21{
22 /*
23 * default gpio configuration
24 * There are maximum 64 gpios controlled through 2 sets of registers
25 * the below configuration configures mainly initial LED status
26 */
27 kw_config_gpio(IB62x0_OE_VAL_LOW,
28 IB62x0_OE_VAL_HIGH,
29 IB62x0_OE_LOW, IB62x0_OE_HIGH);
27 mvebu_config_gpio(IB62x0_OE_VAL_LOW,
28 IB62x0_OE_VAL_HIGH,
29 IB62x0_OE_LOW, IB62x0_OE_HIGH);
30
31 /* Set SATA activity LEDs to default off */
32 writel(MVSATAHC_LED_POLARITY_CTRL, MVSATAHC_LED_CONF_REG);
33 /* Multi-Purpose Pins Functionality configuration */
34 static const u32 kwmpp_config[] = {
35 MPP0_NF_IO2,
36 MPP1_NF_IO3,
37 MPP2_NF_IO4,

--- 31 unchanged lines hidden ---
30
31 /* Set SATA activity LEDs to default off */
32 writel(MVSATAHC_LED_POLARITY_CTRL, MVSATAHC_LED_CONF_REG);
33 /* Multi-Purpose Pins Functionality configuration */
34 static const u32 kwmpp_config[] = {
35 MPP0_NF_IO2,
36 MPP1_NF_IO3,
37 MPP2_NF_IO4,

--- 31 unchanged lines hidden ---