diff options
Diffstat (limited to 'baseboard/grunt/baseboard.h')
-rw-r--r-- | baseboard/grunt/baseboard.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index bdbec1e0d2..1c19c05330 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -72,9 +72,7 @@ * * See also b/111214767 */ -#define CONFIG_CHARGER_DEFAULT_CURRENT_LIMIT 512 -#define CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMIT 512 -#define CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT 5 +#define CONFIG_CHARGER_INPUT_CURRENT 512 #define CONFIG_CHARGER_ISL9238 #define CONFIG_CHARGER_SENSE_RESISTOR 10 #define CONFIG_CHARGER_SENSE_RESISTOR_AC 20 @@ -191,6 +189,7 @@ #ifndef __ASSEMBLER__ #include "gpio_signal.h" +#include "math_util.h" #include "registers.h" enum adc_channel { @@ -224,6 +223,23 @@ enum sensor_id { SENSOR_COUNT, }; +/* + * Matrix to rotate accelerators into the standard reference frame. The default + * is the identity which is correct for the reference design. Variations of + * Grunt may need to change it for manufacturability. + * For the lid: + * +x to the right + * +y up + * +z out of the page + * + * The principle axes of the body are aligned with the lid when the lid is in + * the 180 degree position (open, flat). + * + * Boards within the Grunt family may need to modify this definition at + * board_init() time. + */ +extern mat33_fp_t grunt_base_standard_ref; + /* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK (1 << LID_ACCEL) |