mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mips: mt76xx: gardena-smart-gateway: Configure GPIOs (digital vs analog)
Configure digital vs analog GPIOs as needed on this board. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
4ff942b059
commit
48f8e15997
1 changed files with 9 additions and 6 deletions
|
@ -4,14 +4,17 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/io.h>
|
||||
|
||||
#define MT76XX_AGPIO_CFG 0x1000003c
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
/*
|
||||
* Nothing to be done here for this board (no UART setup etc)
|
||||
* right now. We might need some pin muxing, so lets keep this
|
||||
* function for now.
|
||||
*/
|
||||
void __iomem *gpio_mode;
|
||||
|
||||
/* Configure digital vs analog GPIOs */
|
||||
gpio_mode = ioremap_nocache(MT76XX_AGPIO_CFG, 0x100);
|
||||
iowrite32(0x00fe01ff, gpio_mode);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue