diff mbox series

[1/2] ARM: mvebu: x530: set MPP55 to gpio

Message ID 20220106030857.1410516-1-judge.packham@gmail.com
State Superseded
Delegated to: Stefan Roese
Headers show
Series [1/2] ARM: mvebu: x530: set MPP55 to gpio | expand

Commit Message

Chris Packham Jan. 6, 2022, 3:08 a.m. UTC
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>
---

 board/alliedtelesis/x530/x530.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Roese Jan. 10, 2022, 7:35 a.m. UTC | #1
On 1/6/22 04:08, Chris Packham wrote:
> 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>

Thanks,
Stefan

> ---
> 
>   board/alliedtelesis/x530/x530.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
> index 8b31045a0743..866b6e68cc16 100644
> --- a/board/alliedtelesis/x530/x530.c
> +++ b/board/alliedtelesis/x530/x530.c
> @@ -92,7 +92,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;
> 

Viele Grüße,
Stefan Roese
diff mbox series

Patch

diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
index 8b31045a0743..866b6e68cc16 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -92,7 +92,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;