soc/intel/braswell: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I4769f79c67c372e11bb267de3acec0920d7ab0d2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Felix Held
						Felix Held
					
				
			
			
				
	
			
			
			
						parent
						
							d821c7267f
						
					
				
				
					commit
					43169fe86d
				
			| @@ -154,8 +154,8 @@ static void lpe_read_resources(struct device *dev) | |||||||
| 	res->align = 12; | 	res->align = 12; | ||||||
| 	res->flags = IORESOURCE_MEM; | 	res->flags = IORESOURCE_MEM; | ||||||
|  |  | ||||||
| 	reserved_ram_resource_kb(dev, FIRMWARE_PCI_REG_BASE, FIRMWARE_PHYS_BASE >> 10, | 	reserved_ram_range(dev, FIRMWARE_PCI_REG_BASE, FIRMWARE_PHYS_BASE, | ||||||
| 			      FIRMWARE_PHYS_LENGTH >> 10); | 			   FIRMWARE_PHYS_LENGTH); | ||||||
| } | } | ||||||
|  |  | ||||||
| static void lpe_set_resources(struct device *dev) | static void lpe_set_resources(struct device *dev) | ||||||
|   | |||||||
| @@ -124,8 +124,8 @@ static void nc_read_resources(struct device *dev) | |||||||
| 	 * 0xa0000 - 0xbffff: legacy VGA | 	 * 0xa0000 - 0xbffff: legacy VGA | ||||||
| 	 * 0xc0000 - 0xfffff: RAM | 	 * 0xc0000 - 0xfffff: RAM | ||||||
| 	 */ | 	 */ | ||||||
| 	mmio_resource_kb(dev, index++, (0xa0000 >> 10), (0xc0000 - 0xa0000) >> 10); | 	mmio_from_to(dev, index++, 0xa0000, 0xc0000); | ||||||
| 	reserved_ram_resource_kb(dev, index++, (0xc0000 >> 10), (0x100000 - 0xc0000) >> 10); | 	reserved_ram_from_to(dev, index++, 0xc0000, 1 * MiB); | ||||||
|  |  | ||||||
| 	/* | 	/* | ||||||
| 	 * Reserve local APIC | 	 * Reserve local APIC | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user