From f24450af683d30fe800ab27f4704230b389d462e Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Mon, 23 Nov 2020 22:17:37 +0800 Subject: [PATCH] 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 Change-Id: Ic9d7a959b1769b6846bba302e3aeab9a3a1cedac Reviewed-on: https://review.coreboot.org/c/coreboot/+/47866 Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/drivers/i2c/sx9324/registers.h | 55 +++++++++++++++++------------- 1 file 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);