mb/getac/p470: Drop dead code
This code is not even being build-tested. Drop it before it grows moss. Change-Id: Ida12426c51313a7642b5c363e58a79d77b1b096b Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43240 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner
This commit is contained in:
		
				
					committed by
					
						
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							f3de8859a8
						
					
				
				
					commit
					db5557972a
				
			@@ -34,30 +34,6 @@ static void ec_enable(void)
 | 
				
			|||||||
	send_ec_oem_data(0x01);
 | 
						send_ec_oem_data(0x01);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void pcie_limit_power(void)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
#if 0
 | 
					 | 
				
			||||||
	// This piece of code needs further debugging as it crashes the
 | 
					 | 
				
			||||||
	// machine. It should set the slot numbers and enable power
 | 
					 | 
				
			||||||
	// limitation for the PCIe slots.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct device *dev;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	dev = pcidev_on_root(28, 0);
 | 
					 | 
				
			||||||
	if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	dev = pcidev_on_root(28, 1);
 | 
					 | 
				
			||||||
	if (dev) pci_write_config32(dev, 0x54, 0x0018a0e0);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	dev = pcidev_on_root(28, 2);
 | 
					 | 
				
			||||||
	if (dev) pci_write_config32(dev, 0x54, 0x0020a0e0);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	dev = pcidev_on_root(28, 3);
 | 
					 | 
				
			||||||
	if (dev) pci_write_config32(dev, 0x54, 0x0028a0e0);
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static void mainboard_init(struct device *dev)
 | 
					static void mainboard_init(struct device *dev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	ec_enable();
 | 
						ec_enable();
 | 
				
			||||||
@@ -70,8 +46,6 @@ static void mainboard_enable(struct device *dev)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	dev->ops->init = mainboard_init;
 | 
						dev->ops->init = mainboard_init;
 | 
				
			||||||
	dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
 | 
						dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
 | 
				
			||||||
 | 
					 | 
				
			||||||
	pcie_limit_power();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct chip_operations mainboard_ops = {
 | 
					struct chip_operations mainboard_ops = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user