diff options
author | Denis Brockus <dbrockus@google.com> | 2021-09-24 11:24:27 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-27 23:15:53 +0000 |
commit | f8380bc0b05e7d64ea3972a9b46517d8f4b4af2b (patch) | |
tree | 222de6fffca5abd3a84e0ea6691dba3cac4083ff | |
parent | 43e1a59c047bd28917251d13e47e00594624b277 (diff) | |
download | chrome-ec-f8380bc0b05e7d64ea3972a9b46517d8f4b4af2b.tar.gz |
Add math_lib for 32 bit boards that use pd_timer
pd_timer was changed to use bitmask_uint64 to
create the equivalent of BIT(o) for uint64_t
bitmasks
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I7cc6a24771a9c5e1050fa1c3ff1391ef77518b80
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182631
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Yuval Peress <peress@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
-rw-r--r-- | board/ambassador/board.h | 3 | ||||
-rw-r--r-- | board/baklava/board.h | 3 | ||||
-rw-r--r-- | board/brask/board.h | 3 | ||||
-rw-r--r-- | board/chocodile_vpdmcu/board.h | 3 | ||||
-rw-r--r-- | board/gingerbread/board.h | 3 | ||||
-rw-r--r-- | board/puff/board.h | 3 | ||||
-rw-r--r-- | board/quiche/board.h | 3 |
7 files changed, 21 insertions, 0 deletions
diff --git a/board/ambassador/board.h b/board/ambassador/board.h index 6e90e5521c..de918b35ac 100644 --- a/board/ambassador/board.h +++ b/board/ambassador/board.h @@ -177,6 +177,9 @@ #define PP5000_PGOOD_POWER_SIGNAL_MASK POWER_SIGNAL_MASK(PP5000_A_PGOOD) +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "gpio_signal.h" diff --git a/board/baklava/board.h b/board/baklava/board.h index 5ae2cea560..e061d2342d 100644 --- a/board/baklava/board.h +++ b/board/baklava/board.h @@ -49,6 +49,9 @@ #define I2C_PORT_EEPROM I2C_PORT_I2C3 #define MP4245_I2C_ADDR_FLAGS MP4245_I2C_ADDR_0_FLAGS +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "registers.h" diff --git a/board/brask/board.h b/board/brask/board.h index 52d56a9201..0d92b2c07f 100644 --- a/board/brask/board.h +++ b/board/brask/board.h @@ -145,6 +145,9 @@ */ /* #define CONFIG_FANS FAN_CH_COUNT */ +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "gpio_signal.h" /* needed by registers.h */ diff --git a/board/chocodile_vpdmcu/board.h b/board/chocodile_vpdmcu/board.h index 541dae7a44..552f00aa09 100644 --- a/board/chocodile_vpdmcu/board.h +++ b/board/chocodile_vpdmcu/board.h @@ -118,6 +118,9 @@ #undef CONFIG_FW_PSTATE_SIZE #define CONFIG_FW_PSTATE_SIZE 0 +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ /* Timer selection */ diff --git a/board/gingerbread/board.h b/board/gingerbread/board.h index cf447db7ff..cfc5bbf0a0 100644 --- a/board/gingerbread/board.h +++ b/board/gingerbread/board.h @@ -62,6 +62,9 @@ #define GPIO_WP_L GPIO_EC_WP_L #define GPIO_WP GPIO_EC_WP_L +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "registers.h" diff --git a/board/puff/board.h b/board/puff/board.h index cb22f710d8..fedba00f7a 100644 --- a/board/puff/board.h +++ b/board/puff/board.h @@ -177,6 +177,9 @@ #define PP5000_PGOOD_POWER_SIGNAL_MASK POWER_SIGNAL_MASK(PP5000_A_PGOOD) +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "gpio_signal.h" diff --git a/board/quiche/board.h b/board/quiche/board.h index ad8c70271d..98feab31f6 100644 --- a/board/quiche/board.h +++ b/board/quiche/board.h @@ -50,6 +50,9 @@ #define I2C_PORT_EEPROM I2C_PORT_I2C3 #define MP4245_I2C_ADDR_FLAGS MP4245_I2C_ADDR_0_FLAGS +/* Include math_util for bitmask_uint64 used in pd_timers */ +#define CONFIG_MATH_UTIL + #ifndef __ASSEMBLER__ #include "registers.h" |