From: Stefan Roese Date: Tue, 23 Sep 2014 16:08:32 +0200 Subject: [U-Boot] [WIP PATCH 4/4 v2] arm: socfpga: Don't enable dcache (because of cadence SPI driver problem) In-Reply-To: <1411481312-9929-1-git-send-email-sr@denx.de> References: <1411481312-9929-1-git-send-email-sr@denx.de> Message-ID: <1411481312-9929-5-git-send-email-sr@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 The Cadence SPI driver currently has some problems when the dcache is enabled. As a work-around until this problem is fixed in the SPI driver, lets not enable the dcache on the socfpga platforms. As its also done in the rocketboards version. Signed-off-by: Stefan Roese Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Cc: Pavel Machek Cc: Michael Trimarchi --- board/altera/socfpga/socfpga_cyclone5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c index 10f15e0..3f19d89 100644 --- a/board/altera/socfpga/socfpga_cyclone5.c +++ b/board/altera/socfpga/socfpga_cyclone5.c @@ -76,7 +76,9 @@ int board_phy_config(struct phy_device *phydev) int board_init(void) { icache_enable(); +#if 0 // test-only: disable dcache for now as it causes problems with the SPI driver dcache_enable(); +#endif /* Address of boot parameters for ATAG (if ATAG is used) */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; -- 2.1.0