Commit 8c711d2b61e44f3034deff5fa7ad583364baa5b7
Committed by
Albert ARIBAUD
1 parent
2d61084be9
Exists in
master
and in
54 other branches
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: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff
board/atmark-techno/armadillo-800eva/armadillo-800eva.c
... | ... | @@ -243,6 +243,9 @@ |
243 | 243 | #define I2C1_MSTP323 (1 << 23) |
244 | 244 | #define GETHER_MSTP309 (1 << 9) |
245 | 245 | |
246 | +#define GPIO_SCIFA1_TXD (0xE60520C4) | |
247 | +#define GPIO_SCIFA1_RXD (0xE60520C3) | |
248 | + | |
246 | 249 | int board_early_init_f(void) |
247 | 250 | { |
248 | 251 | /* TMU */ |
... | ... | @@ -256,9 +259,8 @@ |
256 | 259 | clrbits_le32(MSTPCR3, I2C1_MSTP323); |
257 | 260 | |
258 | 261 | /* SCIFA1 */ |
259 | - r8a7740_pinmux_init(); | |
260 | - gpio_request(GPIO_FN_SCIFA1_RXD, NULL); | |
261 | - gpio_request(GPIO_FN_SCIFA1_TXD, NULL); | |
262 | + writeb(1, GPIO_SCIFA1_TXD); /* SCIFA1_TXD */ | |
263 | + writeb(1, GPIO_SCIFA1_RXD); /* SCIFA1_RXD */ | |
262 | 264 | |
263 | 265 | /* IICCR */ |
264 | 266 | writew(GPIO_ICCR_DATA, GPIO_ICCR); |