Compare commits
5 Commits
8e09947c54
...
c3502888f2
Author | SHA1 | Date |
---|---|---|
Astro | c3502888f2 | |
Astro | 4b346f5c55 | |
Astro | 2dda3ca4e6 | |
Astro | e8763fa969 | |
Astro | 58e4e34fa5 |
|
@ -14,6 +14,6 @@ lto = false
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
debug = true
|
debug = true
|
||||||
# Link-Time Optimization:
|
# Link-Time Optimization:
|
||||||
# turned off for producing unusable debug symbols.
|
# turn off if you get unusable debug symbols.
|
||||||
lto = false
|
lto = true
|
||||||
opt-level = 'z' # Optimize for size.
|
opt-level = 'z' # Optimize for size.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg(feature = "target_zc706")]
|
||||||
|
|
||||||
use libboard_zynq::println;
|
use libboard_zynq::println;
|
||||||
|
|
||||||
mod zc706;
|
mod zc706;
|
||||||
|
@ -5,8 +7,8 @@ mod zc706;
|
||||||
|
|
||||||
#[cfg(feature = "target_zc706")]
|
#[cfg(feature = "target_zc706")]
|
||||||
use zc706 as target;
|
use zc706 as target;
|
||||||
#[cfg(feature = "target_cora_z7_10")]
|
// #[cfg(feature = "target_cora_z7_10")]
|
||||||
use cora_z7_10 as target;
|
// use cora_z7_10 as target;
|
||||||
|
|
||||||
pub fn report_differences() {
|
pub fn report_differences() {
|
||||||
for (i, op) in target::INIT_DATA.iter().enumerate() {
|
for (i, op) in target::INIT_DATA.iter().enumerate() {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use volatile_register::{RO, WO, RW};
|
|
||||||
|
|
||||||
use libregister::{
|
use libregister::{
|
||||||
register, register_at,
|
register, register_at,
|
||||||
register_bit, register_bits, register_bits_typed,
|
register_bit, register_bits, register_bits_typed,
|
||||||
|
|
|
@ -328,7 +328,7 @@ impl Flash<()> {
|
||||||
.mode_bits(0xFF)
|
.mode_bits(0xFF)
|
||||||
// 2 devices
|
// 2 devices
|
||||||
.two_mem(true)
|
.two_mem(true)
|
||||||
.u_page(false)
|
.u_page(chip_index != 0)
|
||||||
// Quad SPI mode
|
// Quad SPI mode
|
||||||
.lq_mode(false)
|
.lq_mode(false)
|
||||||
);
|
);
|
||||||
|
|
|
@ -142,7 +142,7 @@ impl<S: AsMut<[u32]>> Core1<S> {
|
||||||
// Ensure stack pointer has been written to cache
|
// Ensure stack pointer has been written to cache
|
||||||
asm::dmb();
|
asm::dmb();
|
||||||
// Flush cache-line
|
// Flush cache-line
|
||||||
cache::dccmvac(unsafe { &CORE1_STACK } as *const _ as u32);
|
cache::dccmvac(unsafe { &CORE1_STACK } as *const _ as usize);
|
||||||
|
|
||||||
// wake up core1
|
// wake up core1
|
||||||
slcr::RegisterBlock::unlocked(|slcr| {
|
slcr::RegisterBlock::unlocked(|slcr| {
|
||||||
|
|
Loading…
Reference in New Issue