Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opentitanlib] remove 3b mode init of SPI console #25492

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions sw/host/opentitanlib/src/console/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::collections::VecDeque;
use std::time::Duration;

use crate::io::console::ConsoleDevice;
use crate::io::eeprom::AddressMode;
use crate::io::spi::Target;
use crate::spiflash::flash::SpiFlash;

Expand All @@ -30,10 +29,9 @@ impl<'a> SpiConsoleDevice<'a> {
const SPI_BOOT_MAGIC_PATTERN: u32 = 0xcafeb002;

pub fn new(spi: &'a dyn Target) -> Result<Self> {
let mut flash = SpiFlash {
let flash = SpiFlash {
..Default::default()
};
flash.set_address_mode(spi, AddressMode::Mode3b)?;
Ok(Self {
spi,
flash,
Expand Down
Loading