mb/amd/majolica: Generate OIPG Package
This fixes the unknown reference errors for OIPG. Since Majolica doesn't actually have any of the GPIOs ChromeOS uses, we leave the arrays empty. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ifeae84e0ccab187a4e7131cd6ea9e1336d79df67 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51536 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Felix Held
					
				
			
			
				
	
			
			
			
						parent
						
							447a681d3f
						
					
				
				
					commit
					d211ede937
				
			@@ -3,6 +3,8 @@
 | 
				
			|||||||
bootblock-y += bootblock.c
 | 
					bootblock-y += bootblock.c
 | 
				
			||||||
bootblock-y += early_gpio.c
 | 
					bootblock-y += early_gpio.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ramstage-y += chromeos.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4.bin
 | 
					APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4.bin
 | 
				
			||||||
APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4_DefaultRecovery.bin
 | 
					APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_CZN_D4_DefaultRecovery.bin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										26
									
								
								src/mainboard/amd/majolica/chromeos.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/mainboard/amd/majolica/chromeos.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					/* SPDX-License-Identifier: GPL-2.0-or-later */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <boot/coreboot_tables.h>
 | 
				
			||||||
 | 
					#include <gpio.h>
 | 
				
			||||||
 | 
					#include <vendorcode/google/chromeos/chromeos.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void fill_lb_gpios(struct lb_gpios *gpios)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						struct lb_gpio chromeos_gpios[] = {};
 | 
				
			||||||
 | 
						lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int get_write_protect_state(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						/* Majolica doesn't have a write protect pin */
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static const struct cros_gpio cros_gpios[] = {
 | 
				
			||||||
 | 
						/* No ChromeOS GPIOs */
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void mainboard_chromeos_acpi_generate(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						chromeos_acpi_gpio_generate(cros_gpios, ARRAY_SIZE(cros_gpios));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -7,6 +7,7 @@
 | 
				
			|||||||
#include <soc/acpi.h>
 | 
					#include <soc/acpi.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <types.h>
 | 
					#include <types.h>
 | 
				
			||||||
 | 
					#include <vendorcode/google/chromeos/chromeos.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.
 | 
					 * These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.
 | 
				
			||||||
@@ -94,6 +95,8 @@ static void mainboard_enable(struct device *dev)
 | 
				
			|||||||
	init_tables();
 | 
						init_tables();
 | 
				
			||||||
	/* Initialize the PIRQ data structures for consumption */
 | 
						/* Initialize the PIRQ data structures for consumption */
 | 
				
			||||||
	pirq_setup();
 | 
						pirq_setup();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct chip_operations mainboard_ops = {
 | 
					struct chip_operations mainboard_ops = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user