Skip to content

Fix MIPS/Malta target and its IDE work

Reinoud Zandijk u-boot 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v10 of 2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Re-embed the FDTs for the Malta targets.configs/malta64_defconfig configs/malta64el_defconfig configs/malta_defconfig +1 more+4 -02 replies
1/2Re-embed the FDTs for the Malta targets.+0 -01 reply
2/2Fix IDE commands issued, fix endian issues, fix non MMIOdrivers/block/ide.c include/ata.h+44 -1071 reply
2/2Fix IDE commands issued, fix endian issues, fix non MMIO+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix MIPS/Malta target and its IDE work

Patch 0001 re-enables FDT inclusion into the u-boot binary to make them boot again. The code might not have adjusted well enough in the past to handle the separate one. It could also be a toolchain dependency.

Patch 0002 fixes IDE issues found on the Malta board:

1) DMA implied commands were sent to the controller in stead of the PIO variants. The rest of the code is DMA free and written for PIO operation.

2) direct pointer access was used to read and write the registers instead of the inb/inw/outb/outw functions/macros. Registers don't have to be memory mapped and ATA_CURR_BASE() does not have to return an offset from address zero.

3) Endian isues in ide_ident() and reading/writing data in general. Names were corrupted and sizes misreported.

With the fixes, malta_defconfig and maltael_defconfig work again in Qemu.

Reinoud Zandijk (2):
Re-embed the FDTs for the Malta targets.
Fix IDE commands issued, fix endian issues, fix non MMIO

 configs/malta64_defconfig   |   1 +
 configs/malta64el_defconfig |   1 +
 configs/malta_defconfig     |   1 +
 configs/maltael_defconfig   |   1 +
 drivers/block/ide.c         | 149 +++++++++++-------------------------
 include/ata.h               |   2 +-
 6 files changed, 48 insertions(+), 107 deletions(-)
Signature · 1 line
2.29.2