Adapt code to match last commit, link in bpmpfw_bin(_size)

This commit is contained in:
TuxSH 2018-02-26 22:30:51 +01:00
parent 984ade3ede
commit 9384546753
4 changed files with 22 additions and 11 deletions

View file

@ -7,7 +7,11 @@
/* Exosphere register definitions for the Tegra X1 Flow Controller. */
#define FLOW_BASE (mmio_get_device_address(MMIO_DEVID_FLOWCTRL))
static inline uintptr_t get_flow_base(void) {
return MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_FLOWCTRL);
}
#define FLOW_BASE (get_flow_base())
#define MAKE_FLOW_REG(ofs) (*((volatile uint32_t *)(FLOW_BASE + ofs)))
@ -43,4 +47,4 @@ static inline void flow_clear_csr0_and_events(uint32_t core) {
MAKE_FLOW_REG(g_flow_core_offsets[core].HALT_CPUN_EVENTS_OFS) = 0;
}
#endif
#endif