]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: mvebu: x530: set MPP55 to gpio
authorChris Packham <judge.packham@gmail.com>
Mon, 2 May 2022 03:16:25 +0000 (15:16 +1200)
committerStefan Roese <sr@denx.de>
Mon, 2 May 2022 05:47:26 +0000 (07:47 +0200)
MPP55 is used as a reset connected to the L3 switch chip. This doesn't
matter for u-boot as it doesn't use the L3 switch but it is useful to
be able to toggle the switch in/out of reset for the OS.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
board/alliedtelesis/x530/x530.c

index c0ec2afa30112d1eb4f3f2b6b550ce3e864c68e3..cbf4533e78de944052d00f58c490fa5115105327 100644 (file)
@@ -93,7 +93,7 @@ int board_early_init_f(void)
        writel(0x55550550, MVEBU_MPP_BASE + 0x0c);
        writel(0x55555555, MVEBU_MPP_BASE + 0x10);
        writel(0x00100565, MVEBU_MPP_BASE + 0x14);
-       writel(0x40000000, MVEBU_MPP_BASE + 0x18);
+       writel(0x00000000, MVEBU_MPP_BASE + 0x18);
        writel(0x00004444, MVEBU_MPP_BASE + 0x1c);
 
        return 0;