[Skiboot] [PATCH 2/7] hw/phys-map: Add Axone memory map

Michael Neuling mikey at neuling.org
Thu Jun 13 10:54:50 AEST 2019


On Wed, 2019-06-12 at 16:08 -0500, Reza Arbab wrote:
> Add the physical memory map for Axone systems. According to
> 'make hw-check', there are no holes or overlapping regions.
> 
> Signed-off-by: Reza Arbab <arbab at linux.ibm.com>

Acked-by: Michael Neuling <mikey at neuling.org>

> @@ -207,8 +335,15 @@ void phys_map_init(unsigned long pvr)
>  	phys_map = NULL;
>  
>  	if (proc_gen == proc_gen_p9) {
> -		name = "nimbus";
> -		phys_map = &phys_map_nimbus;
> +		switch(PVR_TYPE(pvr)) {
> +		case PVR_TYPE_P9P:
> +			name = "axone";
> +			phys_map = &phys_map_axone;
> +			break;
> +		default:
> +			name = "nimbus";
> +			phys_map = &phys_map_nimbus;
> +		}

Long term when we get a few more chips to support here, we should make this a
table like the cputable with PVR + mask and select the entry using that but this
is fine for now.

Mikey


More information about the Skiboot mailing list