1 // SPDX-License-Identifier: GPL-2.0+
6 #include <linux/bitops.h>
10 #include <asm/arch/cpu.h>
11 #include <asm/arch/soc.h>
12 #include <asm/arch/mpp.h>
13 #include <asm/arch/gpio.h>
15 #define DB_88F6281_OE_LOW ~(BIT(7))
16 #define DB_88F6281_OE_HIGH ~(BIT(15) | BIT(14) | BIT(13) | BIT(4))
17 #define DB_88F6281_OE_VAL_LOW BIT(7)
18 #define DB_88F6281_OE_VAL_HIGH 0
20 DECLARE_GLOBAL_DATA_PTR;
22 int board_early_init_f(void)
24 mvebu_config_gpio(DB_88F6281_OE_VAL_LOW,
25 DB_88F6281_OE_VAL_HIGH,
26 DB_88F6281_OE_LOW, DB_88F6281_OE_HIGH);
28 /* Multi-Purpose Pins Functionality configuration */
29 static const u32 kwmpp_config[] = {
30 #ifdef CONFIG_CMD_NAND
89 kirkwood_mpp_conf(kwmpp_config, NULL);
96 gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
101 #ifdef CONFIG_RESET_PHY_R
102 /* automatically defined by kirkwood config.h */