diff options
author | Evan Lojewski <github@meklort.com> | 2019-02-11 19:12:01 -0700 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-02-11 19:12:01 -0700 |
commit | 9e583fbabd9a42d4c54239ecd0c974c4062cd00a (patch) | |
tree | c7153a956bbea4658d3b44922a853e71b67d30c7 /stage1 | |
parent | 83f298bd427751e4fe9a006de673e875c2e46ade (diff) | |
download | bcm5719-ortega-9e583fbabd9a42d4c54239ecd0c974c4062cd00a.tar.gz bcm5719-ortega-9e583fbabd9a42d4c54239ecd0c974c4062cd00a.zip |
Update nvrma format to more closely match ortega spec.
Diffstat (limited to 'stage1')
-rw-r--r-- | stage1/init_hw.c | 2 | ||||
-rw-r--r-- | stage1/main.c | 4 | ||||
-rw-r--r-- | stage1/stage1.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/stage1/init_hw.c b/stage1/init_hw.c index 956bbeb..b7321cc 100644 --- a/stage1/init_hw.c +++ b/stage1/init_hw.c @@ -74,7 +74,7 @@ void init_mii(void) // Set MII_REG_CONTROL to AUTO_NEGOTIATION_ENABLE. } -void init_hw(NVRAMContents *nvram) +void init_hw(NVRAMContents_t *nvram) { // Enable memory arbitration DEVICE.MemoryArbiterMode.bits.Enable = 1; diff --git a/stage1/main.c b/stage1/main.c index 64cb01e..51a1f51 100644 --- a/stage1/main.c +++ b/stage1/main.c @@ -46,12 +46,12 @@ #include <NVRam.h> -NVRAMContents gNVMContents; +NVRAMContents_t gNVMContents; int main() { // Read in the NVM header. - NVRam_read(0, (uint32_t *)&gNVMContents, sizeof(NVRAMContents) / 4); + NVRam_read(0, (uint32_t *)&gNVMContents, sizeof(NVRAMContents_t) / 4); // Initialize the hardware. init_hw(&gNVMContents); diff --git a/stage1/stage1.h b/stage1/stage1.h index 1adad45..926cb4d 100644 --- a/stage1/stage1.h +++ b/stage1/stage1.h @@ -47,6 +47,6 @@ #include <bcm5719_eeprom.h> -void init_hw(NVRAMContents *nvram); +void init_hw(NVRAMContents_t *nvram); #endif /* STAGE1_H */ |