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

mips: mt76xx: linkit-smart-7688: Use ioremap_nocache to get address


Use the correct function to get the uncached address to access the SoC
registers.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
parent 78e25171
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,15 @@
#include <common.h>
#include <asm/io.h>
#define MT76XX_GPIO1_MODE 0xb0000060
#define MT76XX_GPIO1_MODE 0x10000060
void board_debug_uart_init(void)
{
void __iomem *gpio_mode;
/* Select UART2 mode instead of GPIO mode (default) */
clrbits_le32((void __iomem *)MT76XX_GPIO1_MODE, GENMASK(27, 26));
gpio_mode = ioremap_nocache(MT76XX_GPIO1_MODE, 0x100);
clrbits_le32(gpio_mode, GENMASK(27, 26));
}
int board_early_init_f(void)
......
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