mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Merge "stm32l: fix ACOK signal"
This commit is contained in:
@@ -34,7 +34,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
|
||||
{"EN_PP1350", GPIO_A, (1<<9), GPIO_OUT_LOW, NULL},
|
||||
{"EN_PP5000", GPIO_A, (1<<10), GPIO_OUT_LOW, NULL},
|
||||
{"EN_PP3300", GPIO_A, (1<<8), GPIO_OUT_LOW, NULL},
|
||||
{"PMIC_ACOK", GPIO_A, (1<<12), GPIO_OUT_LOW, NULL},
|
||||
{"PMIC_ACOK", GPIO_A, (1<<12), GPIO_OUT_HIGH, NULL},
|
||||
{"ENTERING_RW", GPIO_B, (1<<1), GPIO_OUT_LOW, NULL},
|
||||
{"CHARGER_EN", GPIO_B, (1<<2), GPIO_OUT_LOW, NULL},
|
||||
{"EC_INT", GPIO_B, (1<<9), GPIO_OUT_LOW, NULL},
|
||||
|
||||
@@ -34,7 +34,7 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
|
||||
{"EN_PP1350", GPIO_A, (1<<2), GPIO_OUT_LOW, NULL},
|
||||
{"EN_PP5000", GPIO_A, (1<<3), GPIO_OUT_LOW, NULL},
|
||||
{"EN_PP3300", GPIO_A, (1<<8), GPIO_OUT_LOW, NULL},
|
||||
{"PMIC_ACOK", GPIO_A, (1<<12), GPIO_OUT_LOW, NULL},
|
||||
{"PMIC_ACOK", GPIO_A, (1<<12), GPIO_OUT_HIGH, NULL},
|
||||
{"ENTERING_RW", GPIO_B, (1<<1), GPIO_OUT_LOW, NULL},
|
||||
{"CHARGER_EN", GPIO_B, (1<<2), GPIO_OUT_LOW, NULL},
|
||||
{"EC_INT", GPIO_B, (1<<9), GPIO_OUT_LOW, NULL},
|
||||
|
||||
@@ -133,7 +133,7 @@ void gaia_power_task(void)
|
||||
usleep(DELAY_5V_SETUP);
|
||||
|
||||
/* Startup PMIC */
|
||||
gpio_set_level(GPIO_PMIC_ACOK, 1);
|
||||
gpio_set_level(GPIO_PMIC_ACOK, 0);
|
||||
/* wait for all PMIC regulators to be ready */
|
||||
wait_in_signal(GPIO_PP1800_LDO2, 1, PMIC_TIMEOUT);
|
||||
|
||||
@@ -149,7 +149,7 @@ void gaia_power_task(void)
|
||||
*/
|
||||
wait_in_signal(GPIO_SOC1V8_XPSHOLD, 1, FAIL_TIMEOUT);
|
||||
/* release PMIC startup signal */
|
||||
gpio_set_level(GPIO_PMIC_ACOK, 0);
|
||||
gpio_set_level(GPIO_PMIC_ACOK, 1);
|
||||
|
||||
/* Power ON state */
|
||||
ap_on = 1;
|
||||
|
||||
Reference in New Issue
Block a user