Browse Source

Turn on the red light and turn off the green light at U-boot for H6

leeboby 4 years ago
parent
commit
c1ab727436
1 changed files with 5 additions and 0 deletions
  1. 5 0
      board/sunxi/board.c

+ 5 - 0
board/sunxi/board.c

@@ -610,6 +610,11 @@ void sunxi_board_init(void)
 {
 {
 	int power_failed = 0;
 	int power_failed = 0;
 
 
+#if defined(CONFIG_MACH_SUN50I_H6)
+	gpio_direction_output(SUNXI_GPL(4), 1);
+	gpio_direction_output(SUNXI_GPL(7), 0);
+#endif
+
 #if defined(CONFIG_MACH_SUN8I_H3) || defined(CONFIG_MACH_SUN50I_H5)
 #if defined(CONFIG_MACH_SUN8I_H3) || defined(CONFIG_MACH_SUN50I_H5)
 	/* turn off power LED (PL10) on H3 boards */
 	/* turn off power LED (PL10) on H3 boards */
 	gpio_direction_output(SUNXI_GPL(10), 0);
 	gpio_direction_output(SUNXI_GPL(10), 0);