mb/google/brya/var/xol: add support for wifi sar table
Add wifi sar table support for xol. Bit 31 in CBI/FW_CONFIG is used to select different sar table (index 0 or 1) but only 0 is in used at the moment. BUG=b:344274789 BRANCH=firmware-brya-14505.B TEST=emerge-brya coreboot chromeos-bootimage Change-Id: Id4dc74c4f2a807d2e531b419ecb7b590d4c32ac2 Signed-off-by: YH Lin <yueherngl@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82945 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
		@@ -550,6 +550,7 @@ config BOARD_GOOGLE_XIVU
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
config BOARD_GOOGLE_XOL
 | 
					config BOARD_GOOGLE_XOL
 | 
				
			||||||
	select BOARD_GOOGLE_BASEBOARD_BRYA
 | 
						select BOARD_GOOGLE_BASEBOARD_BRYA
 | 
				
			||||||
 | 
						select CHROMEOS_WIFI_SAR if CHROMEOS
 | 
				
			||||||
	select DRIVERS_I2C_DA7219
 | 
						select DRIVERS_I2C_DA7219
 | 
				
			||||||
	select DRIVERS_INTEL_ISH
 | 
						select DRIVERS_INTEL_ISH
 | 
				
			||||||
	select SOC_INTEL_RAPTORLAKE
 | 
						select SOC_INTEL_RAPTORLAKE
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,3 +4,4 @@ bootblock-y += gpio.c
 | 
				
			|||||||
romstage-y += memory.c
 | 
					romstage-y += memory.c
 | 
				
			||||||
ramstage-y += gpio.c
 | 
					ramstage-y += gpio.c
 | 
				
			||||||
ramstage-y += ramstage.c
 | 
					ramstage-y += ramstage.c
 | 
				
			||||||
 | 
					ramstage-$(CONFIG_FW_CONFIG) += variant.c
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,10 @@ fw_config
 | 
				
			|||||||
		option STORAGE_UFS			0
 | 
							option STORAGE_UFS			0
 | 
				
			||||||
		option STORAGE_NVME			1
 | 
							option STORAGE_NVME			1
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
						field WIFI_SAR_ID 31
 | 
				
			||||||
 | 
							option WIFI_SAR_ID_0			0
 | 
				
			||||||
 | 
							option WIFI_SAR_ID_1			1
 | 
				
			||||||
 | 
						end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chip soc/intel/alderlake
 | 
					chip soc/intel/alderlake
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								src/mainboard/google/brya/variants/xol/variant.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/mainboard/google/brya/variants/xol/variant.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-only */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <baseboard/variants.h>
 | 
				
			||||||
 | 
					#include <chip.h>
 | 
				
			||||||
 | 
					#include <fw_config.h>
 | 
				
			||||||
 | 
					#include <sar.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const char *get_wifi_sar_cbfs_filename(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						return "wifi_sar_0.hex";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user