x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
---
arch/x86/cpu/baytrail/fsp_configs.c | 2 +- arch/x86/dts/bayleybay.dts | 2 +- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 +- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- arch/x86/dts/dfi-bt700.dtsi | 2 +- arch/x86/dts/minnowmax.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
arch/x86/cpu/baytrail/fsp_configs.c +1 -1
@@ -148,7 +148,7 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->mrc_init_tseg_size =fdtdec_get_int (blob, node,"fsp,mrc-init-tseg-size" , -0 ); +1 ); fsp_upd->mrc_init_mmio_size =fdtdec_get_int (blob, node,"fsp,mrc-init-mmio-size" ,0x800 );
arch/x86/dts/bayleybay.dts +1 -1
@@ -236,7 +236,7 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <0>; + fsp,mrc-init-tseg-size = <1>; fsp,mrc-init-mmio-size = <0x800>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>;
arch/x86/dts/baytrail_som-db5800-som-6867.dts +1 -1
@@ -259,7 +259,7 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <0>; + fsp,mrc-init-tseg-size = <1>; fsp,mrc-init-mmio-size = <0x800>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>;
arch/x86/dts/conga-qeval20-qa3-e3845.dts +1 -1
@@ -246,7 +246,7 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <0>; + fsp,mrc-init-tseg-size = <1>; fsp,mrc-init-mmio-size = <0x800>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>;
arch/x86/dts/dfi-bt700.dtsi +1 -1
@@ -248,7 +248,7 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <0>; + fsp,mrc-init-tseg-size = <1>; fsp,mrc-init-mmio-size = <0x800>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>;
arch/x86/dts/minnowmax.dts +1 -1
@@ -260,7 +260,7 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <0>; + fsp,mrc-init-tseg-size = <1>; fsp,mrc-init-mmio-size = <0x800>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>;
Signature · 1 line
2.9.2
PATCH 2/4 x86: baytrail: Remove "serial-debug-port-*" settings
"serial-debug-port-address" and "serial-debug-port-type" settings are actually reserved in the FSP UPD data structure. Remove them.
---
arch/x86/cpu/baytrail/fsp_configs.c | 4 ---- arch/x86/dts/bayleybay.dts | 2 -- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 -- arch/x86/dts/minnowmax.dts | 2 -- arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 3 +-- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 2 -- 6 files changed, 1 insertion(+), 14 deletions(-)
arch/x86/cpu/baytrail/fsp_configs.c +0 -4
@@ -193,10 +193,6 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->aperture_size =fdtdec_get_int (blob, node,"fsp,aperture-size" ,2 ); fsp_upd->gtt_size =fdtdec_get_int (blob, node,"fsp,gtt-size" ,2 ); - fsp_upd->serial_debug_port_address =fdtdec_get_int (blob, node, -"fsp,serial-debug-port-address" ,0x3f8 ); - fsp_upd->serial_debug_port_type =fdtdec_get_int (blob, node, -"fsp,serial-debug-port-type" ,1 ); fsp_upd->mrc_debug_msg =fdtdec_get_bool (blob, node,"fsp,mrc-debug-msg" ); fsp_upd->isp_enable =fdtdec_get_bool (blob, node,"fsp,isp-enable" );
arch/x86/dts/bayleybay.dts +0 -2
@@ -263,8 +263,6 @@ fsp,igd-dvmt50-pre-alloc = <2>; fsp,aperture-size = <2>; fsp,gtt-size = <2>; - fsp,serial-debug-port-address = <0x3f8>; - fsp,serial-debug-port-type = <1>; fsp,scc-enable-pci-mode; fsp,os-selection = <4>; fsp,emmc45-ddr50-enabled;
arch/x86/dts/baytrail_som-db5800-som-6867.dts +0 -2
@@ -285,8 +285,6 @@ fsp,scc-enable-pci-mode; fsp,os-selection = <4>; fsp,enable-igd; - fsp,serial-debug-port-address = <0x3f8>; - fsp,serial-debug-port-type = <1>; }; microcode {
arch/x86/dts/minnowmax.dts +0 -2
@@ -287,8 +287,6 @@ fsp,igd-dvmt50-pre-alloc = <2>; fsp,aperture-size = <2>; fsp,gtt-size = <2>; - fsp,serial-debug-port-address = <0x3f8>; - fsp,serial-debug-port-type = <1>; fsp,scc-enable-pci-mode; fsp,os-selection = <4>; fsp,emmc45-ddr50-enabled;
arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h +1 -2
@@ -64,8 +64,7 @@ struct __packed upd_region {uint8_t igd_dvmt50_pre_alloc;/* Offset 0x0043 */ uint8_t aperture_size;/* Offset 0x0044 */ uint8_t gtt_size;/* Offset 0x0045 */ -uint32_t serial_debug_port_address;/* Offset 0x0046 */ -uint8_t serial_debug_port_type;/* Offset 0x004a */ +uint8_t reserved2[5 ];/* Offset 0x0046 */ uint8_t mrc_debug_msg;/* Offset 0x004b */ uint8_t isp_enable;/* Offset 0x004c */ uint8_t scc_enable_pci_mode;/* Offset 0x004d */
doc/device-tree-bindings/misc/intel,baytrail-fsp.txt +0 -2
@@ -60,8 +60,6 @@ discovered by the FSP and used to setup main memory. - fsp,igd-dvmt50-pre-alloc - fsp,aperture-size - fsp,gtt-size -- fsp,serial-debug-port-address -- fsp,serial-debug-port-type - fsp,os-selection - fsp,emmc45-retune-timer-value
Signature · 1 line
2.9.2
PATCH 3/4 x86: baytrail: Use macros instead of magic numbers for FSP settings
In reply to Bin MengIntroduce various meaningful macros for FSP settings and switch over to use them instead of magic numbers.
---
arch/x86/cpu/baytrail/fsp_configs.c | 35 +++++----- arch/x86/dts/bayleybay.dts | 17 ++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 15 +++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 29 ++++---- arch/x86/dts/dfi-bt700.dtsi | 29 ++++---- arch/x86/dts/minnowmax.dts | 29 ++++---- .../include/asm/arch-baytrail/fsp/fsp_configs.h | 77 ++++++++++++++++++++++ .../misc/intel,baytrail-fsp.txt | 74 +++++++-------------- 8 files changed, 181 insertions(+), 124 deletions(-)
arch/x86/cpu/baytrail/fsp_configs.c +20 -15
@@ -148,10 +148,10 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->mrc_init_tseg_size =fdtdec_get_int (blob, node,"fsp,mrc-init-tseg-size" , -1 ); +MRC_INIT_TSEG_SIZE_1MB ); fsp_upd->mrc_init_mmio_size =fdtdec_get_int (blob, node,"fsp,mrc-init-mmio-size" , -0x800 ); +MRC_INIT_MMIO_SIZE_2048MB ); fsp_upd->mrc_init_spd_addr1 =fdtdec_get_int (blob, node,"fsp,mrc-init-spd-addr1" ,0xa0 );
@@ -159,7 +159,8 @@ void update_fsp_configs(struct fsp_config_data *config,"fsp,mrc-init-spd-addr2" , 0xa2); fsp_upd->emmc_boot_mode =fdtdec_get_int (blob, node, -"fsp,emmc-boot-mode" ,2 ); +"fsp,emmc-boot-mode" , +EMMC_BOOT_MODE_EMMC41 ); fsp_upd->enable_sdio =fdtdec_get_bool (blob, node,"fsp,enable-sdio" ); fsp_upd->enable_sdcard =fdtdec_get_bool (blob, node,"fsp,enable-sdcard" );
@@ -169,7 +170,8 @@ void update_fsp_configs(struct fsp_config_data *config, "fsp,enable-hsuart1"); fsp_upd->enable_spi =fdtdec_get_bool (blob, node,"fsp,enable-spi" ); fsp_upd->enable_sata =fdtdec_get_bool (blob, node,"fsp,enable-sata" ); - fsp_upd->sata_mode =fdtdec_get_int (blob, node,"fsp,sata-mode" ,1 ); + fsp_upd->sata_mode =fdtdec_get_int (blob, node,"fsp,sata-mode" , +SATA_MODE_AHCI ); fsp_upd->enable_azalia =fdtdec_get_bool (blob, node,"fsp,enable-azalia" ); fsp_upd->enable_xhci =fdtdec_get_bool (blob, node,"fsp,enable-xhci" );
@@ -189,10 +191,11 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->enable_pwm1 =fdtdec_get_bool (blob, node,"fsp,enable-pwm1" ); fsp_upd->enable_hsi =fdtdec_get_bool (blob, node,"fsp,enable-hsi" ); fsp_upd->igd_dvmt50_pre_alloc =fdtdec_get_int (blob, node, -"fsp,igd-dvmt50-pre-alloc" ,2 ); +"fsp,igd-dvmt50-pre-alloc" ,IGD_DVMT50_PRE_ALLOC_64MB ); fsp_upd->aperture_size =fdtdec_get_int (blob, node,"fsp,aperture-size" , -2 ); - fsp_upd->gtt_size =fdtdec_get_int (blob, node,"fsp,gtt-size" ,2 ); +APERTURE_SIZE_256MB ); + fsp_upd->gtt_size =fdtdec_get_int (blob, node,"fsp,gtt-size" , +GTT_SIZE_2MB ); fsp_upd->mrc_debug_msg =fdtdec_get_bool (blob, node,"fsp,mrc-debug-msg" ); fsp_upd->isp_enable =fdtdec_get_bool (blob, node,"fsp,isp-enable" );
@@ -203,7 +206,7 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->txe_uma_enable =fdtdec_get_bool (blob, node,"fsp,txe-uma-enable" ); fsp_upd->os_selection =fdtdec_get_int (blob, node,"fsp,os-selection" , -4 ); +OS_SELECTION_LINUX ); fsp_upd->emmc45_ddr50_enabled =fdtdec_get_bool (blob, node,"fsp,emmc45-ddr50-enabled" ); fsp_upd->emmc45_hs200_enabled = fdtdec_get_bool(blob, node,
@@ -224,30 +227,32 @@ void update_fsp_configs(struct fsp_config_data *config, }else { mem->dram_speed =fdtdec_get_int (blob, node,"fsp,dram-speed" , -0x02 ); +DRAM_SPEED_1333MTS ); mem->dram_type =fdtdec_get_int (blob, node, -"fsp,dram-type" ,0x01 ); +"fsp,dram-type" , +DRAM_TYPE_DDR3L ); mem->dimm_0_enable =fdtdec_get_bool (blob, node,"fsp,dimm-0-enable" ); mem->dimm_1_enable =fdtdec_get_bool (blob, node,"fsp,dimm-1-enable" ); mem->dimm_width =fdtdec_get_int (blob, node,"fsp,dimm-width" , -0x00 ); +DIMM_WIDTH_X8 ); mem->dimm_density =fdtdec_get_int (blob, node,"fsp,dimm-density" , -0x01 ); +DIMM_DENSITY_2GBIT ); mem->dimm_bus_width =fdtdec_get_int (blob, node, -"fsp,dimm-bus-width" ,0x03 ); +"fsp,dimm-bus-width" , +DIMM_BUS_WIDTH_64BITS ); mem->dimm_sides =fdtdec_get_int (blob, node,"fsp,dimm-sides" , -0x00 ); +DIMM_SIDES_1RANKS ); mem->dimm_tcl =fdtdec_get_int (blob, node,"fsp,dimm-tcl" ,0x09 ); mem->dimm_trpt_rcd =fdtdec_get_int (blob, node,"fsp,dimm-trpt-rcd" ,0x09 ); mem->dimm_twr =fdtdec_get_int (blob, node, -"fsp,dimm-twr" ,0x0A ); +"fsp,dimm-twr" ,0x0a ); mem->dimm_twtr =fdtdec_get_int (blob, node,"fsp,dimm-twtr" ,0x05 ); mem->dimm_trrd = fdtdec_get_int(blob, node,
arch/x86/dts/bayleybay.dts +9 -8
@@ -6,6 +6,7 @@ /dts-v1/; +#include <asm/arch-baytrail/fsp/fsp_configs.h> #include <dt-bindings/gpio/x86-gpio.h> #include <dt-bindings/interrupt-router/intel-irq.h>
@@ -236,17 +237,17 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <1>; - fsp,mrc-init-mmio-size = <0x800>; + fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; + fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>; - fsp,emmc-boot-mode = <1>; + fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; fsp,enable-sdio; fsp,enable-sdcard; fsp,enable-hsuart1; fsp,enable-spi; fsp,enable-sata; - fsp,sata-mode = <1>; + fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-lpe; fsp,lpss-sio-enable-pci-mode; fsp,enable-dma0;
@@ -260,11 +261,11 @@ fsp,enable-i2c6; fsp,enable-pwm0; fsp,enable-pwm1; - fsp,igd-dvmt50-pre-alloc = <2>; - fsp,aperture-size = <2>; - fsp,gtt-size = <2>; + fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; + fsp,aperture-size = <APERTURE_SIZE_256MB>; + fsp,gtt-size = <GTT_SIZE_2MB>; fsp,scc-enable-pci-mode; - fsp,os-selection = <4>; + fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>; fsp,enable-igd;
arch/x86/dts/baytrail_som-db5800-som-6867.dts +8 -7
@@ -7,6 +7,7 @@ /dts-v1/; +#include <asm/arch-baytrail/fsp/fsp_configs.h> #include <dt-bindings/gpio/x86-gpio.h> #include <dt-bindings/interrupt-router/intel-irq.h>
@@ -259,13 +260,13 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <1>; - fsp,mrc-init-mmio-size = <0x800>; + fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; + fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>; fsp,enable-spi; fsp,enable-sata; - fsp,sata-mode = <1>; + fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-azalia; fsp,lpss-sio-enable-pci-mode; fsp,enable-dma0;
@@ -279,11 +280,11 @@ fsp,enable-i2c6; fsp,enable-pwm0; fsp,enable-pwm1; - fsp,igd-dvmt50-pre-alloc = <2>; - fsp,aperture-size = <2>; - fsp,gtt-size = <2>; + fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; + fsp,aperture-size = <APERTURE_SIZE_256MB>; + fsp,gtt-size = <GTT_SIZE_2MB>; fsp,scc-enable-pci-mode; - fsp,os-selection = <4>; + fsp,os-selection = <OS_SELECTION_LINUX>; fsp,enable-igd; };
arch/x86/dts/conga-qeval20-qa3-e3845.dts +15 -14
@@ -7,6 +7,7 @@ /dts-v1/; +#include <asm/arch-baytrail/fsp/fsp_configs.h> #include <dt-bindings/gpio/x86-gpio.h> #include <dt-bindings/interrupt-router/intel-irq.h>
@@ -246,42 +247,42 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <1>; - fsp,mrc-init-mmio-size = <0x800>; + fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; + fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>; - fsp,emmc-boot-mode = <1>; + fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; fsp,enable-sdio; fsp,enable-sdcard; fsp,enable-hsuart1; fsp,enable-spi; fsp,enable-sata; - fsp,sata-mode = <1>; + fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-lpe; fsp,lpss-sio-enable-pci-mode; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-pwm0; fsp,enable-pwm1; - fsp,igd-dvmt50-pre-alloc = <2>; - fsp,aperture-size = <2>; - fsp,gtt-size = <2>; + fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; + fsp,aperture-size = <APERTURE_SIZE_256MB>; + fsp,gtt-size = <GTT_SIZE_2MB>; fsp,scc-enable-pci-mode; - fsp,os-selection = <4>; + fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>; fsp,enable-igd; fsp,enable-memory-down; fsp,memory-down-params { compatible = "intel,baytrail-fsp-mdp"; - fsp,dram-speed = <2>; /* 2=1333MHz */ - fsp,dram-type = <1>; /* 1=DDR3L */ + fsp,dram-speed = <DRAM_SPEED_1333MTS>; + fsp,dram-type = <DRAM_TYPE_DDR3L>; fsp,dimm-0-enable; fsp,dimm-1-enable; - fsp,dimm-width = <1>; /* 1=x16, 2=x32 */ - fsp,dimm-density = <2>; /* 2=4Gbit */ - fsp,dimm-bus-width = <3>; /* 3=64bits */ - fsp,dimm-sides = <0>; /* 0=1 ranks -> 0x2b */ + fsp,dimm-width = <DIMM_WIDTH_X16>; + fsp,dimm-density = <DIMM_DENSITY_4GBIT>; + fsp,dimm-bus-width = <DIMM_BUS_WIDTH_64BITS>; + fsp,dimm-sides = <DIMM_SIDES_1RANKS>; /* These following values might need a re-visit */ fsp,dimm-tcl = <8>;
arch/x86/dts/dfi-bt700.dtsi +15 -14
@@ -5,6 +5,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <asm/arch-baytrail/fsp/fsp_configs.h> #include <dt-bindings/gpio/x86-gpio.h> #include <dt-bindings/interrupt-router/intel-irq.h>
@@ -248,18 +249,18 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <1>; - fsp,mrc-init-mmio-size = <0x800>; + fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; + fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>; - fsp,emmc-boot-mode = <1>; + fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; fsp,enable-sdio; fsp,enable-sdcard; fsp,enable-hsuart0; fsp,enable-hsuart1; fsp,enable-spi; fsp,enable-sata; - fsp,sata-mode = <1>; + fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-lpe; fsp,lpss-sio-enable-pci-mode; fsp,enable-dma0;
@@ -273,24 +274,24 @@ fsp,enable-i2c6; fsp,enable-pwm0; fsp,enable-pwm1; - fsp,igd-dvmt50-pre-alloc = <2>; - fsp,aperture-size = <2>; - fsp,gtt-size = <2>; + fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; + fsp,aperture-size = <APERTURE_SIZE_256MB>; + fsp,gtt-size = <GTT_SIZE_2MB>; fsp,scc-enable-pci-mode; - fsp,os-selection = <4>; + fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>; fsp,enable-igd; fsp,enable-memory-down; fsp,memory-down-params { compatible = "intel,baytrail-fsp-mdp"; - fsp,dram-speed = <2>; /* 2=1333MHz */ - fsp,dram-type = <1>; /* 1=DDR3L */ + fsp,dram-speed = <DRAM_SPEED_1333MTS>; + fsp,dram-type = <DRAM_TYPE_DDR3L>; fsp,dimm-0-enable; - fsp,dimm-width = <1>; /* 1=x16, 2=x32 */ - fsp,dimm-density = <3>; /* 3=8Gbit */ - fsp,dimm-bus-width = <3>; /* 3=64bits */ - fsp,dimm-sides = <0>; /* 0=1 ranks -> 0x2b */ + fsp,dimm-width = <DIMM_WIDTH_X16>; + fsp,dimm-density = <DIMM_DENSITY_8GBIT>; + fsp,dimm-bus-width = <DIMM_BUS_WIDTH_64BITS>; + fsp,dimm-sides = <DIMM_SIDES_1RANKS>; /* These following values might need a re-visit */ fsp,dimm-tcl = <8>;
arch/x86/dts/minnowmax.dts +15 -14
@@ -6,6 +6,7 @@ /dts-v1/; +#include <asm/arch-baytrail/fsp/fsp_configs.h> #include <dt-bindings/gpio/x86-gpio.h> #include <dt-bindings/interrupt-router/intel-irq.h>
@@ -260,17 +261,17 @@ fsp { compatible = "intel,baytrail-fsp"; - fsp,mrc-init-tseg-size = <1>; - fsp,mrc-init-mmio-size = <0x800>; + fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; + fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; fsp,mrc-init-spd-addr1 = <0xa0>; fsp,mrc-init-spd-addr2 = <0xa2>; - fsp,emmc-boot-mode = <1>; + fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; fsp,enable-sdio; fsp,enable-sdcard; fsp,enable-hsuart1; fsp,enable-spi; fsp,enable-sata; - fsp,sata-mode = <1>; + fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-lpe; fsp,lpss-sio-enable-pci-mode; fsp,enable-dma0;
@@ -284,24 +285,24 @@ fsp,enable-i2c6; fsp,enable-pwm0; fsp,enable-pwm1; - fsp,igd-dvmt50-pre-alloc = <2>; - fsp,aperture-size = <2>; - fsp,gtt-size = <2>; + fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; + fsp,aperture-size = <APERTURE_SIZE_256MB>; + fsp,gtt-size = <GTT_SIZE_2MB>; fsp,scc-enable-pci-mode; - fsp,os-selection = <4>; + fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>; fsp,enable-igd; fsp,enable-memory-down; fsp,memory-down-params { compatible = "intel,baytrail-fsp-mdp"; - fsp,dram-speed = <1>; - fsp,dram-type = <1>; + fsp,dram-speed = <DRAM_SPEED_1066MTS>; + fsp,dram-type = <DRAM_TYPE_DDR3L>; fsp,dimm-0-enable; - fsp,dimm-width = <1>; - fsp,dimm-density = <2>; - fsp,dimm-bus-width = <3>; - fsp,dimm-sides = <0>; + fsp,dimm-width = <DIMM_WIDTH_X16>; + fsp,dimm-density = <DIMM_DENSITY_4GBIT>; + fsp,dimm-bus-width = <DIMM_BUS_WIDTH_64BITS>; + fsp,dimm-sides = <DIMM_SIDES_1RANKS>; fsp,dimm-tcl = <0xb>; fsp,dimm-trpt-rcd = <0xb>; fsp,dimm-twr = <0xc>;
arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h +77 -0
88 lines not on this page · raw message
doc/device-tree-bindings/misc/intel,baytrail-fsp.txt +22 -52
130 lines not on this page · raw message
Signature · 1 line
2.9.2
PATCH 4/4 x86: baytrail: Change lpe/lpss-sio/scc FSP properties to integer
In reply to Bin MengAt present lpe/lpss-sio/scc FSP properties are all boolean, but in fact for "enable-lpe" it has 3 possible options. This adds macros for these options and change the property from a boolean type to an integer type, and change their names to explicitly indicate what the property is really for.
---
arch/x86/cpu/baytrail/fsp_configs.c | 11 ++++++----- arch/x86/dts/bayleybay.dts | 6 +++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 4 ++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 6 +++--- arch/x86/dts/dfi-bt700.dtsi | 6 +++--- arch/x86/dts/minnowmax.dts | 6 +++--- arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h | 10 ++++++++++ arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 6 +++--- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 12 ++++++------ 9 files changed, 39 insertions(+), 28 deletions(-)
arch/x86/cpu/baytrail/fsp_configs.c +6 -5
@@ -175,9 +175,10 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->enable_azalia =fdtdec_get_bool (blob, node,"fsp,enable-azalia" ); fsp_upd->enable_xhci =fdtdec_get_bool (blob, node,"fsp,enable-xhci" ); - fsp_upd->enable_lpe =fdtdec_get_bool (blob, node,"fsp,enable-lpe" ); - fsp_upd->lpss_sio_enable_pci_mode =fdtdec_get_bool (blob, node, -"fsp,lpss-sio-enable-pci-mode" ); + fsp_upd->lpe_mode =fdtdec_get_int (blob, node,"fsp,lpe-mode" , +LPE_MODE_PCI ); + fsp_upd->lpss_sio_mode =fdtdec_get_int (blob, node,"fsp,lpss-sio-mode" , +LPSS_SIO_MODE_PCI ); fsp_upd->enable_dma0 =fdtdec_get_bool (blob, node,"fsp,enable-dma0" ); fsp_upd->enable_dma1 =fdtdec_get_bool (blob, node,"fsp,enable-dma1" ); fsp_upd->enable_i2_c0 =fdtdec_get_bool (blob, node,"fsp,enable-i2c0" );
@@ -199,8 +200,8 @@ void update_fsp_configs(struct fsp_config_data *config, fsp_upd->mrc_debug_msg =fdtdec_get_bool (blob, node,"fsp,mrc-debug-msg" ); fsp_upd->isp_enable =fdtdec_get_bool (blob, node,"fsp,isp-enable" ); - fsp_upd->scc_enable_pci_mode =fdtdec_get_bool (blob, node, -"fsp,scc-enable-pci-mode" ); + fsp_upd->scc_mode =fdtdec_get_int (blob, node,"fsp,scc-mode" , +SCC_MODE_PCI ); fsp_upd->igd_render_standby =fdtdec_get_bool (blob, node,"fsp,igd-render-standby" ); fsp_upd->txe_uma_enable = fdtdec_get_bool(blob, node,
arch/x86/dts/bayleybay.dts +3 -3
@@ -248,8 +248,8 @@ fsp,enable-spi; fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; - fsp,enable-lpe; - fsp,lpss-sio-enable-pci-mode; + fsp,lpe-mode = <LPE_MODE_PCI>; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-i2c0;
@@ -264,7 +264,7 @@ fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>;
arch/x86/dts/baytrail_som-db5800-som-6867.dts +2 -2
@@ -268,7 +268,7 @@ fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; fsp,enable-azalia; - fsp,lpss-sio-enable-pci-mode; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-i2c0;
@@ -283,7 +283,7 @@ fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,enable-igd; };
arch/x86/dts/conga-qeval20-qa3-e3845.dts +3 -3
@@ -258,8 +258,8 @@ fsp,enable-spi; fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; - fsp,enable-lpe; - fsp,lpss-sio-enable-pci-mode; + fsp,lpe-mode = <LPE_MODE_PCI>; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-pwm0;
@@ -267,7 +267,7 @@ fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>;
arch/x86/dts/dfi-bt700.dtsi +3 -3
@@ -261,8 +261,8 @@ fsp,enable-spi; fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; - fsp,enable-lpe; - fsp,lpss-sio-enable-pci-mode; + fsp,lpe-mode = <LPE_MODE_PCI>; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-i2c0;
@@ -277,7 +277,7 @@ fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>;
arch/x86/dts/minnowmax.dts +3 -3
@@ -272,8 +272,8 @@ fsp,enable-spi; fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; - fsp,enable-lpe; - fsp,lpss-sio-enable-pci-mode; + fsp,lpe-mode = <LPE_MODE_PCI>; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-i2c0;
@@ -288,7 +288,7 @@ fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>;
arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h +10 -0
@@ -93,4 +93,14 @@ struct fspinit_rtbuf {#define DIMM_SIDES_1RANKS 0#define DIMM_SIDES_2RANKS 1 +#define LPE_MODE_DISABLED 0 +#define LPE_MODE_PCI 1 +#define LPE_MODE_ACPI 2 + +#define LPSS_SIO_MODE_ACPI 0 +#define LPSS_SIO_MODE_PCI 1 + +#define SCC_MODE_ACPI 0 +#define SCC_MODE_PCI 1 +#endif /* __FSP_CONFIGS_H__ */
arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h +3 -3
@@ -47,8 +47,8 @@ struct __packed upd_region {uint8_t enable_azalia;/* Offset 0x002f */ uint32_t azalia_config_ptr;/* Offset 0x0030 */ uint8_t enable_xhci;/* Offset 0x0034 */ -uint8_t enable_lpe;/* Offset 0x0035 */ -uint8_t lpss_sio_enable_pci_mode;/* Offset 0x0036 */ +uint8_t lpe_mode;/* Offset 0x0035 */ +uint8_t lpss_sio_mode;/* Offset 0x0036 */ uint8_t enable_dma0;/* Offset 0x0037 */ uint8_t enable_dma1;/* Offset 0x0038 */ uint8_t enable_i2_c0;/* Offset 0x0039 */
@@ -67,7 +67,7 @@ struct __packed upd_region {uint8_t reserved2[5 ];/* Offset 0x0046 */ uint8_t mrc_debug_msg;/* Offset 0x004b */ uint8_t isp_enable;/* Offset 0x004c */ -uint8_t scc_enable_pci_mode;/* Offset 0x004d */ +uint8_t scc_mode;/* Offset 0x004d */ uint8_t igd_render_standby;/* Offset 0x004e */ uint8_t txe_uma_enable;/* Offset 0x004f */ uint8_t os_selection;/* Offset 0x0050 */
doc/device-tree-bindings/misc/intel,baytrail-fsp.txt +6 -6
@@ -19,8 +19,6 @@ is matched up to Intel's E3800 FSPv4 release. - fsp,enable-sata - fsp,enable-azalia - fsp,enable-xhci -- fsp,enable-lpe -- fsp,lpss-sio-enable-pci-mode - fsp,enable-dma0 - fsp,enable-dma1 - fsp,enable-i2-c0
@@ -35,7 +33,6 @@ is matched up to Intel's E3800 FSPv4 release. - fsp,enable-hsi - fsp,mrc-debug-msg - fsp,isp-enable -- fsp,scc-enable-pci-mode - fsp,igd-render-standby - fsp,txe-uma-enable - fsp,emmc45-ddr50-enabled
@@ -57,9 +54,12 @@ discovered by the FSP and used to setup main memory. - fsp,mrc-init-spd-addr2 - fsp,emmc-boot-mode - fsp,sata-mode +- fsp,lpe-mode +- fsp,lpss-sio-mode - fsp,igd-dvmt50-pre-alloc - fsp,aperture-size - fsp,gtt-size +- fsp,scc-mode - fsp,os-selection - fsp,emmc45-retune-timer-value
@@ -110,8 +110,8 @@ Example (from MinnowMax Dual Core): fsp,enable-spi; fsp,enable-sata; fsp,sata-mode = <SATA_MODE_AHCI>; - fsp,enable-lpe; - fsp,lpss-sio-enable-pci-mode; + fsp,lpe-mode = <LPE_MODE_PCI>; + fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; fsp,enable-dma0; fsp,enable-dma1; fsp,enable-i2c0;
@@ -126,7 +126,7 @@ Example (from MinnowMax Dual Core): fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; fsp,aperture-size = <APERTURE_SIZE_256MB>; fsp,gtt-size = <GTT_SIZE_2MB>; - fsp,scc-enable-pci-mode; + fsp,scc-mode = <SCC_MODE_PCI>; fsp,os-selection = <OS_SELECTION_LINUX>; fsp,emmc45-ddr50-enabled; fsp,emmc45-retune-timer-value = <8>;
Signature · 1 line
2.9.2
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
In reply to Bin MengQuoted 4 lines · Bin Meng
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
Signed-off-by Bin Meng <[email protected]>
How does this change affect the x86 U-Boot versions? Did you experience any problems with the incorrect value of 0?
Thanks,
Stefan
PATCH 2/4 x86: baytrail: Remove "serial-debug-port-*" settings
In reply to Bin MengQuoted 4 lines · Bin Meng
"serial-debug-port-address" and "serial-debug-port-type" settings are actually reserved in the FSP UPD data structure. Remove them.
Signed-off-by Bin Meng <[email protected]>
Thanks,
Stefan
PATCH 3/4 x86: baytrail: Use macros instead of magic numbers for FSP settings
In reply to Bin MengQuoted 4 lines · Bin Meng
Introduce various meaningful macros for FSP settings and switch over to use them instead of magic numbers.
Signed-off-by Bin Meng <[email protected]>
Looks very good, much more descriptive this way. Thanks for working on this. :)
Thanks,
Stefan
PATCH 4/4 x86: baytrail: Change lpe/lpss-sio/scc FSP properties to integer
In reply to Bin MengQuoted 7 lines · Bin Meng
At present lpe/lpss-sio/scc FSP properties are all boolean, but in fact for "enable-lpe" it has 3 possible options. This adds macros for these options and change the property from a boolean type to an integer type, and change their names to explicitly indicate what the property is really for.
Signed-off-by Bin Meng <[email protected]>
Thanks,
Stefan
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
In reply to Stefan RoeseHi Stefan,
Quoted 10 lines · Stefan Roese
Quoted 5 lines · Bin Meng
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
Signed-off-by Bin Meng <[email protected]>How does this change affect the x86 U-Boot versions? Did you experience any problems with the incorrect value of 0?
What do you mean by "affecting the x86 U-Boot versions"? Do you want to track back which U-Boot version introduce the wrong tseg-size setting?
I did not experience any problems with the incorrect value of 0, probably because U-Boot does not have SMM support yet. But definitely it is wrong.
Regards,
Bin
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
Hi Bin,
Quoted 11 lines · Bin Meng
Hi Stefan,
Quoted 8 lines · Stefan Roese
Quoted 5 lines · Bin Meng
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
Signed-off-by Bin Meng <[email protected]>
Quoted 6 lines
Quoted 2 lines
How does this change affect the x86 U-Boot versions? Did you experience any problems with the incorrect value of 0?
What do you mean by "affecting the x86 U-Boot versions"? Do you want to track back which U-Boot version introduce the wrong tseg-size setting?
No, I just meant, if you were experiencing any problems that were caused by these incorrect values.
Quoted 3 lines
I did not experience any problems with the incorrect value of 0, probably because U-Boot does not have SMM support yet. But definitely it is wrong.
That explain it.
Thanks,
Stefan
PATCH 2/4 x86: baytrail: Remove "serial-debug-port-*" settings
In reply to Bin MengQuoted 6 lines · Bin Meng
"serial-debug-port-address" and "serial-debug-port-type" settings are actually reserved in the FSP UPD data structure. Remove them.
Signed-off-by Bin Meng <[email protected]>---
Quoted 7 lines
arch/x86/cpu/baytrail/fsp_configs.c | 4 ---- arch/x86/dts/bayleybay.dts | 2 -- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 -- arch/x86/dts/minnowmax.dts | 2 -- arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 3 +-- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 2 -- 6 files changed, 1 insertion(+), 14 deletions(-)
PATCH 3/4 x86: baytrail: Use macros instead of magic numbers for FSP settings
In reply to Bin MengQuoted 6 lines · Bin Meng
Introduce various meaningful macros for FSP settings and switch over to use them instead of magic numbers.
Signed-off-by Bin Meng <[email protected]>---
Quoted 9 lines
arch/x86/cpu/baytrail/fsp_configs.c | 35 +++++----- arch/x86/dts/bayleybay.dts | 17 ++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 15 +++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 29 ++++---- arch/x86/dts/dfi-bt700.dtsi | 29 ++++---- arch/x86/dts/minnowmax.dts | 29 ++++---- .../include/asm/arch-baytrail/fsp/fsp_configs.h | 77 ++++++++++++++++++++++ .../misc/intel,baytrail-fsp.txt | 74 +++++++-------------- 8 files changed, 181 insertions(+), 124 deletions(-)
PATCH 4/4 x86: baytrail: Change lpe/lpss-sio/scc FSP properties to integer
In reply to Bin MengQuoted 10 lines · Bin Meng
At present lpe/lpss-sio/scc FSP properties are all boolean, but in fact for "enable-lpe" it has 3 possible options. This adds macros for these options and change the property from a boolean type to an integer type, and change their names to explicitly indicate what the property is really for.
Signed-off-by Bin Meng <[email protected]>---
Quoted 10 lines
arch/x86/cpu/baytrail/fsp_configs.c | 11 ++++++----- arch/x86/dts/bayleybay.dts | 6 +++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 4 ++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 6 +++--- arch/x86/dts/dfi-bt700.dtsi | 6 +++--- arch/x86/dts/minnowmax.dts | 6 +++--- arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h | 10 ++++++++++ arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 6 +++--- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 12 ++++++------ 9 files changed, 39 insertions(+), 28 deletions(-)
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
In reply to Bin MengQuoted 6 lines · Bin Meng
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
arch/x86/cpu/baytrail/fsp_configs.c | 2 +- arch/x86/dts/bayleybay.dts | 2 +- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 +- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- arch/x86/dts/dfi-bt700.dtsi | 2 +- arch/x86/dts/minnowmax.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
PATCH 1/4 x86: baytrail: Change "fsp, mrc-init-tseg-size" default value to 1
Quoted 16 lines · Simon Glass
Quoted 6 lines · Bin Meng
The default value of "fsp,mrc-init-tseg-size" should be 1 (1MB) per FSP default settings. 0 is not valid.
Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
arch/x86/cpu/baytrail/fsp_configs.c | 2 +- arch/x86/dts/bayleybay.dts | 2 +- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 +- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- arch/x86/dts/dfi-bt700.dtsi | 2 +- arch/x86/dts/minnowmax.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH 2/4 x86: baytrail: Remove "serial-debug-port-*" settings
In reply to Simon GlassQuoted 15 lines · Simon Glass
Quoted 6 lines · Bin Meng
"serial-debug-port-address" and "serial-debug-port-type" settings are actually reserved in the FSP UPD data structure. Remove them.
Signed-off-by Bin Meng <[email protected]>---
Quoted 7 lines
arch/x86/cpu/baytrail/fsp_configs.c | 4 ---- arch/x86/dts/bayleybay.dts | 2 -- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 -- arch/x86/dts/minnowmax.dts | 2 -- arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 3 +-- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 2 -- 6 files changed, 1 insertion(+), 14 deletions(-)
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH 3/4 x86: baytrail: Use macros instead of magic numbers for FSP settings
In reply to Simon GlassQuoted 17 lines · Simon Glass
Quoted 6 lines · Bin Meng
Introduce various meaningful macros for FSP settings and switch over to use them instead of magic numbers.
Signed-off-by Bin Meng <[email protected]>---
Quoted 9 lines
arch/x86/cpu/baytrail/fsp_configs.c | 35 +++++----- arch/x86/dts/bayleybay.dts | 17 ++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 15 +++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 29 ++++---- arch/x86/dts/dfi-bt700.dtsi | 29 ++++---- arch/x86/dts/minnowmax.dts | 29 ++++---- .../include/asm/arch-baytrail/fsp/fsp_configs.h | 77 ++++++++++++++++++++++ .../misc/intel,baytrail-fsp.txt | 74 +++++++-------------- 8 files changed, 181 insertions(+), 124 deletions(-)
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH 4/4 x86: baytrail: Change lpe/lpss-sio/scc FSP properties to integer
In reply to Simon GlassQuoted 22 lines · Simon Glass
Quoted 10 lines · Bin Meng
At present lpe/lpss-sio/scc FSP properties are all boolean, but in fact for "enable-lpe" it has 3 possible options. This adds macros for these options and change the property from a boolean type to an integer type, and change their names to explicitly indicate what the property is really for.
Signed-off-by Bin Meng <[email protected]>---
Quoted 10 lines
arch/x86/cpu/baytrail/fsp_configs.c | 11 ++++++----- arch/x86/dts/bayleybay.dts | 6 +++--- arch/x86/dts/baytrail_som-db5800-som-6867.dts | 4 ++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 6 +++--- arch/x86/dts/dfi-bt700.dtsi | 6 +++--- arch/x86/dts/minnowmax.dts | 6 +++--- arch/x86/include/asm/arch-baytrail/fsp/fsp_configs.h | 10 ++++++++++ arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h | 6 +++--- doc/device-tree-bindings/misc/intel,baytrail-fsp.txt | 12 ++++++------ 9 files changed, 39 insertions(+), 28 deletions(-)
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!