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
This commit is contained in:
Randall Spangler
2012-04-18 18:57:48 -07:00
parent 70f3fcaf86
commit ee3edc0116
13 changed files with 22 additions and 84 deletions

View File

@@ -27,9 +27,6 @@ struct charger_info {
uint16_t input_current_step;
};
/* Initializes the charger */
int charger_init(void);
/* Power state machine post init */
int charger_post_init(void);

View File

@@ -5,8 +5,8 @@
/* Temperature sensor module for LM4 chip */
#ifndef __CHIP_TEMP_SENSOR_H
#define __CHIP_TEMP_SENSOR_H
#ifndef __CROS_EC_CHIP_TEMP_SENSOR_H
#define __CROS_EC_CHIP_TEMP_SENSOR_H
struct temp_sensor_t;
@@ -16,6 +16,4 @@ int chip_temp_sensor_poll(void);
/* Temperature reading function. Return temperature in K. */
int chip_temp_sensor_get_val(int idx);
int chip_temp_sensor_init(void);
#endif /* __CHIP_TEMP_SENSOR_H */
#endif /* __CROS_EC_CHIP_TEMP_SENSOR_H */

View File

@@ -1,4 +1,4 @@
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -10,9 +10,6 @@
#include "common.h"
/* Initializes the module. */
int port_80_init(void);
/* Called by LPC module when a byte of data is written to port 80. */
void port_80_write(int data);

View File

@@ -53,9 +53,6 @@ int system_pre_init(void);
* system_pre_init(). */
int system_common_pre_init(void);
/* Initializes the system module. */
int system_init(void);
/* Returns the cause of the last reset, or SYSTEM_RESET_UNKNOWN if
* the cause is not known. */
enum system_reset_cause_t system_get_reset_cause(void);

View File

@@ -1,4 +1,4 @@
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -42,10 +42,7 @@ struct temp_sensor_t {
int idx;
};
/* Initializes the module. */
int temp_sensor_init(void);
/* Returns the most recently measured temperature for the sensor in K,
/* Return the most recently measured temperature for the sensor in K,
* or -1 if error. */
int temp_sensor_read(enum temp_sensor_id id);