From: Wolfgang Denk Date: Thu, 05 Feb 2009 22:18:12 +0100 Subject: [U-Boot] Flag -mno-cache-volatile to bypass the cache In-Reply-To: <51a313240902051201k1977196cu314e60a1cfcd0e11@mail.gmail.com> References: <51a313240902050730k4f03247etc73ac5579c1f7154@mail.gmail.com> <20090205184742.2C4ED8322908@gemini.denx.de> <51a313240902051201k1977196cu314e60a1cfcd0e11@mail.gmail.com> Message-ID: <20090205211812.6F9788322908@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 ivanchuklist ivanchu, In message <51a313240902051201k1977196cu314e60a1cfcd0e11@mail.gmail.com> you wrote: > > I see also in cpu/nios an implementation of the spi core, it uses volatiles > variables to access hardware, so it will not work. Nevertheless the > implementation is correct. I'm not a NIOS expert - but if it doesn't work, this should be fixed. Patches welcome. > I'm adding sd access by spi protocol to u-boot, so i created a new file > called mmc_spi.c in cpu/nios2. I faced many problems. I just want to have > access to the fat partition, then i wrote mmc_get_dev and mmc_read_block but > i need to initialize the card so i implemented mmc_init (which add mmc > command) and i don't want to write mmc_read/write/2info. Should i implement > those functions?. In the other hand, should i use spi_xfer() to do spi > transactions?. Sorry, I don't know any of this code, 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 "What terrible way to die." "There are no good ways." -- Sulu and Kirk, "That Which Survives", stardate unknown