EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47866 )
Change subject: drivers/i2c/sx9324: Add more registers and reorder ......................................................................
drivers/i2c/sx9324: Add more registers and reorder
Export all registers that driver is looking for. And put in alphabet order. The missing registers are: reg_irq_msk reg_irq_cfg0 reg_irq_cfg2 reg_afe_ph0/1/2/3
BUG=b:172397658 BRANCH=zork TEST=Build passed
Signed-off-by: Eric Lai ericr_lai@compal.corp-partner.google.com Change-Id: Ic9d7a959b1769b6846bba302e3aeab9a3a1cedac --- M src/drivers/i2c/sx9324/registers.h 1 file changed, 32 insertions(+), 23 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/47866/1
diff --git a/src/drivers/i2c/sx9324/registers.h b/src/drivers/i2c/sx9324/registers.h index 160e5e7..7d00261 100644 --- a/src/drivers/i2c/sx9324/registers.h +++ b/src/drivers/i2c/sx9324/registers.h @@ -4,29 +4,6 @@ #error "define REGISTER(NAME) before including this file" #endif
-REGISTER(reg_gnrl_ctrl0); -REGISTER(reg_gnrl_ctrl1); - -REGISTER(reg_afe_ctrl0); -REGISTER(reg_afe_ctrl1); -REGISTER(reg_afe_ctrl2); -REGISTER(reg_afe_ctrl3); -REGISTER(reg_afe_ctrl4); -REGISTER(reg_afe_ctrl5); -REGISTER(reg_afe_ctrl6); -REGISTER(reg_afe_ctrl7); -REGISTER(reg_afe_ctrl8); -REGISTER(reg_afe_ctrl9); - -REGISTER(reg_prox_ctrl0); -REGISTER(reg_prox_ctrl1); -REGISTER(reg_prox_ctrl2); -REGISTER(reg_prox_ctrl3); -REGISTER(reg_prox_ctrl4); -REGISTER(reg_prox_ctrl5); -REGISTER(reg_prox_ctrl6); -REGISTER(reg_prox_ctrl7); - REGISTER(reg_adv_ctrl0); REGISTER(reg_adv_ctrl1); REGISTER(reg_adv_ctrl2); @@ -48,3 +25,35 @@ REGISTER(reg_adv_ctrl18); REGISTER(reg_adv_ctrl19); REGISTER(reg_adv_ctrl20); + +REGISTER(reg_afe_ctrl0); +REGISTER(reg_afe_ctrl1); +REGISTER(reg_afe_ctrl2); +REGISTER(reg_afe_ctrl3); +REGISTER(reg_afe_ctrl4); +REGISTER(reg_afe_ctrl5); +REGISTER(reg_afe_ctrl6); +REGISTER(reg_afe_ctrl7); +REGISTER(reg_afe_ctrl8); +REGISTER(reg_afe_ctrl9); + +REGISTER(reg_afe_ph0); +REGISTER(reg_afe_ph1); +REGISTER(reg_afe_ph2); +REGISTER(reg_afe_ph3); + +REGISTER(reg_gnrl_ctrl0); +REGISTER(reg_gnrl_ctrl1); + +REGISTER(reg_irq_msk); +REGISTER(reg_irq_cfg0); +REGISTER(reg_irq_cfg2); + +REGISTER(reg_prox_ctrl0); +REGISTER(reg_prox_ctrl1); +REGISTER(reg_prox_ctrl2); +REGISTER(reg_prox_ctrl3); +REGISTER(reg_prox_ctrl4); +REGISTER(reg_prox_ctrl5); +REGISTER(reg_prox_ctrl6); +REGISTER(reg_prox_ctrl7);