[Skiboot] [PATCH] memboot: Add a memboot flash backend

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Feb 24 20:28:15 AEDT 2015


On Tue, 2015-02-24 at 16:10 +1100, Alistair Popple wrote:
> 
> +bool ast_is_ahb_lpc_pnor(void)
> +{
> +       uint32_t hicr7;
> +
> +       /* Determine if the LPC->AHB bridge is pointing at PNOR or not
> */
> +       hicr7 = bmc_sio_ahb_readl(LPC_HICR7);
> +       return (hicr7 & 0xffff0000) == (PNOR_FLASH_BASE & 0xffff0000);
> +}
> +

We are supposed to set a scratch register bit to indicate a memboot
boot ... we need to 1) fix memboot to set it, and 2) use it :-)

It should be documented in the latest BMC requirement spec from Dean.

Cheers,
Ben.





More information about the Skiboot mailing list