Skip to contentSkip to conversation

kirkwood: dns325: Enable 2nd harddrive

PATCH In review Stefan Roese 2 participants 3 messages Aug 11, 2023 – Oct 16, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kirkwood: dns325: Enable 2nd harddrive

The 2nd HD is not enabled in U-Boot on the D-Link DNS325. This patch sets the responsible GPIO to high, enabling the drive.

Suggested-by Peter Granilla
Cc Tom Rini <[email protected]>
---
 board/d-link/dns325/dns325.c | 1 +
 1 file changed, 1 insertion(+)
board/d-link/dns325/dns325.c +1 -0
index 055783f63ada..8ebfe4c60189 100644
@@ -89,6 +89,7 @@ int board_early_init_f(void)
 	kw_gpio_set_blink(DNS325_GPIO_LED_POWER , 1);
 
 	kw_gpio_set_value(DNS325_GPIO_SATA0_EN , 1);
+	kw_gpio_set_value(DNS325_GPIO_SATA1_EN , 1);
 	return 0;
 }
 
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Stefan Roese

The 2nd HD is not enabled in U-Boot on the D-Link DNS325. This patch sets the responsible GPIO to high, enabling the drive.

Suggested-by Peter Granilla
Cc Tom Rini <[email protected]>
---
 board/d-link/dns325/dns325.c | 1 +
 1 file changed, 1 insertion(+)
board/d-link/dns325/dns325.c +1 -1
index 055783f63ada..8ebfe4c60189 100644
@@ -89,6 +89,7 @@ int board_early_init_f(void)
        kw_gpio_set_blink(DNS325_GPIO_LED_POWER , 1);
 
        kw_gpio_set_value(DNS325_GPIO_SATA0_EN , 1);
+       kw_gpio_set_value(DNS325_GPIO_SATA1_EN , 1);
        return 0;
 }
 
--
Quoted 2 lines

2.41.0

All the best,
Tony

#2 lore raw
Quoted 8 lines · Tony Dinh
Quoted 7 lines · Stefan Roese

The 2nd HD is not enabled in U-Boot on the D-Link DNS325. This patch sets the responsible GPIO to high, enabling the drive.

Suggested-by Peter Granilla
Cc Tom Rini <[email protected]>

Applied to u-boot-marvell/master

Thanks,
Stefan

Quoted 16 lines
Quoted 16 lines
---
  board/d-link/dns325/dns325.c | 1 +
  1 file changed, 1 insertion(+)
board/d-link/dns325/dns325.c +1 -0
index 055783f63ada..8ebfe4c60189 100644
@@ -89,6 +89,7 @@ int board_early_init_f(void)
         kw_gpio_set_blink(DNS325_GPIO_LED_POWER , 1);
 
         kw_gpio_set_value(DNS325_GPIO_SATA0_EN , 1);
+       kw_gpio_set_value(DNS325_GPIO_SATA1_EN , 1);
         return 0;
  }
 
Quoted 8 lines
Quoted 3 lines

--
2.41.0

All the best,
Tony

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]