Skip to content
Snippets Groups Projects
  1. Oct 09, 2024
    • Venkatesh Yadav Abbarapu's avatar
      mtd: spi-nor: Add parallel and stacked memories support · 5d40b3d3
      Venkatesh Yadav Abbarapu authored
      
      In parallel mode, the current implementation assumes that a maximum of
      two flashes are connected. The QSPI controller splits the data evenly
      between both the flashes so, both the flashes that are connected in
      parallel mode should be identical.
      During each operation SPI-NOR sets 0th bit for CS0 & 1st bit for CS1 in
      nor->flags.
      
      In stacked mode the current implementation assumes that a maximum of two
      flashes are connected and both the flashes are of same make but can
      differ in sizes. So, except the sizes all other flash parameters of both
      the flashes are identical
      
      Spi-nor will pass on the appropriate flash select flag to low level
      driver, and it will select pass all the data to that particular flash.
      
      Write operation in parallel mode are performed in page size * 2 chunks as
      each write operation results in writing both the flashes. For doubling
      the address space each operation is performed at addr/2 flash offset,
      where addr is the address specified by the user.
      
      Similarly for read and erase operations it will read from both flashes,
      so size and offset are divided by 2 and send to flash.
      
      Adding the config option SPI_ADVANCE for non SPL code.
      
      Signed-off-by: default avatarAshok Reddy Soma <ashok.reddy.soma@amd.com>
      Signed-off-by: default avatarVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
      5d40b3d3
    • Venkatesh Yadav Abbarapu's avatar
      config: mx6sabresd: Default don't enable the flash lock · 8a64a88a
      Venkatesh Yadav Abbarapu authored
      
      By default flash lock option is enabled, enable this option only
      when it is required. By disabling the lock config will save some
      amount of memory.
      
      Signed-off-by: default avatarVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
      8a64a88a
  2. Sep 20, 2024
  3. Sep 19, 2024
  4. Sep 18, 2024
    • Tom Rini's avatar
      Merge patch series "Fix various bugs" · c17805e1
      Tom Rini authored
      Simon Glass <sjg@chromium.org> says:
      
      This series includes the patches needed to make make the EFI 'boot' test
      work. That test has now been split off into a separate series along with
      the EFI patches.
      
      This series fixes these problems:
      - sandbox memory-mapping conflict with PCI
      - the fix for that causes the mbr test to crash as it sets up pointers
        instead of addresses for its 'mmc' commands
      - the mmc and read commands which cast addresses to pointers
      - a tricky bug to do with USB keyboard and stdio
      - a few other minor things
      c17805e1
    • Simon Glass's avatar
      test: mbr: Drop a duplicate test · 017b441b
      Simon Glass authored
      
      The test currently runs twice as it is declared twice. Unwind this.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      017b441b
    • Simon Glass's avatar
      test: mbr: Use RAM for the buffers · 6cfc777b
      Simon Glass authored
      
      The normal approach with sandbox is to use a fixed memory address in the
      RAM, to avoid needing to create a map for transient local variables.
      
      Update this test to use this approach.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      6cfc777b
    • Simon Glass's avatar
      test: mbr: Use a constant for the block size · e9d89959
      Simon Glass authored
      
      It isn't that important to factor out constants in tests, but in this
      case we have 0x200 and 512 used. The commands don't use the constant
      as they use a block count ('1'). It doesn't create more code to use a
      constant, so create one.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      e9d89959
Loading