1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Stefan Roese <sr@denx.de>
10 #define MT76XX_AGPIO_CFG 0x1000003c
12 int board_early_init_f(void)
14 void __iomem *gpio_mode;
16 /* Configure digital vs analog GPIOs */
17 gpio_mode = ioremap_nocache(MT76XX_AGPIO_CFG, 0x100);
18 iowrite32(0x00fe01ff, gpio_mode);
23 int board_late_init(void)
25 if (IS_ENABLED(CONFIG_LED))