]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: zynq: zybo z7: fix MIO init issue
authorMilan Obuch <u-boot@dino.sk>
Mon, 20 Jan 2020 01:33:30 +0000 (22:33 -0300)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 28 Feb 2020 11:04:10 +0000 (12:04 +0100)
The board has two push button connected to MIO pins
50 and 51, which have a pull-down resistor and are
connected to 1.8V when pressed.

These two pins are wrongly initialized with internal
pull-up enabled so they are reported as 1 all the time
with no change when pressed.

Disable the internal pull-up to fix the issue.

Signed-off-by: Milan Obuch <u-boot@dino.sk>
Signed-off-by: Luis Araneda <luaraneda@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynq/zynq-zybo-z7/ps7_init_gpl.c

index 7c6bc9fa3f4244b093b19a3563adf6accbd4fa91..a376ba574eabdefa89123efcb4d56ea966c29f65 100644 (file)
@@ -219,8 +219,8 @@ static unsigned long ps7_mio_init_data_3_0[] = {
        EMIT_MASKWRITE(0xF80007BC, 0x00003F01U, 0x00001201U),
        EMIT_MASKWRITE(0xF80007C0, 0x00003FFFU, 0x000012E0U),
        EMIT_MASKWRITE(0xF80007C4, 0x00003FFFU, 0x000012E1U),
-       EMIT_MASKWRITE(0xF80007C8, 0x00003FFFU, 0x00001200U),
-       EMIT_MASKWRITE(0xF80007CC, 0x00003FFFU, 0x00001200U),
+       EMIT_MASKWRITE(0xF80007C8, 0x00003FFFU, 0x00000200U),
+       EMIT_MASKWRITE(0xF80007CC, 0x00003FFFU, 0x00000200U),
        EMIT_MASKWRITE(0xF80007D0, 0x00003FFFU, 0x00001280U),
        EMIT_MASKWRITE(0xF80007D4, 0x00003FFFU, 0x00001280U),
        EMIT_MASKWRITE(0xF8000830, 0x003F003FU, 0x002F0037U),