Skip to content
Snippets Groups Projects
Commit 8c711d2b authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Albert ARIBAUD
Browse files

rmobile: armadillo-800eva: Change init function of SCIFA1


This initializes GPIO, without using PFC framework in
board_early_init_f function. It is because it cannot initialize
normally when PFC is used.

Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent 2d61084b
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,9 @@ void s_init(void) ...@@ -243,6 +243,9 @@ void s_init(void)
#define I2C1_MSTP323 (1 << 23) #define I2C1_MSTP323 (1 << 23)
#define GETHER_MSTP309 (1 << 9) #define GETHER_MSTP309 (1 << 9)
#define GPIO_SCIFA1_TXD (0xE60520C4)
#define GPIO_SCIFA1_RXD (0xE60520C3)
int board_early_init_f(void) int board_early_init_f(void)
{ {
/* TMU */ /* TMU */
...@@ -256,9 +259,8 @@ int board_early_init_f(void) ...@@ -256,9 +259,8 @@ int board_early_init_f(void)
clrbits_le32(MSTPCR3, I2C1_MSTP323); clrbits_le32(MSTPCR3, I2C1_MSTP323);
/* SCIFA1 */ /* SCIFA1 */
r8a7740_pinmux_init(); writeb(1, GPIO_SCIFA1_TXD); /* SCIFA1_TXD */
gpio_request(GPIO_FN_SCIFA1_RXD, NULL); writeb(1, GPIO_SCIFA1_RXD); /* SCIFA1_RXD */
gpio_request(GPIO_FN_SCIFA1_TXD, NULL);
/* IICCR */ /* IICCR */
writew(GPIO_ICCR_DATA, GPIO_ICCR); writew(GPIO_ICCR_DATA, GPIO_ICCR);
......
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