summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Smith <alex.smith@imgtec.com>2014-07-11 15:08:54 +0400
committerAlex Smith <alex.smith@imgtec.com>2014-07-11 15:08:54 +0400
commitd57191d8b96b37b9a3f9b89f754da5ed460fd681 (patch)
tree42acb2037f01ce28ad4f44420305109ac5f1462c
parent1a44e126517a6ca46972b0ff7ae83eddf50d6897 (diff)
downloadCI20_u-boot-d57191d8b96b37b9a3f9b89f754da5ed460fd681.tar.xz
mips: jz4780: add pin configuration for UART4
Signed-off-by: Alex Smith <alex.smith@imgtec.com>
-rw-r--r--arch/mips/cpu/xburst/jz4780/jz4780.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/cpu/xburst/jz4780/jz4780.c b/arch/mips/cpu/xburst/jz4780/jz4780.c
index 3826d5a1c..7b7904ffb 100644
--- a/arch/mips/cpu/xburst/jz4780/jz4780.c
+++ b/arch/mips/cpu/xburst/jz4780/jz4780.c
@@ -83,7 +83,11 @@ void board_init_f(ulong dummy)
#endif
/* UART4 init */
- /* TODO: pins */
+ writel(0x100400, GPIO_PXINTC(2));
+ writel(0x100400, GPIO_PXMASKC(2));
+ writel(0x100400, GPIO_PXPAT1S(2));
+ writel(0x100400, GPIO_PXPAT0C(2));
+ writel(0x100400, GPIO_PXPENC(2));
writel(readl(CPM_CLKGR0) & ~CPM_CLKGR1_UART4, CPM_CLKGR1);
#ifdef CONFIG_SPL_SERIAL_SUPPORT