meta-lenovo: hr630: add kernel configurations
Add kernel configurations.
Tested:
Build Lenovo hr630 image and load on the target hardware,
ensure that BMC boots to console.
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Ic3ea2abdff3e6cc3988ebd615d7972190ef9f5a1
diff --git a/meta-hr630/recipes-kernel/linux/linux-aspeed/hr630.cfg b/meta-hr630/recipes-kernel/linux/linux-aspeed/hr630.cfg
new file mode 100644
index 0000000..7f8d07b
--- /dev/null
+++ b/meta-hr630/recipes-kernel/linux/linux-aspeed/hr630.cfg
@@ -0,0 +1,16 @@
+//"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_DEVMEM=y
diff --git a/meta-hr630/recipes-kernel/linux/linux-aspeed_%.bbappend b/meta-hr630/recipes-kernel/linux/linux-aspeed_%.bbappend
new file mode 100644
index 0000000..d4d8b81
--- /dev/null
+++ b/meta-hr630/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_hr630 := "${THISDIR}/${PN}:"
+SRC_URI_append_hr630 = " file://hr630.cfg"