summaryrefslogtreecommitdiffstats
path: root/src/console/Kconfig
diff options
context:
space:
mode:
authorHusni Faiz <ahamedhusni73@gmail.com>2022-09-09 17:49:53 +0530
committerMartin L Roth <gaumless@gmail.com>2022-10-03 16:14:25 +0000
commitb80535a135d5a63fd6c13c6df5eecb778a00e25b (patch)
tree648c9e4c7889de342d2e8ce1ed21212a565512f6 /src/console/Kconfig
parent22baa3352cc3a92084408671c74bc3767c35ab4c (diff)
downloadcoreboot-b80535a135d5a63fd6c13c6df5eecb778a00e25b.tar.gz
coreboot-b80535a135d5a63fd6c13c6df5eecb778a00e25b.tar.bz2
coreboot-b80535a135d5a63fd6c13c6df5eecb778a00e25b.zip
drivers/smbus: initialize SC16IS7XX I2C to UART converter chip
This patch adds the functionality to initialize the sc16is750 i2c to uart converter chip with a 14.7MHz input clock to support 115200 baud rate. Change-Id: Ib31188b8c0f9b0ce9454da984e630eca9101d145 Signed-off-by: Husni Faiz <ahamedhusni73@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/console/Kconfig')
-rw-r--r--src/console/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 9b8e9f87c804..c6aec18b090e 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -311,14 +311,29 @@ if CONSOLE_I2C_SMBUS
config CONSOLE_I2C_SMBUS_SLAVE_ADDRESS
hex "I2C slave address of the logging device"
+ default 0x48 if SC16IS7XX_INIT
help
I2C address of the device which logs the data.
config CONSOLE_I2C_SMBUS_SLAVE_DATA_REGISTER
hex "Data register address of the I2C logging device"
+ default 0x00 if SC16IS7XX_INIT
help
This an 8-bit data register.
+config SC16IS7XX_INIT
+ bool "Initialize SC16IS7XX I2C to UART converter chip"
+ help
+ SC16IS7XX is a slave I2C to UART converter chip. Enabling
+ this option will initialize the chip.
+
+ The default I2C slave address value 0x48 is the address of
+ SC16IS7XX I2C to UART converter chip when the A1 and A0 pins
+ are set to Vcc.
+
+ The default data register address value 0x00 is the data
+ register address of SC16IS7XX I2C to UART converter chip.
+
endif # CONSOLE_I2C_SMBUS
config CONSOLE_QEMU_DEBUGCON