Update documentation
This commit is contained in:
parent
db5948075e
commit
551f081892
|
@ -27,6 +27,7 @@
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
//! Low-level boot of the Raspberry's processor
|
//! Low-level boot of the Raspberry's processor
|
||||||
|
//! http://infocenter.arm.com/help/topic/com.arm.doc.dai0527a/DAI0527A_baremetal_boot_code_for_ARMv8_A_processors.pdf
|
||||||
|
|
||||||
extern crate panic_abort;
|
extern crate panic_abort;
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! MMU initialisation.
|
//! MMU initialisation.
|
||||||
|
//! [ARMv8 memory addressing](https://static.docs.arm.com/100940/0100/armv8_a_address%20translation_100940_0100_en.pdf)
|
||||||
|
|
||||||
use crate::println;
|
use crate::println;
|
||||||
use cortex_a::{barrier, regs::*};
|
use cortex_a::{barrier, regs::*};
|
||||||
|
|
|
@ -5,6 +5,7 @@ pub struct BcmHost;
|
||||||
|
|
||||||
impl BcmHost {
|
impl BcmHost {
|
||||||
// As per https://www.raspberrypi.org/documentation/hardware/raspberrypi/peripheral_addresses.md
|
// As per https://www.raspberrypi.org/documentation/hardware/raspberrypi/peripheral_addresses.md
|
||||||
|
// BCM SOC could address only 1Gb of memory, so 0x4000_0000 is the high watermark.
|
||||||
/// This returns the ARM-side physical address where peripherals are mapped.
|
/// This returns the ARM-side physical address where peripherals are mapped.
|
||||||
pub const fn get_peripheral_address() -> u32 {
|
pub const fn get_peripheral_address() -> u32 {
|
||||||
0x3f00_0000
|
0x3f00_0000
|
||||||
|
|
Loading…
Reference in New Issue