kernel: add support for ESMT F25L32PA with upstream submission
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.10 / 101-bcma-add-some-more-core-names.patch
1 bcma: add some more core names
2
3 These cores were found on a BCM4708 (chipid 53010), this is a ARM SoC
4 with two Cortex A9 cores.
5
6 bcma: bus0: Found chip with id 0xCF12, rev 0x00 and package 0x02
7 bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
8 bcma: bus0: Core 1 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
9 bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
10 bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
11 bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
12 bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
13 bcma: bus0: Core 6 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
14 bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
15 bcma: bus0: Core 8 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
16 bcma: bus0: Core 9 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
17 bcma: bus0: Core 10 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
18 bcma: bus0: Core 11 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
19 bcma: bus0: Core 12 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
20 bcma: bus0: Core 13 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
21 bcma: bus0: Core 14 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
22 bcma: bus0: Core 15 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
23 bcma: bus0: Core 16 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
24
25 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
26 ---
27 drivers/bcma/scan.c | 12 ++++++++++++
28 include/linux/bcma/bcma.h | 12 ++++++++++++
29 2 files changed, 24 insertions(+)
30
31 --- a/drivers/bcma/scan.c
32 +++ b/drivers/bcma/scan.c
33 @@ -32,6 +32,18 @@ static const struct bcma_device_id_name
34 { BCMA_CORE_4706_CHIPCOMMON, "BCM4706 ChipCommon" },
35 { BCMA_CORE_4706_SOC_RAM, "BCM4706 SOC RAM" },
36 { BCMA_CORE_4706_MAC_GBIT, "BCM4706 GBit MAC" },
37 + { BCMA_CORE_PCIEG2, "PCIe Gen 2" },
38 + { BCMA_CORE_DMA, "DMA" },
39 + { BCMA_CORE_SDIO3, "SDIO3" },
40 + { BCMA_CORE_USB20, "USB 2.0" },
41 + { BCMA_CORE_USB30, "USB 3.0" },
42 + { BCMA_CORE_A9JTAG, "ARM Cortex A9 JTAG" },
43 + { BCMA_CORE_DDR23, "Denali DDR2/DDR3 memory controller" },
44 + { BCMA_CORE_ROM, "ROM" },
45 + { BCMA_CORE_NAND, "NAND flash controller" },
46 + { BCMA_CORE_QSPI, "SPI flash controller" },
47 + { BCMA_CORE_CHIPCOMMON_B, "Chipcommon B" },
48 + { BCMA_CORE_ARMCA9, "ARM Cortex A9 core (ihost)" },
49 { BCMA_CORE_AMEMC, "AMEMC (DDR)" },
50 { BCMA_CORE_ALTA, "ALTA (I2S)" },
51 { BCMA_CORE_INVALID, "Invalid" },
52 --- a/include/linux/bcma/bcma.h
53 +++ b/include/linux/bcma/bcma.h
54 @@ -72,7 +72,19 @@ struct bcma_host_ops {
55 /* Core-ID values. */
56 #define BCMA_CORE_OOB_ROUTER 0x367 /* Out of band */
57 #define BCMA_CORE_4706_CHIPCOMMON 0x500
58 +#define BCMA_CORE_PCIEG2 0x501
59 +#define BCMA_CORE_DMA 0x502
60 +#define BCMA_CORE_SDIO3 0x503
61 +#define BCMA_CORE_USB20 0x504
62 +#define BCMA_CORE_USB30 0x505
63 +#define BCMA_CORE_A9JTAG 0x506
64 +#define BCMA_CORE_DDR23 0x507
65 +#define BCMA_CORE_ROM 0x508
66 +#define BCMA_CORE_NAND 0x509
67 +#define BCMA_CORE_QSPI 0x50A
68 +#define BCMA_CORE_CHIPCOMMON_B 0x50B /* ChipcommonB core */
69 #define BCMA_CORE_4706_SOC_RAM 0x50E
70 +#define BCMA_CORE_ARMCA9 0x510
71 #define BCMA_CORE_4706_MAC_GBIT 0x52D
72 #define BCMA_CORE_AMEMC 0x52E /* DDR1/2 memory controller core */
73 #define BCMA_CORE_ALTA 0x534 /* I2S core */