soc/intel/baytrail: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I80c8a1b58e8102ed11e22b74f30750d5a6c4eae4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76283 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						 Felix Held
						Felix Held
					
				
			
			
				
	
			
			
			
						parent
						
							a5935c6307
						
					
				
				
					commit
					d821c7267f
				
			| @@ -147,9 +147,8 @@ static void lpe_read_resources(struct device *dev) | ||||
| { | ||||
| 	pci_dev_read_resources(dev); | ||||
|  | ||||
| 	reserved_ram_resource_kb(dev, FIRMWARE_PCI_REG_BASE, | ||||
| 			      FIRMWARE_PHYS_BASE >> 10, | ||||
| 			      FIRMWARE_PHYS_LENGTH >> 10); | ||||
| 	reserved_ram_range(dev, FIRMWARE_PCI_REG_BASE, FIRMWARE_PHYS_BASE, | ||||
| 			   FIRMWARE_PHYS_LENGTH); | ||||
| } | ||||
|  | ||||
| static const struct device_operations device_ops = { | ||||
|   | ||||
| @@ -108,8 +108,8 @@ static void nc_read_resources(struct device *dev) | ||||
| 	 * 0xa0000 - 0xbffff: legacy VGA | ||||
| 	 * 0xc0000 - 0xfffff: RAM | ||||
| 	 */ | ||||
| 	mmio_resource_kb(dev, index++, (0xa0000 >> 10), (0xc0000 - 0xa0000) >> 10); | ||||
| 	reserved_ram_resource_kb(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10); | ||||
| 	mmio_from_to(dev, index++, 0xa0000, 0xc0000); | ||||
| 	reserved_ram_from_to(dev, index++, 0xc0000, 1 * MiB); | ||||
| } | ||||
|  | ||||
| static void nc_generate_ssdt(const struct device *dev) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user