Blackfin: add ICPLB coverage for async banks

Previous thread: Blackfin: use KERN_ALERT in all kgdb_test output by Linux Kernel Mailing List on Thursday, September 17, 2009 - 10:01 am. (1 message)

Next thread: Blackfin: increase default async timings for parallel flashes by Linux Kernel Mailing List on Thursday, September 17, 2009 - 10:01 am. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, September 17, 2009 - 10:01 am

Gitweb:     http://git.kernel.org/linus/4663f6ef251766cc9f7ab21af35661d8a736bef2
Commit:     4663f6ef251766cc9f7ab21af35661d8a736bef2
Parent:     4a3e53c1c4dd44b9d0fa1537c1294eb72229bfce
Author:     Bernd Schmidt <bernds_cb1@t-online.de>
AuthorDate: Wed Sep 2 08:14:05 2009 +0000
Committer:  Mike Frysinger <vapier@gentoo.org>
CommitDate: Wed Sep 16 22:10:42 2009 -0400

    Blackfin: add ICPLB coverage for async banks
    
    When doing XIP, we need to execute out of the async banks, so we need
    ICPLBs to allow this.
    
    Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/blackfin/kernel/cplb-nompu/cplbinit.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
index 685f160..5d8ad50 100644
--- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c
+++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
@@ -36,7 +36,7 @@ int first_switched_icplb PDT_ATTR;
 int first_switched_dcplb PDT_ATTR;
 
 struct cplb_boundary dcplb_bounds[9] PDT_ATTR;
-struct cplb_boundary icplb_bounds[7] PDT_ATTR;
+struct cplb_boundary icplb_bounds[9] PDT_ATTR;
 
 int icplb_nr_bounds PDT_ATTR;
 int dcplb_nr_bounds PDT_ATTR;
@@ -167,14 +167,21 @@ void __init generate_cplb_tables_all(void)
 		icplb_bounds[i_i++].data = (reserved_mem_icache_on ?
 					    SDRAM_IGENERIC : SDRAM_INON_CHBL);
 	}
+	/* Addressing hole up to the async bank.  */
+	icplb_bounds[i_i].eaddr = ASYNC_BANK0_BASE;
+	icplb_bounds[i_i++].data = 0;
+	/* ASYNC banks.  */
+	icplb_bounds[i_i].eaddr = ASYNC_BANK3_BASE + ASYNC_BANK3_SIZE;
+	icplb_bounds[i_i++].data = SDRAM_EBIU;
 	/* Addressing hole up to BootROM.  */
 	icplb_bounds[i_i].eaddr = BOOT_ROM_START;
 	icplb_bounds[i_i++].data = 0;
 	/* BootROM -- largest one should be less than 1 meg.  */
 	icplb_bounds[i_i].eaddr = BOOT_ROM_START + (1 * 1024 * 1024);
 	icplb_bounds[i_i++].data = ...
Previous thread: Blackfin: use KERN_ALERT in all kgdb_test output by Linux Kernel Mailing List on Thursday, September 17, 2009 - 10:01 am. (1 message)

Next thread: Blackfin: increase default async timings for parallel flashes by Linux Kernel Mailing List on Thursday, September 17, 2009 - 10:01 am. (1 message)