Skip to content
Snippets Groups Projects
Commit 48f8e159 authored by Stefan Roese's avatar Stefan Roese Committed by Daniel Schwierzeck
Browse files

mips: mt76xx: gardena-smart-gateway: Configure GPIOs (digital vs analog)


Configure digital vs analog GPIOs as needed on this board.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
parent 4ff942b0
No related branches found
No related tags found
No related merge requests found
...@@ -4,14 +4,17 @@ ...@@ -4,14 +4,17 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/io.h> #include <linux/io.h>
#define MT76XX_AGPIO_CFG 0x1000003c
int board_early_init_f(void) int board_early_init_f(void)
{ {
/* void __iomem *gpio_mode;
* Nothing to be done here for this board (no UART setup etc)
* right now. We might need some pin muxing, so lets keep this /* Configure digital vs analog GPIOs */
* function for now. gpio_mode = ioremap_nocache(MT76XX_AGPIO_CFG, 0x100);
*/ iowrite32(0x00fe01ff, gpio_mode);
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment