2
* Maintainer : Prafulla Wadaskar <prafulla@marvell.com>
5
* Marvell Semiconductor <www.marvell.com>
6
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8
* SPDX-License-Identifier: GPL-2.0+
13
#include <asm/arch/cpu.h>
14
#include <asm/arch/kirkwood.h>
15
#include <asm/arch/mpp.h>
16
#include "mv88f6281gtw_ge.h"
18
DECLARE_GLOBAL_DATA_PTR;
20
int board_early_init_f(void)
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
27
kw_config_gpio(MV88F6281GTW_GE_OE_VAL_LOW,
28
MV88F6281GTW_GE_OE_VAL_HIGH,
29
MV88F6281GTW_GE_OE_LOW, MV88F6281GTW_GE_OE_HIGH);
31
/* Multi-Purpose Pins Functionality configuration */
32
static const u32 kwmpp_config[] = {
85
kirkwood_mpp_conf(kwmpp_config, NULL);
92
* arch number of board
94
gd->bd->bi_arch_number = MACH_TYPE_MV88F6281GTW_GE;
96
/* adress of boot parameters */
97
gd->bd->bi_boot_params = kw_sdram_bar(0) + 0x100;
102
#ifdef CONFIG_MV88E61XX_SWITCH
105
/* configure and initialize switch */
106
struct mv88e61xx_config swcfg = {
108
.vlancfg = MV88E61XX_VLANCFG_ROUTER,
109
.rgmii_delay = MV88E61XX_RGMII_DELAY_EN,
110
.led_init = MV88E61XX_LED_INIT_EN,
111
.mdip = MV88E61XX_MDIP_REVERSE,
112
.portstate = MV88E61XX_PORTSTT_FORWARDING,
114
.ports_enabled = 0x3f
117
mv88e61xx_switch_initialize(&swcfg);
119
#endif /* CONFIG_MV88E61XX_SWITCH */