From e80a3dadfb4843575056cc79c4013625bb15cfd3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 8 Oct 2025 02:56:26 +0800 Subject: [PATCH] cleanup some testing code that should have been eliminated from boot 1 also remove an unused dependency --- bao1x-boot/boot1/Cargo.toml | 1 - bao1x-boot/boot1/src/platform/bao1x/usb/driver.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/bao1x-boot/boot1/Cargo.toml b/bao1x-boot/boot1/Cargo.toml index ed9a1f58d..80106ec73 100644 --- a/bao1x-boot/boot1/Cargo.toml +++ b/bao1x-boot/boot1/Cargo.toml @@ -13,7 +13,6 @@ bao1x-api = { path = "../../libs/bao1x-api", optional = true, default-features = vexriscv = { version = "0.5.6", package = "xous-riscv" } riscv = { version = "0.14.0", features = ["critical-section-single-hart"] } linked_list_allocator = { version = "0.10.5", optional = true } -xous-bio-bdma = { path = "../../libs/xous-bio-bdma", optional = true, default-features = false } critical-section = "1.2.0" ux-api = { path = "../../libs/ux-api", optional = true, default-features = false } simple-fatfs = { git = "https://github.com/betrusted-io/simple-fatfs.git", branch = "baosec", default-features = false } diff --git a/bao1x-boot/boot1/src/platform/bao1x/usb/driver.rs b/bao1x-boot/boot1/src/platform/bao1x/usb/driver.rs index 2c6db2569..ce15be7fc 100644 --- a/bao1x-boot/boot1/src/platform/bao1x/usb/driver.rs +++ b/bao1x-boot/boot1/src/platform/bao1x/usb/driver.rs @@ -32,10 +32,6 @@ pub unsafe fn init_usb() { // setup the stack & controller // irq_setup(); // this is already assumed to have been called by early_init()! enable_irq(utralib::utra::irqarray1::IRQARRAY1_IRQ); - // for testing - enable_irq(utralib::utra::irqarray19::IRQARRAY19_IRQ); - let mut irqarray19 = utralib::CSR::new(utralib::utra::irqarray19::HW_IRQARRAY19_BASE as *mut u32); - irqarray19.wo(utralib::utra::irqarray19::EV_ENABLE, 0x80); unsafe { USB = Some(usb);