Skip to contentSkip to conversation

bcma: define some additional cores IDs

PATCH In review Rafał Miłecki 2 participants 3 messages Jun 25, 2012 – Jun 26, 2012 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: define some additional cores IDs

Some of them are BCM4706 specific AFAWK. Most of them was confirmed on Netgear WNDR450.

---
 drivers/bcma/scan.c       |    6 ++++++
 include/linux/bcma/bcma.h |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
drivers/bcma/scan.c +6 -0
index 5ed0718..a342058 100644
@@ -28,6 +28,12 @@ static const struct bcma_device_id_name bcma_arm_device_names[] = {
 
 static const struct bcma_device_id_name bcma_bcm_device_names[] = {
 	{ BCMA_CORE_OOB_ROUTER, "OOB Router" },
+	{ BCMA_CORE_4706_CHIPCOMMON, "BCM4706 ChipCommon" },
+	{ BCMA_CORE_4706_SOC_RAM, "BCM4706 SOC RAM" },
+	{ BCMA_CORE_4706_MAC_GBIT, "BCM4706 GBit MAC" },
+	{ BCMA_CORE_AMEMC, "AMEMC (DDR)" },
+	{ BCMA_CORE_ALTA, "ALTA (I2S)" },
+	{ BCMA_CORE_4706_MAC_GBIT_COMMON, "BCM4706 GBit MAC Common" },
 	{ BCMA_CORE_INVALID, "Invalid" },
 	{ BCMA_CORE_CHIPCOMMON, "ChipCommon" },
 	{ BCMA_CORE_ILINE20, "ILine 20" },
include/linux/bcma/bcma.h +7 -0
index 8deaf6d..12334f9 100644
@@ -70,6 +70,13 @@ struct bcma_host_ops {
 
 /* Core-ID values. */
 #define BCMA_CORE_OOB_ROUTER		0x367	/* Out of band */
+#define BCMA_CORE_4706_CHIPCOMMON	0x500
+#define BCMA_CORE_4706_SOC_RAM		0x50E
+#define BCMA_CORE_4706_MAC_GBIT		0x52D
+#define BCMA_CORE_AMEMC			0x52E	/* DDR1/2 memory controller core */
+#define BCMA_CORE_ALTA			0x534	/* I2S core */
+#define BCMA_CORE_4706_MAC_GBIT_COMMON	0x5DC
+#define BCMA_CORE_DDR23_PHY		0x5DD
 #define BCMA_CORE_INVALID		0x700
 #define BCMA_CORE_CHIPCOMMON		0x800
 #define BCMA_CORE_ILINE20		0x801
Signature · 1 line
1.7.7
#1 lore raw

Hi Rafał,

Minor point:

Quoted 14 lines · Rafał Miłecki

Some of them are BCM4706 specific AFAWK. Most of them was confirmed on Netgear WNDR450.

---
 drivers/bcma/scan.c       |    6 ++++++
 include/linux/bcma/bcma.h |    7 +++++++

 2 files changed, 13 insertions(+), 0 deletions(-)
drivers/bcma/scan.c +0 -0
index 5ed0718..a342058 100644

drivers/bcma/scan.c struct bcma_host_ops { · line 79

Quoted 10 lines
drivers/bcma/scan.c +7 -0
@@ -70,6 +70,13 @@ struct bcma_host_ops {
 
  /* Core-ID values. */
  #define BCMA_CORE_OOB_ROUTER           0x367   /* Out of band */
+#define BCMA_CORE_4706_CHIPCOMMON      0x500
+#define BCMA_CORE_4706_SOC_RAM         0x50E
+#define BCMA_CORE_4706_MAC_GBIT                0x52D
+#define BCMA_CORE_AMEMC                        0x52E   /* DDR1/2 memory controller core */
+#define BCMA_CORE_ALTA                 0x534   /* I2S core */
+#define BCMA_CORE_4706_MAC_GBIT_COMMON 0x5DC
+#define BCMA_CORE_DDR23_PHY            0x5DD

You don't define a name for the DDR23_PHY core.

Thanks,

Signature · 5 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
author maintainer
#2 lore raw

2012/6/26 Julian Calaby <[email protected]>:

Quoted 20 lines

Hi Rafał,

Minor point:

Quoted 15 lines · Rafał Miłecki

Some of them are BCM4706 specific AFAWK. Most of them was confirmed on Netgear WNDR450.

---
 drivers/bcma/scan.c       |    6 ++++++
 include/linux/bcma/bcma.h |    7 +++++++

 2 files changed, 13 insertions(+), 0 deletions(-)
drivers/bcma/scan.c +0 -0
index 5ed0718..a342058 100644
@@ -70,6 +70,13 @@ struct bcma_host_ops {
 
Quoted 11 lines

drivers/bcma/scan.c struct bcma_host_ops { · line 79

Quoted 9 lines
drivers/bcma/scan.c +7 -0
  /* Core-ID values. */
  #define BCMA_CORE_OOB_ROUTER           0x367   /* Out of band */
+#define BCMA_CORE_4706_CHIPCOMMON      0x500
+#define BCMA_CORE_4706_SOC_RAM         0x50E
+#define BCMA_CORE_4706_MAC_GBIT                0x52D
+#define BCMA_CORE_AMEMC                        0x52E   /* DDR1/2 memory controller core */
+#define BCMA_CORE_ALTA                 0x534   /* I2S core */
+#define BCMA_CORE_4706_MAC_GBIT_COMMON 0x5DC
+#define BCMA_CORE_DDR23_PHY            0x5DD

You don't define a name for the DDR23_PHY core.

I'm not sure it this matches Broadcom manufacturer (we have 3 mapping tables for 3 manufacturers).

Did you maybe meet 0x5DD at some board? Do you know if it's manufacturer is BCM (0x4BF)?

Signature · 1 line
Rafał