meta-lenovo: hr855xg2: add kernel configurations
Add kernel configurations.
Tested:
Build Lenovo hr855xg2 image and load on the target hardware,
make sure BMC could boot to console.
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I2ce347ac5c0df1d7249792b5a97e1c31845aecd7
diff --git a/meta-hr855xg2/recipes-kernel/linux/linux-aspeed/hr855xg2.cfg b/meta-hr855xg2/recipes-kernel/linux/linux-aspeed/hr855xg2.cfg
new file mode 100644
index 0000000..a730336
--- /dev/null
+++ b/meta-hr855xg2/recipes-kernel/linux/linux-aspeed/hr855xg2.cfg
@@ -0,0 +1,20 @@
+//"Copyright (c) 2019-present Lenovo
+//Licensed under GPL v2, see COPYING file for details."
+
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA9541=y
+CONFIG_I2C_MUX_PCA954x=y
+CONFIG_SENSORS_ASPEED=y
+CONFIG_SENSORS_TMP421=y
+CONFIG_ASPEED_ADC=y
+CONFIG_SENSORS_IIO_HWMON=y
+CONFIG_I2C_SLAVE=y
+CONFIG_PMBUS=y
+CONFIG_SPI=y
+CONFIG_SENSORS_MAX31790=y
+CONFIG_EEPROM_AT24=y
+CONFIG_PECI=y
+CONFIG_MFD_INTEL_PECI_CLIENT=y
+CONFIG_PECI_ASPEED=y
+CONFIG_SENSORS_PECI_CPUTEMP=y
+CONFIG_SENSORS_PECI_DIMMTEMP=y
diff --git a/meta-hr855xg2/recipes-kernel/linux/linux-aspeed_%.bbappend b/meta-hr855xg2/recipes-kernel/linux/linux-aspeed_%.bbappend
new file mode 100644
index 0000000..330800a
--- /dev/null
+++ b/meta-hr855xg2/recipes-kernel/linux/linux-aspeed_%.bbappend
@@ -0,0 +1,5 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+FILESEXTRAPATHS_prepend_hr855xg2 := "${THISDIR}/${PN}:"
+SRC_URI_append_hr855xg2 = " file://hr855xg2.cfg"