From: Wolfgang Denk Date: Thu, 12 May 2011 23:41:56 +0200 Subject: [U-Boot] [PATCH v3] ftide020: add faraday ide ahb controller In-Reply-To: <1304321336-16693-1-git-send-email-macpaul@andestech.com> References: <1302590733-23912-2-git-send-email-macpaul@andestech.com> <1304321336-16693-1-git-send-email-macpaul@andestech.com> Message-ID: <20110512214156.3F138D6F24F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Philosophy: A route of many roads leading from nowhere to nothing. - Ambrose Bierce