summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/sx9324/registers.h
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2020-11-23 22:17:37 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-12-05 08:15:26 +0000
commitf24450af683d30fe800ab27f4704230b389d462e (patch)
tree0ec8ada11c9a63690cbaaff31ba22c5251698277 /src/drivers/i2c/sx9324/registers.h
parent1a3ae36c6abcf826e9ca7b980c81a465e53deb0a (diff)
drivers/i2c/sx9324: Add more registers and reorder
Export all registers that driver is looking for. And put in alphabetic order. The missing registers for kernel v5.4 sx93xx 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/47866 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/sx9324/registers.h')
-rw-r--r--src/drivers/i2c/sx9324/registers.h55
1 files changed, 32 insertions, 23 deletions
diff --git a/src/drivers/i2c/sx9324/registers.h b/src/drivers/i2c/sx9324/registers.h
index 160e5e7b05..7d00261787 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_ctrl17);
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);