From: Wolfgang Denk Date: Mon, 11 Apr 2011 22:30:03 +0200 Subject: [U-Boot] [PATCH 2/2] ftide020: add faraday ide ahb controller from Linux kernel In-Reply-To: <1295873267-32570-2-git-send-email-macpaul@andestech.com> References: <1295873267-32570-1-git-send-email-macpaul@andestech.com> <1295873267-32570-2-git-send-email-macpaul@andestech.com> Message-ID: <20110411203003.44277151F83@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 <1295873267-32570-2-git-send-email-macpaul@andestech.com> you wrote: > Faraday's ftide020_s is an IDE-AHB controller for SoC design. > This patch ported the u-boot driver (PIO) of ftide020 ATA (IDE) driver > from Linux kernel. IDE commands include read, info, and other functions > has been implemented. When copying code from Linux, you must give exact reference from which file and which exact version (commit ID) the code was taken rom; please see bullet # 4 at http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign ... > +extern ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS]; See before - please move to header file. ... > + tcyc = (u8) (((UDMA_ACCESS_TIMING[UDMA_TCYC][mode] * sysclk) + 9990) / 10000); > + tcvs = (u8) (((UDMA_ACCESS_TIMING[UDMA_TCVS][mode] * sysclk) + 9990) / 10000); > + tmli = (u8) (((UDMA_ACCESS_TIMING[UDMA_TMLI][mode] * sysclk) + 9990) / 10000); > + tenv = (u8) (((UDMA_ACCESS_TIMING[UDMA_TENV][mode] * sysclk) + 9990) / 10000); > + trp = (u8) (((UDMA_ACCESS_TIMING[UDMA_TRP][mode] * sysclk) + 9990) / 10000); > + tack = (u8) (((UDMA_ACCESS_TIMING[UDMA_TACK][mode] * sysclk) + 9990) / 10000); Lines too long, please fix globally. ... > +/* set device: (CF4) */ > +#define IDE_SET_OPCODE (0x2740 << 2) /* [15:2], 0x9d00 */ please, no space before tabs. Please fix globally. 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@denx.de When all is said and done, more is said than done.