diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-28 13:56:19 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-28 13:56:19 -0500 |
commit | f2ee91501892d3280a4c58093ad3a18dccd0b562 (patch) | |
tree | 46bba8f1e2aed3dcb868ce9e4fbd010c2ef12b13 /board | |
parent | 4f6c7b12ed425095e635c32f184e8f8002da3823 (diff) | |
parent | 0289e291a5140b9e97ff3b1a12819ba0d5015887 (diff) | |
download | u-boot-f2ee91501892d3280a4c58093ad3a18dccd0b562.tar.gz |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'board')
-rw-r--r-- | board/rockchip/evb_rv1108/evb_rv1108.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/rockchip/evb_rv1108/evb_rv1108.c b/board/rockchip/evb_rv1108/evb_rv1108.c index fe37eac420..54bd08bfad 100644 --- a/board/rockchip/evb_rv1108/evb_rv1108.c +++ b/board/rockchip/evb_rv1108/evb_rv1108.c @@ -16,6 +16,23 @@ int mach_cpu_init(void) { int node; struct rv1108_grf *grf; + enum { + GPIO3C3_SHIFT = 6, + GPIO3C3_MASK = 3 << GPIO3C3_SHIFT, + + GPIO3C2_SHIFT = 4, + GPIO3C2_MASK = 3 << GPIO3C2_SHIFT, + + GPIO2D2_SHIFT = 4, + GPIO2D2_MASK = 3 << GPIO2D2_SHIFT, + GPIO2D2_GPIO = 0, + GPIO2D2_UART2_SOUT_M0, + + GPIO2D1_SHIFT = 2, + GPIO2D1_MASK = 3 << GPIO2D1_SHIFT, + GPIO2D1_GPIO = 0, + GPIO2D1_UART2_SIN_M0, + }; node = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "rockchip,rv1108-grf"); grf = (struct rv1108_grf *)fdtdec_get_addr(gd->fdt_blob, node, "reg"); |