
Dear Macpaul Lin,
In message 1304321336-16693-1-git-send-email-macpaul@andestech.com you wrote:
Faraday's ftide020_s is an IDE-AHB controller for SoC design. This patch add the u-boot driver (PIO) of ftide020 ATA (IDE) driver. IDE commands include read, info, and other functions has been implemented.
Because this IDE controller support AHB interface only which is differ from other most IDE controller supports PCI interface. Some registers access is required during CMD/DATA I/O. Hence a configuration "CONFIG_IDE_AHB" is required to be defined according to the feature in cmd_ide.c.
Signed-off-by: Macpaul Lin macpaul@andestech.com
Changes for v2:
- replace default PIO mode from 0 to 4.
- clean up lines exceed 80 charecters as could as possible.
- Since the Linux driver of ftide020 hasn't been send to kernel mailing list, we fixed the GPL statement in this driver.
- clean up space before tab problem.
Changes for v3:
- Clean up remaining lines over 80 characters in ftide020.h.
- Remove useless driver version define.
- Remove redundant TRUE/FALSE define.
- Replace P_DEBUG marco to debug().
drivers/block/Makefile | 1 + drivers/block/ftide020.c | 367 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/block/ftide020.h | 283 +++++++++++++++++++++++++++++++++++ 3 files changed, 651 insertions(+), 0 deletions(-) create mode 100644 drivers/block/ftide020.c create mode 100644 drivers/block/ftide020.h
Applied, thanks.
Best regards,
Wolfgang Denk