1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Stefan Roese <sr@denx.de>
9 #define MT76XX_AGPIO_CFG 0x1000003c
11 int board_early_init_f(void)
13 void __iomem *gpio_mode;
15 /* Configure digital vs analog GPIOs */
16 gpio_mode = ioremap_nocache(MT76XX_AGPIO_CFG, 0x100);
17 iowrite32(0x00fe01ff, gpio_mode);