cleanup 0x180000000 const
This commit is contained in:
parent
0bcc8b10d5
commit
16054e1f1e
@ -257,7 +257,7 @@ where
|
|||||||
|
|
||||||
debug!("backplane_readn addr = {:08x} len = {} val = {:08x}", addr, len, val);
|
debug!("backplane_readn addr = {:08x} len = {} val = {:08x}", addr, len, val);
|
||||||
|
|
||||||
self.backplane_set_window(0x18000000).await; // CHIPCOMMON_BASE_ADDRESS
|
self.backplane_set_window(CHIP.pmu_base_address).await;
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ where
|
|||||||
}
|
}
|
||||||
self.writen(FUNC_BACKPLANE, bus_addr, val, len).await;
|
self.writen(FUNC_BACKPLANE, bus_addr, val, len).await;
|
||||||
|
|
||||||
self.backplane_set_window(0x18000000).await; // CHIPCOMMON_BASE_ADDRESS
|
self.backplane_set_window(CHIP.pmu_base_address).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn backplane_set_window(&mut self, addr: u32) {
|
async fn backplane_set_window(&mut self, addr: u32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user