SpacemiT K3 free DDR PMU firmware

Contents

  • Hardware
    • System architecture
      • Who does what
      • Full training vs. quickboot
      • Reference board
    • Addressing and access rules
      • Conversions
      • Windows
      • Access widths
      • Host access after a PMU run
    • DDRC, DPLL and host ports
    • PMU processor (ARCv2 EM)
      • Reset vector
      • Build configuration registers
      • IMEM as data
    • Message block
      • Inputs used by the firmware
      • Outputs written by the firmware
      • What the SPL writes there
    • Mailbox and streaming
    • PHY CSR map
      • Discovered by experiment
      • Range scans
      • Individual registers
    • PHY clock modes and DLL recalibration
      • Clock selection
      • ACSM clock multiplier
      • DLL recalibration (quickboot step 6)
      • Commit strobes
    • ACSM command sequencer
      • SRAM and control registers
      • Routing
      • Entry formats
      • Training burst at entry 200
    • DQ data path: group 0x01 registers, address map, eye
      • Index fields of group 0x01
      • Even/odd register pairs
      • Read eye measured from the host
      • Compare-result block 0xb0–0xbf
      • Address map of the 16 GiB
      • Failure signatures
    • Training results and persistence
      • Reference envelopes
      • Using a saved result
    • Quickboot hardware sequence
      • The saved result
      • Order that works
      • What each deviation caused
    • Board access (bench setup)
  • U-Boot SPL
    • Role of the SPL in this project
      • What the host tables write
    • Integration of the free firmware
      • Kconfig (drivers/ddr/spacemit/k3/Kconfig)
      • Code changes
    • Host mailbox receiver
    • Host-assisted quickboot and experiment hooks
      • Flow with K3_DDR_REF_QUICKBOOT
      • Memory test
      • Never saving the fixture
      • Hooks
      • Fragments
    • Build and stage
  • Firmware
    • Build and toolchain
    • Memory layout
    • Runtime
    • Mailbox (PMU side)
      • Our major progress codes
    • Streaming IDs
    • Experiment firmwares
      • Rules for experiment firmwares
    • DevInit (SequenceCtrl[0])
      • Sequence (docsClean 8aa6257)
      • Period calibration
      • ACSM
      • Step 3.6
      • Quickboot path
    • Training engine
      • Real data
    • Training stages
      • RdDQS (SequenceCtrl[3]): transfer-and-compare probe
    • Quickboot
      • Design
      • Firmware path
      • Second start
      • History
    • Verification and clean-room record
      • Automatic checks
      • Tools
      • Hardware checks
      • Clean-room record
SpacemiT K3 free DDR PMU firmware
  • Hardware
Previous Next

Hardware

Hardware of the SpacemiT K3 DDR subsystem as needed by the PMU firmware. These pages restate and extend docsClean/ (CC-BY-SA-4.0, hence the license of this part) with the results of our own experiments.

  • System architecture
  • Addressing and access rules
  • DDRC, DPLL and host ports
  • PMU processor (ARCv2 EM)
  • Message block
  • Mailbox and streaming
  • PHY CSR map
  • PHY clock modes and DLL recalibration
  • ACSM command sequencer
  • DQ data path: group 0x01 registers, address map, eye
  • Training results and persistence
  • Quickboot hardware sequence
  • Board access (bench setup)
Previous Next

© Copyright 2026, Thalles Campagnani.

Built with Sphinx using a theme provided by Read the Docs.