forked from M-Labs/zynq-rs
libboard_zynq: remove ddr-only ps7_init for redpitaya
This commit is contained in:
parent
990fa56d6a
commit
55f8d02da8
@ -143,8 +143,6 @@ pub fn main_core0() {
|
||||
let timer = libboard_zynq::timer::GlobalTimer::start();
|
||||
|
||||
let mut ddr = zynq::ddr::DdrRam::ddrram();
|
||||
// ddr init may call ps7_init, reconfiguring the uart
|
||||
libboard_zynq::stdio::drop_uart();
|
||||
#[cfg(not(feature = "target_zc706"))]
|
||||
ddr.memtest();
|
||||
ram::init_alloc_ddr(&mut ddr);
|
||||
|
@ -3,16 +3,12 @@ use crate::println;
|
||||
|
||||
#[cfg(feature = "target_zc706")]
|
||||
mod zc706;
|
||||
#[cfg(feature = "target_redpitaya")]
|
||||
mod redpitaya;
|
||||
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya")))]
|
||||
#[cfg(not(feature = "target_zc706"))]
|
||||
mod none;
|
||||
|
||||
#[cfg(feature = "target_zc706")]
|
||||
use zc706 as target;
|
||||
#[cfg(feature = "target_redpitaya")]
|
||||
use redpitaya as target;
|
||||
#[cfg(not(any(feature = "target_zc706", feature = "target_redpitaya")))]
|
||||
#[cfg(not(feature = "target_zc706"))]
|
||||
use none as target;
|
||||
|
||||
pub fn report_differences() {
|
||||
|
@ -1,106 +0,0 @@
|
||||
use super::InitOp::{self, *};
|
||||
|
||||
pub const INIT_DATA: &'static [InitOp] = &[
|
||||
MaskWrite(0xF8000008, 0xFFFFFFFF, 0x0000DF0D),
|
||||
MaskWrite(0xF8000124, 0xFFF00003 ,0x0C200003),
|
||||
MaskWrite(0xF8000B40, 0x00000FFF, 0x00000600),
|
||||
MaskWrite(0xF8000B44, 0x00000FFF, 0x00000600),
|
||||
MaskWrite(0xF8000B48, 0x00000FFF, 0x00000672),
|
||||
MaskWrite(0xF8000B4C, 0x00000FFF, 0x00000800),
|
||||
MaskWrite(0xF8000B50, 0x00000FFF, 0x00000674),
|
||||
MaskWrite(0xF8000B54, 0x00000FFF, 0x00000800),
|
||||
MaskWrite(0xF8000B58, 0x00000FFF, 0x00000600),
|
||||
MaskWrite(0xF8000B5C, 0xFFFFFFFF, 0x0018C61C),
|
||||
MaskWrite(0xF8000B60, 0xFFFFFFFF, 0x00F9861C),
|
||||
MaskWrite(0xF8000B64, 0xFFFFFFFF, 0x00F9861C),
|
||||
MaskWrite(0xF8000B68, 0xFFFFFFFF, 0x00F9861C),
|
||||
MaskWrite(0xF8000B6C, 0x00007FFF, 0x00000220),
|
||||
MaskWrite(0xF8000B70, 0x00000001, 0x00000001),
|
||||
MaskWrite(0xF8000B70, 0x00000021, 0x00000020),
|
||||
MaskWrite(0xF8000B70, 0x07FEFFFF, 0x00000823),
|
||||
MaskWrite(0xF8000700, 0x00003FFF, 0x00001600),
|
||||
MaskWrite(0xF8000704, 0x00003FFF, 0x00001602),
|
||||
MaskWrite(0xF8000004, 0xFFFFFFFF, 0x0000767B),
|
||||
MaskWrite(0xF8006000, 0x0001FFFF, 0x00000084),
|
||||
MaskWrite(0xF8006004, 0x0007FFFF, 0x00001081),
|
||||
MaskWrite(0xF8006008, 0x03FFFFFF, 0x03C0780F),
|
||||
MaskWrite(0xF800600C, 0x03FFFFFF, 0x02001001),
|
||||
MaskWrite(0xF8006010, 0x03FFFFFF, 0x00014001),
|
||||
MaskWrite(0xF8006014, 0x001FFFFF, 0x0004281B),
|
||||
MaskWrite(0xF8006018, 0xF7FFFFFF, 0x44E458D2),
|
||||
MaskWrite(0xF800601C, 0xFFFFFFFF, 0x720238E5),
|
||||
MaskWrite(0xF8006020, 0x7FDFFFFC, 0x270872D0),
|
||||
MaskWrite(0xF8006024, 0x0FFFFFC3, 0x00000000),
|
||||
MaskWrite(0xF8006028, 0x00003FFF, 0x00002007),
|
||||
MaskWrite(0xF800602C, 0xFFFFFFFF, 0x00000008),
|
||||
MaskWrite(0xF8006030, 0xFFFFFFFF, 0x00040930),
|
||||
MaskWrite(0xF8006034, 0x13FF3FFF, 0x000116D4),
|
||||
MaskWrite(0xF8006038, 0x00000003, 0x00000000),
|
||||
MaskWrite(0xF800603C, 0x000FFFFF, 0x00000666),
|
||||
MaskWrite(0xF8006040, 0xFFFFFFFF, 0xFFFF0000),
|
||||
MaskWrite(0xF8006044, 0x0FFFFFFF, 0x0F555555),
|
||||
MaskWrite(0xF8006048, 0x0003F03F, 0x0003C008),
|
||||
MaskWrite(0xF8006050, 0xFF0F8FFF, 0x77010800),
|
||||
MaskWrite(0xF8006058, 0x00010000, 0x00000000),
|
||||
MaskWrite(0xF800605C, 0x0000FFFF, 0x00005003),
|
||||
MaskWrite(0xF8006060, 0x000017FF, 0x0000003E),
|
||||
MaskWrite(0xF8006064, 0x00021FE0, 0x00020000),
|
||||
MaskWrite(0xF8006068, 0x03FFFFFF, 0x00284141),
|
||||
MaskWrite(0xF800606C, 0x0000FFFF, 0x00001610),
|
||||
MaskWrite(0xF8006078, 0x03FFFFFF, 0x00466111),
|
||||
MaskWrite(0xF800607C, 0x000FFFFF, 0x00032222),
|
||||
MaskWrite(0xF80060A4, 0xFFFFFFFF, 0x10200802),
|
||||
MaskWrite(0xF80060A8, 0x0FFFFFFF, 0x0690CB73),
|
||||
MaskWrite(0xF80060AC, 0x000001FF, 0x000001FE),
|
||||
MaskWrite(0xF80060B0, 0x1FFFFFFF, 0x1CFFFFFF),
|
||||
MaskWrite(0xF80060B4, 0x00000200, 0x00000200),
|
||||
MaskWrite(0xF80060B8, 0x01FFFFFF, 0x00200066),
|
||||
MaskWrite(0xF80060C4, 0x00000003, 0x00000000),
|
||||
MaskWrite(0xF80060C8, 0x000000FF, 0x00000000),
|
||||
MaskWrite(0xF80060DC, 0x00000001, 0x00000000),
|
||||
MaskWrite(0xF80060F0, 0x0000FFFF, 0x00000000),
|
||||
MaskWrite(0xF80060F4, 0x0000000F, 0x00000008),
|
||||
MaskWrite(0xF8006114, 0x000000FF, 0x00000000),
|
||||
MaskWrite(0xF8006118, 0x7FFFFFCF, 0x40000001),
|
||||
MaskWrite(0xF800611C, 0x7FFFFFCF, 0x40000001),
|
||||
MaskWrite(0xF8006120, 0x7FFFFFCF, 0x40000000),
|
||||
MaskWrite(0xF8006124, 0x7FFFFFCF, 0x40000000),
|
||||
MaskWrite(0xF800612C, 0x000FFFFF, 0x00029000),
|
||||
MaskWrite(0xF8006130, 0x000FFFFF, 0x00029000),
|
||||
MaskWrite(0xF8006134, 0x000FFFFF, 0x00029000),
|
||||
MaskWrite(0xF8006138, 0x000FFFFF, 0x00029000),
|
||||
MaskWrite(0xF8006140, 0x000FFFFF, 0x00000035),
|
||||
MaskWrite(0xF8006144, 0x000FFFFF, 0x00000035),
|
||||
MaskWrite(0xF8006148, 0x000FFFFF, 0x00000035),
|
||||
MaskWrite(0xF800614C, 0x000FFFFF, 0x00000035),
|
||||
MaskWrite(0xF8006154, 0x000FFFFF, 0x00000080),
|
||||
MaskWrite(0xF8006158, 0x000FFFFF, 0x00000080),
|
||||
MaskWrite(0xF800615C, 0x000FFFFF, 0x00000080),
|
||||
MaskWrite(0xF8006160, 0x000FFFFF, 0x00000080),
|
||||
MaskWrite(0xF8006168, 0x001FFFFF, 0x000000F9),
|
||||
MaskWrite(0xF800616C, 0x001FFFFF, 0x000000F9),
|
||||
MaskWrite(0xF8006170, 0x001FFFFF, 0x000000F9),
|
||||
MaskWrite(0xF8006174, 0x001FFFFF, 0x000000F9),
|
||||
MaskWrite(0xF800617C, 0x000FFFFF, 0x000000C0),
|
||||
MaskWrite(0xF8006180, 0x000FFFFF, 0x000000C0),
|
||||
MaskWrite(0xF8006184, 0x000FFFFF, 0x000000C0),
|
||||
MaskWrite(0xF8006188, 0x000FFFFF, 0x000000C0),
|
||||
MaskWrite(0xF8006190, 0x6FFFFEFE, 0x00040080),
|
||||
MaskWrite(0xF8006194, 0x000FFFFF, 0x0001FC82),
|
||||
MaskWrite(0xF8006204, 0xFFFFFFFF, 0x00000000),
|
||||
MaskWrite(0xF8006208, 0x000703FF, 0x000003FF),
|
||||
MaskWrite(0xF800620C, 0x000703FF, 0x000003FF),
|
||||
MaskWrite(0xF8006210, 0x000703FF, 0x000003FF),
|
||||
MaskWrite(0xF8006214, 0x000703FF, 0x000003FF),
|
||||
MaskWrite(0xF8006218, 0x000F03FF, 0x000003FF),
|
||||
MaskWrite(0xF800621C, 0x000F03FF, 0x000003FF),
|
||||
MaskWrite(0xF8006220, 0x000F03FF, 0x000003FF),
|
||||
MaskWrite(0xF8006224, 0x000F03FF, 0x000003FF),
|
||||
MaskWrite(0xF80062A8, 0x00000FF5, 0x00000000),
|
||||
MaskWrite(0xF80062AC, 0xFFFFFFFF, 0x00000000),
|
||||
MaskWrite(0xF80062B0, 0x003FFFFF, 0x00005125),
|
||||
MaskWrite(0xF80062B4, 0x0003FFFF, 0x000012A8),
|
||||
MaskPoll(0xF8000B74, 0x00002000),
|
||||
MaskWrite(0xF8006000, 0x0001FFFF, 0x00000085),
|
||||
MaskPoll(0xF8006054, 0x00000007),
|
||||
];
|
Loading…
Reference in New Issue
Block a user