diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-18 18:57:48 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-19 11:08:28 -0700 |
commit | ee3edc0116ea7720c5a0ab9713cb4b1cdabb45ee (patch) | |
tree | 3ea17eb42f700b1903a9d7ea66f9cc1a3ddbef3c /common/main.c | |
parent | 70f3fcaf8648230a5cd27a9da151494d6df3016f (diff) | |
download | chrome-ec-ee3edc0116ea7720c5a0ab9713cb4b1cdabb45ee.tar.gz |
Clean up inits
We can clear the reset cause in system pre-init now because of a
previous change which preserves it across a sysjump.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=if it boots, it works
Change-Id: I1d8b99df5a0be0de9545d22ad1a6b7fb3140f813
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/common/main.c b/common/main.c index 1b72d9f9ab..606a04d830 100644 --- a/common/main.c +++ b/common/main.c @@ -114,13 +114,13 @@ int main(void) * RO image and once in the RW image. */ vboot_init(); - system_init(); + /* Initialize driver modules. These can occur in any order. State + * machines are initialized in their task functions, not here. */ + gpio_init(); #ifdef CONFIG_LPC - port_80_init(); lpc_init(); - uart_comx_enable(); #endif #ifdef CONFIG_SPI spi_init(); @@ -131,10 +131,6 @@ int main(void) #ifdef CONFIG_I2C i2c_init(); #endif -#ifdef CONFIG_TASK_TEMPSENSOR - temp_sensor_init(); - chip_temp_sensor_init(); -#endif #ifdef CONFIG_TASK_POWERBTN power_button_init(); #endif @@ -144,9 +140,6 @@ int main(void) #ifdef CONFIG_ONEWIRE onewire_init(); #endif -#ifdef CONFIG_CHARGER - charger_init(); -#endif #ifdef CONFIG_PECI peci_init(); #endif |