BTW, you could save on using ide_dma_host_set() in LE mode if you'd
set hwif->dma_base properly...

Yes. I like endian-free approach in general, but there is already
some ifdefs in this driver. I have no strong opinion here.

Unfortunately, the way SFF-8038i registers were implemented in TX4939
necessiates BE specific #ifdef'ery. Or at least the run-time endianness
detection and passing the right struct *_ops to the IDE core -- but that would
burden the driver with unused and/or unneeded code for the opposite endiannes.
It could've been somewhat easied by the use of hwif->dma_{command|status},
etc. but those were recently removed (then again, if the DMA engine is not
SFF-8038i compatible, those fields make little sense)...