kasli_soc: add SFP0..3 LED indication #237
No reviewers
Labels
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#237
Loading…
Reference in New Issue
No description provided.
Delete Branch "den512/artiq-zynq:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
io_expander preserves his state between calls.
kasli_soc has additional module for SFP channels state indication.
async task added for LEDs control.
@ -23,1 +33,4 @@
pub fn new(i2c: &'a mut i2c::I2c, index: u8) -> Result<Self, &'static str> {
const VIRTUAL_LED_MAPPING0: [(u8, u8, u8); 2] = [(0, 0, 6), (1, 1, 6)];
#[cfg(not (all(soc_platform = "target_kasli_soc", hw_rev = "v1.1")))]
wrong
@ -149,6 +180,7 @@ pub fn main_core0() {
rtio_clocking::init(&mut timer, &cfg);
task::spawn(report_async_rtio_errors());
task::spawn(async_rtio_led());
You may not want to spawn this task e.g on zc706...
@ -102,6 +102,32 @@ async fn report_async_rtio_errors() {
}
}
static mut SEEN_RTIO_LED: u8 = 13;
13?
I forgot to fix it after debugging.
@ -24,0 +35,4 @@
#[cfg(hw_rev = "v1.0")]
const VIRTUAL_LED_MAPPING1: [(u8, u8, u8); 2] = [(2, 0, 6), (3, 1, 6)];
#[cfg(hw_rev = "v1.0.1")]
for all intents and purposes, 1.0.1 counts as 1.0 - we won't be keeping track of it in firmware or descriptions, can be removed
8a5d31d2ab
to300a231735
Would be great to also add it to satman, if possible - although the code in there is not
async
at all, so a part of the main loop, I think.Yes, generally follow what is already done on Kasli.
Will this PR close the #231? Please mention it in the description with
Closes #XXX
syntaxIt have not close yet.
There is not support in satman. I am working on it now.
@ -343,2 +356,4 @@
self.bootstrap.cd_bootstrap.clk, self.sys_crg.cd_sys.clk)
self.csr_devices.append("sys_crg")
self.submodules.virtual_leds = virtual_leds.VirtualLeds()
For what are they needed here and above?
This is register with rx channels status indication.
I removed this additional module.
@ -593,1 +593,4 @@
#[cfg(feature = "target_kasli_soc")]
fn sfp_leds_update() {
let virtual_leds;
Shouldn't the runtime code and satellite code be similar?
ef817a4a92
to8bba04b921
@ -103,6 +103,7 @@ fn init_drtio(timer: &mut GlobalTimer) {
panic!("SYS CLK did not switch");
}
unsafe {
pl::csr::drtio_transceiver::stable_clkin_write(1); //renable input clock buffer after reset of sys clock domain
not a part of SFP LEDs - please make a new PR for this
I think in this PR should be a link to that PR with its relation - depends, related etc.
adff99a6ef
toccfe15ee8d
ccfe15ee8d
toc6acc499b1
c6acc499b1
to8bba04b921
Pull request closed