mb/google/zork: Replace generic driver with sx9324 driver
Use a new driver for the SX9324 proximity detector device. This is first draft settings, will modify it after fine tuning. BUG=b:172397658 BRANCH=zork TEST=run "i2cdump -y -f 0 0x28" and checked all registers are expected. Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I869d0b6640247099ca489e96ed94e03811a04bf4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/47867 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Kangheui Won <khwon@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f24450af68
commit
bb3b314807
|
@ -20,6 +20,7 @@ config BOARD_SPECIFIC_OPTIONS
|
||||||
select DRIVERS_GENERIC_GPIO_KEYS
|
select DRIVERS_GENERIC_GPIO_KEYS
|
||||||
select DRIVERS_I2C_GENERIC
|
select DRIVERS_I2C_GENERIC
|
||||||
select DRIVERS_I2C_HID
|
select DRIVERS_I2C_HID
|
||||||
|
select DRIVERS_I2C_SX9324
|
||||||
select EC_GOOGLE_CHROMEEC
|
select EC_GOOGLE_CHROMEEC
|
||||||
select EC_GOOGLE_CHROMEEC_AUDIO_CODEC
|
select EC_GOOGLE_CHROMEEC_AUDIO_CODEC
|
||||||
select EC_GOOGLE_CHROMEEC_BOARDID
|
select EC_GOOGLE_CHROMEEC_BOARDID
|
||||||
|
|
|
@ -159,11 +159,51 @@ chip soc/amd/picasso
|
||||||
register "hid_desc_reg_offset" = "0x20"
|
register "hid_desc_reg_offset" = "0x20"
|
||||||
device i2c 2c on end
|
device i2c 2c on end
|
||||||
end
|
end
|
||||||
chip drivers/i2c/generic
|
chip drivers/i2c/sx9324
|
||||||
register "hid" = ""STH9324""
|
|
||||||
register "name" = ""SEMTECH SX9324""
|
|
||||||
register "desc" = ""SAR Proximity Sensor""
|
register "desc" = ""SAR Proximity Sensor""
|
||||||
register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_40)"
|
register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_40)"
|
||||||
|
register "uid" = "2"
|
||||||
|
register "reg_gnrl_ctrl0" = "0x16"
|
||||||
|
register "reg_gnrl_ctrl1" = "0x21"
|
||||||
|
register "reg_afe_ctrl0" = "0x00"
|
||||||
|
register "reg_afe_ctrl1" = "0x10"
|
||||||
|
register "reg_afe_ctrl2" = "0x00"
|
||||||
|
register "reg_afe_ctrl3" = "0x00"
|
||||||
|
register "reg_afe_ctrl4" = "0x07"
|
||||||
|
register "reg_afe_ctrl5" = "0x00"
|
||||||
|
register "reg_afe_ctrl6" = "0x00"
|
||||||
|
register "reg_afe_ctrl7" = "0x07"
|
||||||
|
register "reg_afe_ctrl8" = "0x12"
|
||||||
|
register "reg_afe_ctrl9" = "0x0f"
|
||||||
|
register "reg_prox_ctrl0" = "0x12"
|
||||||
|
register "reg_prox_ctrl1" = "0x12"
|
||||||
|
register "reg_prox_ctrl2" = "0x90"
|
||||||
|
register "reg_prox_ctrl3" = "0x60"
|
||||||
|
register "reg_prox_ctrl4" = "0x0c"
|
||||||
|
register "reg_prox_ctrl5" = "0x12"
|
||||||
|
register "reg_prox_ctrl6" = "0x3c"
|
||||||
|
register "reg_prox_ctrl7" = "0x58"
|
||||||
|
register "reg_adv_ctrl0" = "0x00"
|
||||||
|
register "reg_adv_ctrl1" = "0x00"
|
||||||
|
register "reg_adv_ctrl2" = "0x00"
|
||||||
|
register "reg_adv_ctrl3" = "0x00"
|
||||||
|
register "reg_adv_ctrl4" = "0x00"
|
||||||
|
register "reg_adv_ctrl5" = "0x05"
|
||||||
|
register "reg_adv_ctrl6" = "0x00"
|
||||||
|
register "reg_adv_ctrl7" = "0x00"
|
||||||
|
register "reg_adv_ctrl8" = "0x00"
|
||||||
|
register "reg_adv_ctrl9" = "0x00"
|
||||||
|
register "reg_adv_ctrl10" = "0x5c"
|
||||||
|
register "reg_adv_ctrl11" = "0x52"
|
||||||
|
register "reg_adv_ctrl12" = "0xb5"
|
||||||
|
register "reg_adv_ctrl13" = "0x00"
|
||||||
|
register "reg_adv_ctrl14" = "0x80"
|
||||||
|
register "reg_adv_ctrl15" = "0x0c"
|
||||||
|
register "reg_adv_ctrl16" = "0x38"
|
||||||
|
register "reg_adv_ctrl17" = "0x56"
|
||||||
|
register "reg_adv_ctrl18" = "0x33"
|
||||||
|
register "reg_adv_ctrl19" = "0xf0"
|
||||||
|
register "reg_adv_ctrl20" = "0xf0"
|
||||||
device i2c 28 on end
|
device i2c 28 on end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue