From: Wolfgang Denk Date: Sat, 25 Sep 2004 15:40:39 +0200 Subject: [U-Boot-Users] CF Access in 8540 In-Reply-To: Your message of "Sat, 25 Sep 2004 18:42:21 +0530." <200409251842.21281.v.sudhakar@gdatech.co.in> Message-ID: <20040925134044.3CC22C108D@atlas.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 In message <200409251842.21281.v.sudhakar@gdatech.co.in> you wrote: > > In Uboot ,I saw that the offset for CFG_ATA_DATA is defined as follows. You are wrong. There is no such definition in the whole U-Boot code. > Can anyone explain thsi whay we need to specify the offset as this..or we have > to specify in different manner. > > /* Offset for data I/O */ > #define CFG_ATA_DATA_OFFSET (CFG_PCMCIA_MEM_SIZE+320) > /* Offset for normal register accesses */ > #define CFG_ATA_REG_OFFSET (2*CFG_PCMCIA_MEM_SIZE*320) These definitions are obvuiously wrong and connot work. I don;t know where you got them from, but this is not part of the U-Boot code. As for your question: try to figure out how address decoding for the IDE controller register works. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Ever try. Ever fail. No matter. Try again. Fail again. Fail better. -- S. Beckett