From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Tue, 13 Oct 2015 21:20:18 +0800 Subject: [U-Boot] [PATCH v2] nios2: set default cache configuration in start.S In-Reply-To: <1444392708-31971-1-git-send-email-thomas@wytron.com.tw> References: <1444119708-6934-1-git-send-email-thomas@wytron.com.tw> <1444392708-31971-1-git-send-email-thomas@wytron.com.tw> Message-ID: <561D0512.4070606@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/09/2015 08:11 PM, Thomas Chou wrote: > Set default icache and dcache configuration for start.S. > > We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... > configuration macros. As we are just barely starting from > reset, there is no luxury of device tree. > > We will set some maximum cache configuration so that it will > work for most configurations. This is used only in this > start.S. The speed penalty is only once here. > > After start up, during board initialization, cpu information > will be extracted from device tree. Then cache flush operations > will have correct cache configurations. > > Signed-off-by: Thomas Chou > --- > v2 > change commit message. > > arch/nios2/cpu/start.S | 22 +++++++++++++++------- > 1 file changed, 15 insertions(+), 7 deletions(-) > Applied to u-boot-nios.