Update LED behavior at powering up At powering up, both green and red LEDs are on. Only after a successful boot the LED status will change to green. This is used to indicate the emergency mode. Also update the u-boot console message of MMC capacity detection. Bug: 171704186 Change-Id: I09b22ba9c629cac501ee4c2e9a2f792cfe93dd59
diff --git a/board/mediatek/mt8516-coral/mt8516-coral.c b/board/mediatek/mt8516-coral/mt8516-coral.c index fb813fd..700be06 100644 --- a/board/mediatek/mt8516-coral/mt8516-coral.c +++ b/board/mediatek/mt8516-coral/mt8516-coral.c
@@ -58,7 +58,9 @@ } } - // Set Green LED on + // Set Red and Green LEDs on + gpio_request(18, "led_red"); + gpio_direction_output(18, 1); gpio_request(19, "led_green"); gpio_direction_output(19, 1); @@ -69,7 +71,7 @@ mmc = find_mmc_device(mmc_dev); if (mmc) { if (!mmc_init(mmc) && mmc->capacity >= 7000000000) { - printf("EVT2 detected\n"); + printf("8GB mmc detected\n"); env_set("evt2_board", "1"); // Try to detect A71CH on the I2C bus.