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

Alistair Popple alistair at popple.id.au
Wed Feb 25 10:17:52 AEDT 2015


Ben,

Right. I'd forgotten we could just access that bit directly from skiboot. Once 
you've worked out where it is let me know and I'll update the patch.

Thanks.

- Alistair

On Tue, 24 Feb 2015 20:28:15 Benjamin Herrenschmidt wrote:
> 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