bcm63xx: Add nb6 support (BCM6362 SoC base boards)
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 006-MIPS-BCM63XX-define-SPI-register-sizes.patch
1 From 16ba44545156e4e7cc1e812ad93e562ce92fd74c Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Wed, 25 Jan 2012 17:40:00 +0100
4 Subject: [PATCH 08/63] MIPS: BCM63XX: define SPI register sizes.
5
6 There are two distinct sizes for the SPI register depending on the SoC
7 generation (6338 & 6348 vs 6358 & 6368).
8
9 Signed-off-by: Florian Fainelli <florian@openwrt.org>
10 ---
11  arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h |    4 ++++
12  1 files changed, 4 insertions(+), 0 deletions(-)
13
14 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
15 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
16 @@ -135,6 +135,10 @@ enum bcm63xx_regs_set {
17  #define RSET_DSL_LMEM_SIZE             (64 * 1024 * 4)
18  #define RSET_DSL_SIZE                  4096
19  #define RSET_WDT_SIZE                  12
20 +#define BCM_6338_RSET_SPI_SIZE         64
21 +#define BCM_6348_RSET_SPI_SIZE         64
22 +#define BCM_6358_RSET_SPI_SIZE         1804
23 +#define BCM_6368_RSET_SPI_SIZE         1804
24  #define RSET_ENET_SIZE                 2048
25  #define RSET_ENETDMA_SIZE              2048
26  #define RSET_ENETSW_SIZE               65536