Kconfig: Update default hex values to start with 0x
Kconfig hex values don't need to be in quotes, and should start with
'0x'. If the default value isn't set this way, Kconfig will add the
0x to the start, and the entry can be added unnecessarily to the
defconfig since it's "different" than what was set by the default.
A check for this has been added to the Kconfig lint tool.
Change-Id: I86f37340682771700011b6285e4b4af41b7e9968
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/16834
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
diff --git a/src/Kconfig b/src/Kconfig
index f6c022e..91b27ce 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -634,7 +634,7 @@
config CACHE_ROM_SIZE_OVERRIDE
hex
- default 0
+ default 0x0
# TODO: Can probably be removed once all chipsets have kconfig options for it.
config VIDEO_MB
diff --git a/src/console/Kconfig b/src/console/Kconfig
index e945c25..8f74613 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -330,7 +330,7 @@
config CMOS_POST_OFFSET
hex "Offset into CMOS to store POST codes"
depends on CMOS_POST
- default 0
+ default 0x0
help
If CMOS_POST is enabled then an offset into CMOS must be provided.
If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
diff --git a/src/device/Kconfig b/src/device/Kconfig
index b1f8dae..c7dfe9c 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -288,7 +288,7 @@
config SUBSYSTEM_VENDOR_ID
hex "Override PCI Subsystem Vendor ID"
depends on PCI
- default "0x0000"
+ default 0x0000
help
This config option will override the devicetree settings for
PCI Subsystem Vendor ID.
@@ -296,7 +296,7 @@
config SUBSYSTEM_DEVICE_ID
hex "Override PCI Subsystem Device ID"
depends on PCI
- default "0x0000"
+ default 0x0000
help
This config option will override the devicetree settings for
PCI Subsystem Device ID.
diff --git a/src/drivers/i2c/tpm/Kconfig b/src/drivers/i2c/tpm/Kconfig
index a5ab077..89e4621 100644
--- a/src/drivers/i2c/tpm/Kconfig
+++ b/src/drivers/i2c/tpm/Kconfig
@@ -22,12 +22,12 @@
config DRIVER_TPM_I2C_BUS
hex "I2C TPM chip bus"
- default 9 # FIXME, workaround for Kconfig BS
+ default 0x9 # FIXME, workaround for Kconfig BS
depends on I2C_TPM
config DRIVER_TPM_I2C_ADDR
hex "I2C TPM chip address"
- default 2 # FIXME, workaround for Kconfig BS
+ default 0x2 # FIXME, workaround for Kconfig BS
depends on I2C_TPM
config DRIVER_TPM_I2C_IRQ
diff --git a/src/drivers/pc80/tpm/Kconfig b/src/drivers/pc80/tpm/Kconfig
index 0e8a020..f32071c 100644
--- a/src/drivers/pc80/tpm/Kconfig
+++ b/src/drivers/pc80/tpm/Kconfig
@@ -25,7 +25,7 @@
config TPM_PIRQ
hex
- default 0
+ default 0x0
depends on LPC_TPM
help
This can be used to specify a PIRQ to use instead of SERIRQ,
diff --git a/src/drivers/spi/tpm/Kconfig b/src/drivers/spi/tpm/Kconfig
index 49ab2a6..d66d9ff 100644
--- a/src/drivers/spi/tpm/Kconfig
+++ b/src/drivers/spi/tpm/Kconfig
@@ -4,7 +4,7 @@
config DRIVER_TPM_SPI_BUS
hex "SPI bus TPM chip is connected to"
- default 0
+ default 0x0
depends on SPI_TPM
config DRIVER_TPM_SPI_CHIP
diff --git a/src/ec/google/chromeec/Kconfig b/src/ec/google/chromeec/Kconfig
index f4ff303..f809003 100644
--- a/src/ec/google/chromeec/Kconfig
+++ b/src/ec/google/chromeec/Kconfig
@@ -72,7 +72,7 @@
config EC_GOOGLE_CHROMEEC_SPI_CHIP
depends on EC_GOOGLE_CHROMEEC_SPI
hex
- default 0
+ default 0x0
config EC_GOOGLE_CHROMEEC_BOARDNAME
depends on EC_GOOGLE_CHROMEEC
diff --git a/src/mainboard/asus/a8v-e_deluxe/Kconfig b/src/mainboard/asus/a8v-e_deluxe/Kconfig
index a1c2fd9..b067047a 100644
--- a/src/mainboard/asus/a8v-e_deluxe/Kconfig
+++ b/src/mainboard/asus/a8v-e_deluxe/Kconfig
@@ -39,7 +39,7 @@
config HW_MEM_HOLE_SIZEK
hex
- default 0
+ default 0x0
config MAX_CPUS
int
diff --git a/src/mainboard/asus/a8v-e_se/Kconfig b/src/mainboard/asus/a8v-e_se/Kconfig
index dffe9eb..0188ff9 100644
--- a/src/mainboard/asus/a8v-e_se/Kconfig
+++ b/src/mainboard/asus/a8v-e_se/Kconfig
@@ -39,7 +39,7 @@
config HW_MEM_HOLE_SIZEK
hex
- default 0
+ default 0x0
config MAX_CPUS
int
diff --git a/src/mainboard/asus/k8v-x/Kconfig b/src/mainboard/asus/k8v-x/Kconfig
index 4eb1bec..674059b 100644
--- a/src/mainboard/asus/k8v-x/Kconfig
+++ b/src/mainboard/asus/k8v-x/Kconfig
@@ -44,7 +44,7 @@
config HW_MEM_HOLE_SIZEK
hex
- default 0
+ default 0x0
config MAX_CPUS
int
diff --git a/src/mainboard/asus/kcma-d8/Kconfig b/src/mainboard/asus/kcma-d8/Kconfig
index 3c8cdcd..1542279 100644
--- a/src/mainboard/asus/kcma-d8/Kconfig
+++ b/src/mainboard/asus/kcma-d8/Kconfig
@@ -53,7 +53,7 @@
config APIC_ID_OFFSET
hex
- default 0
+ default 0x0
config MAINBOARD_PART_NUMBER
string
diff --git a/src/mainboard/asus/kfsn4-dre/Kconfig b/src/mainboard/asus/kfsn4-dre/Kconfig
index 5e455e0..f40899d 100644
--- a/src/mainboard/asus/kfsn4-dre/Kconfig
+++ b/src/mainboard/asus/kfsn4-dre/Kconfig
@@ -43,7 +43,7 @@
config APIC_ID_OFFSET
hex
- default 0
+ default 0x0
config MAINBOARD_PART_NUMBER
string
diff --git a/src/mainboard/asus/kgpe-d16/Kconfig b/src/mainboard/asus/kgpe-d16/Kconfig
index ca1f0c8..a65cecc 100644
--- a/src/mainboard/asus/kgpe-d16/Kconfig
+++ b/src/mainboard/asus/kgpe-d16/Kconfig
@@ -54,7 +54,7 @@
config APIC_ID_OFFSET
hex
- default 0
+ default 0x0
config MAINBOARD_PART_NUMBER
string
diff --git a/src/mainboard/asus/m2v/Kconfig b/src/mainboard/asus/m2v/Kconfig
index 72527be..20c2689 100644
--- a/src/mainboard/asus/m2v/Kconfig
+++ b/src/mainboard/asus/m2v/Kconfig
@@ -42,7 +42,7 @@
config HW_MEM_HOLE_SIZEK
hex
- default 0
+ default 0x0
config MAX_CPUS
int
diff --git a/src/mainboard/google/gru/Kconfig b/src/mainboard/google/gru/Kconfig
index 3150839..41e81055 100644
--- a/src/mainboard/google/gru/Kconfig
+++ b/src/mainboard/google/gru/Kconfig
@@ -65,7 +65,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 5
+ default 0x5
config BOOT_DEVICE_SPI_FLASH_BUS
int
@@ -73,7 +73,7 @@
config DRIVER_TPM_I2C_BUS
hex
- default 0
+ default 0x0
config DRIVER_TPM_I2C_ADDR
hex
diff --git a/src/mainboard/google/nyan/Kconfig b/src/mainboard/google/nyan/Kconfig
index e68ad4e..9b25d5c 100644
--- a/src/mainboard/google/nyan/Kconfig
+++ b/src/mainboard/google/nyan/Kconfig
@@ -72,7 +72,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 1
+ default 0x1
config DRIVER_TPM_I2C_BUS
hex
diff --git a/src/mainboard/google/nyan_big/Kconfig b/src/mainboard/google/nyan_big/Kconfig
index 3f94637..bcf8f5d 100644
--- a/src/mainboard/google/nyan_big/Kconfig
+++ b/src/mainboard/google/nyan_big/Kconfig
@@ -73,7 +73,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 1
+ default 0x1
config DRIVER_TPM_I2C_BUS
hex
diff --git a/src/mainboard/google/nyan_blaze/Kconfig b/src/mainboard/google/nyan_blaze/Kconfig
index e47ebfa..0782cc0 100644
--- a/src/mainboard/google/nyan_blaze/Kconfig
+++ b/src/mainboard/google/nyan_blaze/Kconfig
@@ -74,7 +74,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 1
+ default 0x1
config DRIVER_TPM_I2C_BUS
hex
diff --git a/src/mainboard/google/oak/Kconfig b/src/mainboard/google/oak/Kconfig
index 1228cff..2674643 100644
--- a/src/mainboard/google/oak/Kconfig
+++ b/src/mainboard/google/oak/Kconfig
@@ -50,7 +50,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 0
+ default 0x0
config DRIVER_TPM_I2C_BUS
hex
diff --git a/src/mainboard/google/peach_pit/Kconfig b/src/mainboard/google/peach_pit/Kconfig
index 125333c..be06a18 100644
--- a/src/mainboard/google/peach_pit/Kconfig
+++ b/src/mainboard/google/peach_pit/Kconfig
@@ -42,7 +42,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 2
+ default 0x2
config UART_FOR_CONSOLE
int
diff --git a/src/mainboard/google/veyron/Kconfig b/src/mainboard/google/veyron/Kconfig
index b6a687c..1729155 100644
--- a/src/mainboard/google/veyron/Kconfig
+++ b/src/mainboard/google/veyron/Kconfig
@@ -54,7 +54,7 @@
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
- default 0
+ default 0x0
config EC_GOOGLE_CHROMEEC_SPI_WAKEUP_DELAY_US
int
diff --git a/src/mainboard/hp/dl165_g6_fam10/Kconfig b/src/mainboard/hp/dl165_g6_fam10/Kconfig
index 703200d..a1f55f4 100644
--- a/src/mainboard/hp/dl165_g6_fam10/Kconfig
+++ b/src/mainboard/hp/dl165_g6_fam10/Kconfig
@@ -33,7 +33,7 @@
config APIC_ID_OFFSET
hex
- default 0
+ default 0x0
config MAINBOARD_PART_NUMBER
string
diff --git a/src/mainboard/msi/ms7135/Kconfig b/src/mainboard/msi/ms7135/Kconfig
index 50f989e..3affb6a 100644
--- a/src/mainboard/msi/ms7135/Kconfig
+++ b/src/mainboard/msi/ms7135/Kconfig
@@ -38,7 +38,7 @@
config HT_CHAIN_UNITID_BASE
hex
- default 0
+ default 0x0
config HT_CHAIN_END_UNITID_BASE
hex
diff --git a/src/mainboard/tyan/s2912_fam10/Kconfig b/src/mainboard/tyan/s2912_fam10/Kconfig
index 8a517e5..861c2e5 100644
--- a/src/mainboard/tyan/s2912_fam10/Kconfig
+++ b/src/mainboard/tyan/s2912_fam10/Kconfig
@@ -33,7 +33,7 @@
config APIC_ID_OFFSET
hex
- default 0
+ default 0x0
config MAINBOARD_PART_NUMBER
string
diff --git a/src/mainboard/winent/mb6047/Kconfig b/src/mainboard/winent/mb6047/Kconfig
index 622441e..5a3b81d 100644
--- a/src/mainboard/winent/mb6047/Kconfig
+++ b/src/mainboard/winent/mb6047/Kconfig
@@ -40,7 +40,7 @@
config HT_CHAIN_UNITID_BASE
hex
- default 0
+ default 0x0
config HT_CHAIN_END_UNITID_BASE
hex
diff --git a/src/soc/intel/broadwell/Kconfig b/src/soc/intel/broadwell/Kconfig
index 03934d2..517fd21 100644
--- a/src/soc/intel/broadwell/Kconfig
+++ b/src/soc/intel/broadwell/Kconfig
@@ -167,7 +167,7 @@
config INTEL_PCH_UART_CONSOLE_NUMBER
hex "Serial IO UART number to use for console"
- default "0x0"
+ default 0x0
depends on INTEL_PCH_UART_CONSOLE
config TTYS0_BASE
diff --git a/src/southbridge/amd/cimx/sb800/Kconfig b/src/southbridge/amd/cimx/sb800/Kconfig
index 5748f79..a48b93a 100644
--- a/src/southbridge/amd/cimx/sb800/Kconfig
+++ b/src/southbridge/amd/cimx/sb800/Kconfig
@@ -39,8 +39,8 @@
config IDE_COMBINED_MODE
hex
- default "0x0" if ENABLE_IDE_COMBINED_MODE
- default "0x1" if !ENABLE_IDE_COMBINED_MODE
+ default 0x0 if ENABLE_IDE_COMBINED_MODE
+ default 0x1 if !ENABLE_IDE_COMBINED_MODE
choice
prompt "SATA Mode"
@@ -70,9 +70,9 @@
config SB800_SATA_MODE
hex
depends on (SB800_SATA_IDE || SB800_SATA_RAID || SB800_SATA_AHCI)
- default "0x0" if SB800_SATA_IDE
- default "0x1" if SB800_SATA_RAID
- default "0x2" if SB800_SATA_AHCI
+ default 0x0 if SB800_SATA_IDE
+ default 0x1 if SB800_SATA_RAID
+ default 0x2 if SB800_SATA_AHCI
config SB_SUPERIO_HWM
bool
diff --git a/src/vendorcode/google/chromeos/Kconfig b/src/vendorcode/google/chromeos/Kconfig
index 129c965..b7431b2 100644
--- a/src/vendorcode/google/chromeos/Kconfig
+++ b/src/vendorcode/google/chromeos/Kconfig
@@ -212,7 +212,7 @@
config VBOOT_KEYBLOCK_PREAMBLE_FLAGS
hex "Keyblock preamble flags"
- default 0
+ default 0x0
endmenu # Keys