summaryrefslogtreecommitdiffstats
path: root/stage1/main.c
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-08-07 22:15:12 -0600
committerEvan Lojewski <github@meklort.com>2019-08-07 22:15:12 -0600
commite7ab18226aeb1a5059c48b94c82704b6714ba394 (patch)
tree13b4c69bc178405a5e7c6fe88929035bd616da20 /stage1/main.c
parentad4a6ff13f82d416eba2199c145977c60246c11f (diff)
downloadbcm5719-ortega-e7ab18226aeb1a5059c48b94c82704b6714ba394.tar.gz
bcm5719-ortega-e7ab18226aeb1a5059c48b94c82704b6714ba394.zip
MII: Add a device parameter to enable the APE to use different registers based on the channel.
Diffstat (limited to 'stage1/main.c')
-rw-r--r--stage1/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/stage1/main.c b/stage1/main.c
index 10fe0be..c1cd296 100644
--- a/stage1/main.c
+++ b/stage1/main.c
@@ -58,7 +58,11 @@
#include <NVRam.h>
#include <bcm5719_APE.h>
#include <bcm5719_BOOTCODE.h>
+#if CXX_SIMULATOR
+#include <APE_DEVICE.h>
+#else
#include <bcm5719_DEVICE.h>
+#endif
#include <bcm5719_GEN.h>
#include <bcm5719_SHM.h>
@@ -87,10 +91,10 @@ int main()
NVRam_releaseLock();
#if !CXX_SIMULATOR
- load_nvm_config(&gNVMContents);
+ load_nvm_config(&DEVICE, &gNVMContents);
// Initialize the hardware.
- init_hw(&gNVMContents);
+ init_hw(&DEVICE, &gNVMContents);
#endif
// Send configuration information to APE SHM.
OpenPOWER on IntegriCloud