summaryrefslogtreecommitdiffstats
path: root/mboxd_lpc_virtual.cpp
Commit message (Collapse)AuthorAgeFilesLines
* vpnor: mboxd reset: reconstruct TOCDeepak Kodihalli2017-08-011-0/+2
| | | | | | | | | | | | Upon mboxd reset, reconstruct the virtual PNOR partition table, so that an update in the PNOR can be accounted for. The use case here is someone loads a new PNOR while the BMC is at standy, activates it, and boots the system. The TOC corresponding to this PNOR would need to be reconstructed. Change-Id: I3247e8cb594adc8ced7c5dd706ae1bda7b0a01b9 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* vpnor: create hostboot bootloader partitionDeepak Kodihalli2017-07-191-0/+34
The hostboot bootloader code doesn't use mbox. It has specific requirements: - The PNOR TOC should be at the 'PNOR end - TOC size - page size' offset. It searches for the TOC here, if not found, the search moves down page by page. - The PNOR should be 64M. The page size and erase block should be 4K. The TOC should be 32K. Copy what the bootloader expects to the LPC memory when mboxd starts up. The same needs to be done in the case of an mbox reset (irrespective of where the reset comes from). Skiboot expects that the TOC should be at offset 0, but it uses mbox to read the TOC. So this commit doesn't impact skiboot requirements. Change-Id: I7de556dccfea85f2faa5f401177006a3a562494e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud