MIPS: BCM63xx: Define SPI register sizes.
authorFlorian Fainelli <florian@openwrt.org>
Wed, 4 Jul 2012 14:58:32 +0000 (16:58 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 23 Jul 2012 12:54:33 +0000 (13:54 +0100)
There are two distinct sizes for the SPI register depending on the SoC
generation (6338 & 6348 vs 6358 & 6368).

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3314/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h

index 016dc9ed58b805080377f139d47c81d5ab2c8233..4c1e14794ec64337106606934ea07878276f0a33 100644 (file)
@@ -135,6 +135,10 @@ enum bcm63xx_regs_set {
 #define RSET_DSL_LMEM_SIZE             (64 * 1024 * 4)
 #define RSET_DSL_SIZE                  4096
 #define RSET_WDT_SIZE                  12
+#define BCM_6338_RSET_SPI_SIZE         64
+#define BCM_6348_RSET_SPI_SIZE         64
+#define BCM_6358_RSET_SPI_SIZE         1804
+#define BCM_6368_RSET_SPI_SIZE         1804
 #define RSET_ENET_SIZE                 2048
 #define RSET_ENETDMA_SIZE              2048
 #define RSET_ENETSW_SIZE               65536