linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Various new ibm405 DCRN #defines
@ 2008-01-21 22:43 Joshua Williams
  2008-01-21 22:57 ` Benjamin Herrenschmidt
  2008-01-22 19:25 ` Grant Likely
  0 siblings, 2 replies; 8+ messages in thread
From: Joshua Williams @ 2008-01-21 22:43 UTC (permalink / raw)
  To: linuxppc-dev

     Various new ibm405 DCRN #defines.

     Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
---
  arch/ppc/platforms/4xx/ibm405ep.h  |    3 +++
  arch/ppc/platforms/4xx/ibm405gp.h  |    9 +++++++++
  arch/ppc/platforms/4xx/ibm405gpr.h |    9 +++++++++
  include/asm-ppc/ibm405.h           |   27 +++++++++++++++++++++++++++
  4 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/platforms/4xx/ibm405ep.h 
b/arch/ppc/platforms/4xx/ibm405ep.h
index 3ef20a5..d82a4c7 100644
--- a/arch/ppc/platforms/4xx/ibm405ep.h
+++ b/arch/ppc/platforms/4xx/ibm405ep.h
@@ -139,6 +139,9 @@
  #define DCRN_UIC0_BASE          0x0C0
  #define UIC0 DCRN_UIC0_BASE

+/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
+#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
+
  #include <asm/ibm405.h>

  #endif				/* __ASM_IBM405EP_H__ */
diff --git a/arch/ppc/platforms/4xx/ibm405gp.h 
b/arch/ppc/platforms/4xx/ibm405gp.h
index 9f15e55..9f7e850 100644
--- a/arch/ppc/platforms/4xx/ibm405gp.h
+++ b/arch/ppc/platforms/4xx/ibm405gp.h
@@ -142,6 +142,15 @@
  #define DCRN_UIC0_BASE		0x0C0
  #define UIC0 DCRN_UIC0_BASE

+/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
+#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
+#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
+#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
+#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
+#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
+#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
+#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
+
  #include <asm/ibm405.h>

  #endif				/* __ASM_IBM405GP_H__ */
diff --git a/arch/ppc/platforms/4xx/ibm405gpr.h 
b/arch/ppc/platforms/4xx/ibm405gpr.h
index 9e01f15..6f39042 100644
--- a/arch/ppc/platforms/4xx/ibm405gpr.h
+++ b/arch/ppc/platforms/4xx/ibm405gpr.h
@@ -142,6 +142,15 @@
  #define DCRN_UIC0_BASE		0x0C0
  #define UIC0 DCRN_UIC0_BASE

+/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
+#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
+#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
+#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
+#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
+#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
+#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
+#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
+
  #include <asm/ibm405.h>

  #endif				/* __ASM_IBM405GPR_H__ */
diff --git a/include/asm-ppc/ibm405.h b/include/asm-ppc/ibm405.h
index 4e5be9e..04aaae6 100644
--- a/include/asm-ppc/ibm405.h
+++ b/include/asm-ppc/ibm405.h
@@ -135,6 +135,26 @@
  #ifdef DCRN_EBC_BASE
  #define DCRN_EBCCFGADR	(DCRN_EBC_BASE + 0x0)	/* Peripheral Controller 
Address */
  #define DCRN_EBCCFGDATA	(DCRN_EBC_BASE + 0x1)	/* Peripheral Controller 
Data */
+#define DCRN_EBC_PB0CR	0x00	/* Peripheral Bank 0 Config Reg */
+#define DCRN_EBC_PB1CR	0x01	/* Peripheral Bank 1 Config Reg */
+#define DCRN_EBC_PB2CR	0x02	/* Peripheral Bank 2 Config Reg */
+#define DCRN_EBC_PB3CR	0x03	/* Peripheral Bank 3 Config Reg */
+#define DCRN_EBC_PB4CR	0x04	/* Peripheral Bank 4 Config Reg */
+#define DCRN_EBC_PB5CR	0x05	/* Peripheral Bank 5 Config Reg */
+#define DCRN_EBC_PB6CR	0x06	/* Peripheral Bank 6 Config Reg */
+#define DCRN_EBC_PB7CR	0x07	/* Peripheral Bank 7 Config Reg */
+#define DCRN_EBC_PB0AP	0x10	/* Peripheral Bank 0 Access Parameters */
+#define DCRN_EBC_PB1AP	0x11	/* Peripheral Bank 1 Access parameters */
+#define DCRN_EBC_PB2AP	0x12	/* Peripheral Bank 2 Access Parameters */
+#define DCRN_EBC_PB3AP	0x13	/* Peripheral Bank 3 Access Parameters */
+#define DCRN_EBC_PB4AP	0x14	/* Peripheral Bank 4 Access Parameters */
+#define DCRN_EBC_PB5AP	0x15	/* Peripheral Bank 5 Access Parameters */
+#define DCRN_EBC_PB6AP	0x16	/* Peripheral Bank 6 Access Parameters */
+#define DCRN_EBC_PB7AP	0x17	/* Peripheral Bank 7 Access Parameters */
+#define DCRN_EBC_PBEAR	0x20	/* Peripheral Bus Error Address Reg */
+#define DCRN_EBC_PBESR0	0x21	/* Peripheral Bus Error Status Reg 0 */
+#define DCRN_EBC_PBESR1	0x22	/* Peripheral Bus Error Status Reg 1 */
+#define DCRN_EBC_EPCR	0x23	/* External Peripheral Control Reg */
  #endif

  #ifdef DCRN_EXIER_BASE
@@ -286,6 +306,13 @@
  #ifdef DCRN_SDRAM0_BASE
  #define DCRN_SDRAM0_CFGADDR	(DCRN_SDRAM0_BASE + 0x0)	/* Memory 
Controller Address */
  #define DCRN_SDRAM0_CFGDATA	(DCRN_SDRAM0_BASE + 0x1)	/* Memory 
Controller Data */
+#define DCRN_SDRAM0_CFG		0x20	/* SDRAM Configuration */
+#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
+#define DCRN_SDRAM0_RTR		0x30	/* Refresh Timer Reg */
+#define DCRN_SDRAM0_PMIT	0x34	/* Power Management Idle Timer */
+#define DCRN_SDRAM0_B0CR	0x40	/* Memory Bank 0 Configuration Reg */
+#define DCRN_SDRAM0_B1CR	0x44	/* Memory Bank 1 Configuration Reg */
+#define DCRN_SDRAM0_TR		0x80	/* SDRAM Timing Reg */
  #endif

  #ifdef DCRN_OCM0_BASE

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-21 22:43 [PATCH] Various new ibm405 DCRN #defines Joshua Williams
@ 2008-01-21 22:57 ` Benjamin Herrenschmidt
  2008-01-22 17:08   ` Joshua Williams
  2008-01-22 19:25 ` Grant Likely
  1 sibling, 1 reply; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2008-01-21 22:57 UTC (permalink / raw)
  To: Joshua Williams; +Cc: linuxppc-dev


On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
> Various new ibm405 DCRN #defines.
> 
>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>

May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
nothing we want to improve to much on at this stage unless there's a
really good reason.

Cheers,
Ben.

> ---
>   arch/ppc/platforms/4xx/ibm405ep.h  |    3 +++
>   arch/ppc/platforms/4xx/ibm405gp.h  |    9 +++++++++
>   arch/ppc/platforms/4xx/ibm405gpr.h |    9 +++++++++
>   include/asm-ppc/ibm405.h           |   27 +++++++++++++++++++++++++++
>   4 files changed, 48 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/ppc/platforms/4xx/ibm405ep.h 
> b/arch/ppc/platforms/4xx/ibm405ep.h
> index 3ef20a5..d82a4c7 100644
> --- a/arch/ppc/platforms/4xx/ibm405ep.h
> +++ b/arch/ppc/platforms/4xx/ibm405ep.h
> @@ -139,6 +139,9 @@
>   #define DCRN_UIC0_BASE          0x0C0
>   #define UIC0 DCRN_UIC0_BASE
> 
> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
> +#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
> +
>   #include <asm/ibm405.h>
> 
>   #endif				/* __ASM_IBM405EP_H__ */
> diff --git a/arch/ppc/platforms/4xx/ibm405gp.h 
> b/arch/ppc/platforms/4xx/ibm405gp.h
> index 9f15e55..9f7e850 100644
> --- a/arch/ppc/platforms/4xx/ibm405gp.h
> +++ b/arch/ppc/platforms/4xx/ibm405gp.h
> @@ -142,6 +142,15 @@
>   #define DCRN_UIC0_BASE		0x0C0
>   #define UIC0 DCRN_UIC0_BASE
> 
> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
> +#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
> +#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
> +#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
> +#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
> +#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
> +#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
> +#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
> +
>   #include <asm/ibm405.h>
> 
>   #endif				/* __ASM_IBM405GP_H__ */
> diff --git a/arch/ppc/platforms/4xx/ibm405gpr.h 
> b/arch/ppc/platforms/4xx/ibm405gpr.h
> index 9e01f15..6f39042 100644
> --- a/arch/ppc/platforms/4xx/ibm405gpr.h
> +++ b/arch/ppc/platforms/4xx/ibm405gpr.h
> @@ -142,6 +142,15 @@
>   #define DCRN_UIC0_BASE		0x0C0
>   #define UIC0 DCRN_UIC0_BASE
> 
> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
> +#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
> +#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
> +#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
> +#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
> +#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
> +#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
> +#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
> +
>   #include <asm/ibm405.h>
> 
>   #endif				/* __ASM_IBM405GPR_H__ */
> diff --git a/include/asm-ppc/ibm405.h b/include/asm-ppc/ibm405.h
> index 4e5be9e..04aaae6 100644
> --- a/include/asm-ppc/ibm405.h
> +++ b/include/asm-ppc/ibm405.h
> @@ -135,6 +135,26 @@
>   #ifdef DCRN_EBC_BASE
>   #define DCRN_EBCCFGADR	(DCRN_EBC_BASE + 0x0)	/* Peripheral Controller 
> Address */
>   #define DCRN_EBCCFGDATA	(DCRN_EBC_BASE + 0x1)	/* Peripheral Controller 
> Data */
> +#define DCRN_EBC_PB0CR	0x00	/* Peripheral Bank 0 Config Reg */
> +#define DCRN_EBC_PB1CR	0x01	/* Peripheral Bank 1 Config Reg */
> +#define DCRN_EBC_PB2CR	0x02	/* Peripheral Bank 2 Config Reg */
> +#define DCRN_EBC_PB3CR	0x03	/* Peripheral Bank 3 Config Reg */
> +#define DCRN_EBC_PB4CR	0x04	/* Peripheral Bank 4 Config Reg */
> +#define DCRN_EBC_PB5CR	0x05	/* Peripheral Bank 5 Config Reg */
> +#define DCRN_EBC_PB6CR	0x06	/* Peripheral Bank 6 Config Reg */
> +#define DCRN_EBC_PB7CR	0x07	/* Peripheral Bank 7 Config Reg */
> +#define DCRN_EBC_PB0AP	0x10	/* Peripheral Bank 0 Access Parameters */
> +#define DCRN_EBC_PB1AP	0x11	/* Peripheral Bank 1 Access parameters */
> +#define DCRN_EBC_PB2AP	0x12	/* Peripheral Bank 2 Access Parameters */
> +#define DCRN_EBC_PB3AP	0x13	/* Peripheral Bank 3 Access Parameters */
> +#define DCRN_EBC_PB4AP	0x14	/* Peripheral Bank 4 Access Parameters */
> +#define DCRN_EBC_PB5AP	0x15	/* Peripheral Bank 5 Access Parameters */
> +#define DCRN_EBC_PB6AP	0x16	/* Peripheral Bank 6 Access Parameters */
> +#define DCRN_EBC_PB7AP	0x17	/* Peripheral Bank 7 Access Parameters */
> +#define DCRN_EBC_PBEAR	0x20	/* Peripheral Bus Error Address Reg */
> +#define DCRN_EBC_PBESR0	0x21	/* Peripheral Bus Error Status Reg 0 */
> +#define DCRN_EBC_PBESR1	0x22	/* Peripheral Bus Error Status Reg 1 */
> +#define DCRN_EBC_EPCR	0x23	/* External Peripheral Control Reg */
>   #endif
> 
>   #ifdef DCRN_EXIER_BASE
> @@ -286,6 +306,13 @@
>   #ifdef DCRN_SDRAM0_BASE
>   #define DCRN_SDRAM0_CFGADDR	(DCRN_SDRAM0_BASE + 0x0)	/* Memory 
> Controller Address */
>   #define DCRN_SDRAM0_CFGDATA	(DCRN_SDRAM0_BASE + 0x1)	/* Memory 
> Controller Data */
> +#define DCRN_SDRAM0_CFG		0x20	/* SDRAM Configuration */
> +#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
> +#define DCRN_SDRAM0_RTR		0x30	/* Refresh Timer Reg */
> +#define DCRN_SDRAM0_PMIT	0x34	/* Power Management Idle Timer */
> +#define DCRN_SDRAM0_B0CR	0x40	/* Memory Bank 0 Configuration Reg */
> +#define DCRN_SDRAM0_B1CR	0x44	/* Memory Bank 1 Configuration Reg */
> +#define DCRN_SDRAM0_TR		0x80	/* SDRAM Timing Reg */
>   #endif
> 
>   #ifdef DCRN_OCM0_BASE
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-21 22:57 ` Benjamin Herrenschmidt
@ 2008-01-22 17:08   ` Joshua Williams
  2008-01-22 17:10     ` Josh Boyer
  0 siblings, 1 reply; 8+ messages in thread
From: Joshua Williams @ 2008-01-22 17:08 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

Benjamin Herrenschmidt wrote:
> On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
>> Various new ibm405 DCRN #defines.
>>
>>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
> 
> May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
> nothing we want to improve to much on at this stage unless there's a
> really good reason.

The 405x #defines were incomplete and this was meant to
make them a bit tighter.  Since arch/ppc is in life support
mode this can wait until the 405x stuff gets moved over to
arch/powerpc.

Thanks!

- Josh

>> ---
>>   arch/ppc/platforms/4xx/ibm405ep.h  |    3 +++
>>   arch/ppc/platforms/4xx/ibm405gp.h  |    9 +++++++++
>>   arch/ppc/platforms/4xx/ibm405gpr.h |    9 +++++++++
>>   include/asm-ppc/ibm405.h           |   27 +++++++++++++++++++++++++++
>>   4 files changed, 48 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/ppc/platforms/4xx/ibm405ep.h 
>> b/arch/ppc/platforms/4xx/ibm405ep.h
>> index 3ef20a5..d82a4c7 100644
>> --- a/arch/ppc/platforms/4xx/ibm405ep.h
>> +++ b/arch/ppc/platforms/4xx/ibm405ep.h
>> @@ -139,6 +139,9 @@
>>   #define DCRN_UIC0_BASE          0x0C0
>>   #define UIC0 DCRN_UIC0_BASE
>>
>> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
>> +#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
>> +
>>   #include <asm/ibm405.h>
>>
>>   #endif				/* __ASM_IBM405EP_H__ */
>> diff --git a/arch/ppc/platforms/4xx/ibm405gp.h 
>> b/arch/ppc/platforms/4xx/ibm405gp.h
>> index 9f15e55..9f7e850 100644
>> --- a/arch/ppc/platforms/4xx/ibm405gp.h
>> +++ b/arch/ppc/platforms/4xx/ibm405gp.h
>> @@ -142,6 +142,15 @@
>>   #define DCRN_UIC0_BASE		0x0C0
>>   #define UIC0 DCRN_UIC0_BASE
>>
>> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
>> +#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
>> +#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
>> +#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
>> +#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
>> +#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
>> +#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
>> +#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
>> +
>>   #include <asm/ibm405.h>
>>
>>   #endif				/* __ASM_IBM405GP_H__ */
>> diff --git a/arch/ppc/platforms/4xx/ibm405gpr.h 
>> b/arch/ppc/platforms/4xx/ibm405gpr.h
>> index 9e01f15..6f39042 100644
>> --- a/arch/ppc/platforms/4xx/ibm405gpr.h
>> +++ b/arch/ppc/platforms/4xx/ibm405gpr.h
>> @@ -142,6 +142,15 @@
>>   #define DCRN_UIC0_BASE		0x0C0
>>   #define UIC0 DCRN_UIC0_BASE
>>
>> +/* DCRN_SDRAM0_BASE offsets - general 405 offsets in asm/ibm405.h */
>> +#define DCRN_SDRAM0_BESR0	0x00	/* Bus Error Syndrome Reg 0 */
>> +#define DCRN_SDRAM0_BESR1	0x08	/* Bus Error Syndrome Reg 1 */
>> +#define DCRN_SDRAM0_BEAR	0x10	/* Bus Error Address Reg */
>> +#define DCRN_SDRAM0_B2CR	0x48	/* Memory Bank 2 Configuration Reg */
>> +#define DCRN_SDRAM0_B3CR	0x4c	/* Memory Bank 3 Configuration Reg */
>> +#define DCRN_SDRAM0_ECCCFG	0x94	/* ECC Configuration */
>> +#define DCRN_SDRAM0_ECCESR	0x98	/* ECC Error Status */
>> +
>>   #include <asm/ibm405.h>
>>
>>   #endif				/* __ASM_IBM405GPR_H__ */
>> diff --git a/include/asm-ppc/ibm405.h b/include/asm-ppc/ibm405.h
>> index 4e5be9e..04aaae6 100644
>> --- a/include/asm-ppc/ibm405.h
>> +++ b/include/asm-ppc/ibm405.h
>> @@ -135,6 +135,26 @@
>>   #ifdef DCRN_EBC_BASE
>>   #define DCRN_EBCCFGADR	(DCRN_EBC_BASE + 0x0)	/* Peripheral Controller 
>> Address */
>>   #define DCRN_EBCCFGDATA	(DCRN_EBC_BASE + 0x1)	/* Peripheral Controller 
>> Data */
>> +#define DCRN_EBC_PB0CR	0x00	/* Peripheral Bank 0 Config Reg */
>> +#define DCRN_EBC_PB1CR	0x01	/* Peripheral Bank 1 Config Reg */
>> +#define DCRN_EBC_PB2CR	0x02	/* Peripheral Bank 2 Config Reg */
>> +#define DCRN_EBC_PB3CR	0x03	/* Peripheral Bank 3 Config Reg */
>> +#define DCRN_EBC_PB4CR	0x04	/* Peripheral Bank 4 Config Reg */
>> +#define DCRN_EBC_PB5CR	0x05	/* Peripheral Bank 5 Config Reg */
>> +#define DCRN_EBC_PB6CR	0x06	/* Peripheral Bank 6 Config Reg */
>> +#define DCRN_EBC_PB7CR	0x07	/* Peripheral Bank 7 Config Reg */
>> +#define DCRN_EBC_PB0AP	0x10	/* Peripheral Bank 0 Access Parameters */
>> +#define DCRN_EBC_PB1AP	0x11	/* Peripheral Bank 1 Access parameters */
>> +#define DCRN_EBC_PB2AP	0x12	/* Peripheral Bank 2 Access Parameters */
>> +#define DCRN_EBC_PB3AP	0x13	/* Peripheral Bank 3 Access Parameters */
>> +#define DCRN_EBC_PB4AP	0x14	/* Peripheral Bank 4 Access Parameters */
>> +#define DCRN_EBC_PB5AP	0x15	/* Peripheral Bank 5 Access Parameters */
>> +#define DCRN_EBC_PB6AP	0x16	/* Peripheral Bank 6 Access Parameters */
>> +#define DCRN_EBC_PB7AP	0x17	/* Peripheral Bank 7 Access Parameters */
>> +#define DCRN_EBC_PBEAR	0x20	/* Peripheral Bus Error Address Reg */
>> +#define DCRN_EBC_PBESR0	0x21	/* Peripheral Bus Error Status Reg 0 */
>> +#define DCRN_EBC_PBESR1	0x22	/* Peripheral Bus Error Status Reg 1 */
>> +#define DCRN_EBC_EPCR	0x23	/* External Peripheral Control Reg */
>>   #endif
>>
>>   #ifdef DCRN_EXIER_BASE
>> @@ -286,6 +306,13 @@
>>   #ifdef DCRN_SDRAM0_BASE
>>   #define DCRN_SDRAM0_CFGADDR	(DCRN_SDRAM0_BASE + 0x0)	/* Memory 
>> Controller Address */
>>   #define DCRN_SDRAM0_CFGDATA	(DCRN_SDRAM0_BASE + 0x1)	/* Memory 
>> Controller Data */
>> +#define DCRN_SDRAM0_CFG		0x20	/* SDRAM Configuration */
>> +#define DCRN_SDRAM0_STATUS	0x24	/* SDRAM Controller Status */
>> +#define DCRN_SDRAM0_RTR		0x30	/* Refresh Timer Reg */
>> +#define DCRN_SDRAM0_PMIT	0x34	/* Power Management Idle Timer */
>> +#define DCRN_SDRAM0_B0CR	0x40	/* Memory Bank 0 Configuration Reg */
>> +#define DCRN_SDRAM0_B1CR	0x44	/* Memory Bank 1 Configuration Reg */
>> +#define DCRN_SDRAM0_TR		0x80	/* SDRAM Timing Reg */
>>   #endif
>>
>>   #ifdef DCRN_OCM0_BASE
>> _______________________________________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev@ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-dev
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-22 17:08   ` Joshua Williams
@ 2008-01-22 17:10     ` Josh Boyer
  2008-01-22 19:15       ` Joshua Williams
  2008-01-22 20:58       ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 8+ messages in thread
From: Josh Boyer @ 2008-01-22 17:10 UTC (permalink / raw)
  To: Joshua Williams; +Cc: linuxppc-dev

On Tue, 22 Jan 2008 11:08:38 -0600
Joshua Williams <joshua.williams@qlogic.com> wrote:

> Benjamin Herrenschmidt wrote:
> > On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
> >> Various new ibm405 DCRN #defines.
> >>
> >>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
> > 
> > May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
> > nothing we want to improve to much on at this stage unless there's a
> > really good reason.
> 
> The 405x #defines were incomplete and this was meant to
> make them a bit tighter.  Since arch/ppc is in life support
> mode this can wait until the 405x stuff gets moved over to
> arch/powerpc.

Which 405x stuff?  Walnut is moved over already.  Other boards will
need to be ported by people that have those boards.

josh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-22 17:10     ` Josh Boyer
@ 2008-01-22 19:15       ` Joshua Williams
  2008-01-22 19:23         ` Josh Boyer
  2008-01-22 20:58       ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 8+ messages in thread
From: Joshua Williams @ 2008-01-22 19:15 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linuxppc-dev

Josh Boyer wrote:
> On Tue, 22 Jan 2008 11:08:38 -0600
> Joshua Williams <joshua.williams@qlogic.com> wrote:
> 
>> Benjamin Herrenschmidt wrote:
>>> On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
>>>> Various new ibm405 DCRN #defines.
>>>>
>>>>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
>>> May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
>>> nothing we want to improve to much on at this stage unless there's a
>>> really good reason.
>> The 405x #defines were incomplete and this was meant to
>> make them a bit tighter.  Since arch/ppc is in life support
>> mode this can wait until the 405x stuff gets moved over to
>> arch/powerpc.
> 
> Which 405x stuff?  Walnut is moved over already.  Other boards will
> need to be ported by people that have those boards.

Gotcha.  I'll revisit this once everything has been moved over.

- Josh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-22 19:15       ` Joshua Williams
@ 2008-01-22 19:23         ` Josh Boyer
  0 siblings, 0 replies; 8+ messages in thread
From: Josh Boyer @ 2008-01-22 19:23 UTC (permalink / raw)
  To: Joshua Williams; +Cc: linuxppc-dev

On Tue, 22 Jan 2008 13:15:07 -0600
Joshua Williams <joshua.williams@qlogic.com> wrote:

> Josh Boyer wrote:
> > On Tue, 22 Jan 2008 11:08:38 -0600
> > Joshua Williams <joshua.williams@qlogic.com> wrote:
> > 
> >> Benjamin Herrenschmidt wrote:
> >>> On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
> >>>> Various new ibm405 DCRN #defines.
> >>>>
> >>>>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
> >>> May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
> >>> nothing we want to improve to much on at this stage unless there's a
> >>> really good reason.
> >> The 405x #defines were incomplete and this was meant to
> >> make them a bit tighter.  Since arch/ppc is in life support
> >> mode this can wait until the 405x stuff gets moved over to
> >> arch/powerpc.
> > 
> > Which 405x stuff?  Walnut is moved over already.  Other boards will
> > need to be ported by people that have those boards.
> 
> Gotcha.  I'll revisit this once everything has been moved over.

Sorry, maybe Ben and I aren't being clear.  405GP (Walnut) support is
in arch/powerpc.  There is also support for 405EX and 405EXr.  The
arch/ppc tree is going to die in June, whether the rest of the 405
boards are ported or not.

So are you trying to add defines for a new board, or?  I don't see much
of a reason not to go ahead and do what you're doing now rather than
later but I'll leave that up to you :)

josh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-21 22:43 [PATCH] Various new ibm405 DCRN #defines Joshua Williams
  2008-01-21 22:57 ` Benjamin Herrenschmidt
@ 2008-01-22 19:25 ` Grant Likely
  1 sibling, 0 replies; 8+ messages in thread
From: Grant Likely @ 2008-01-22 19:25 UTC (permalink / raw)
  To: Joshua Williams; +Cc: linuxppc-dev

On 1/21/08, Joshua Williams <joshua.williams@qlogic.com> wrote:
>      Various new ibm405 DCRN #defines.
>
>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
> ---
>   arch/ppc/platforms/4xx/ibm405ep.h  |    3 +++
>   arch/ppc/platforms/4xx/ibm405gp.h  |    9 +++++++++
>   arch/ppc/platforms/4xx/ibm405gpr.h |    9 +++++++++
>   include/asm-ppc/ibm405.h           |   27 +++++++++++++++++++++++++++
>   4 files changed, 48 insertions(+), 0 deletions(-)

Changes like this should only be done in conjunction with
drivers/board support patches which actually use them.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Various new ibm405 DCRN #defines
  2008-01-22 17:10     ` Josh Boyer
  2008-01-22 19:15       ` Joshua Williams
@ 2008-01-22 20:58       ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2008-01-22 20:58 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linuxppc-dev, Joshua Williams


On Tue, 2008-01-22 at 11:10 -0600, Josh Boyer wrote:
> On Tue, 22 Jan 2008 11:08:38 -0600
> Joshua Williams <joshua.williams@qlogic.com> wrote:
> 
> > Benjamin Herrenschmidt wrote:
> > > On Mon, 2008-01-21 at 16:43 -0600, Joshua Williams wrote:
> > >> Various new ibm405 DCRN #defines.
> > >>
> > >>      Signed-off-by: Joshua Williams <joshua.williams@qlogic.com>
> > > 
> > > May I ask what for ? :-) Also, it's all arch/ppc, not arch/powerpc...
> > > nothing we want to improve to much on at this stage unless there's a
> > > really good reason.
> > 
> > The 405x #defines were incomplete and this was meant to
> > make them a bit tighter.  Since arch/ppc is in life support
> > mode this can wait until the 405x stuff gets moved over to
> > arch/powerpc.
> 
> Which 405x stuff?  Walnut is moved over already.  Other boards will
> need to be ported by people that have those boards.

I have no objection with adding #define's to arch/powerpc somewhere
though I'd like to avoid having 36 different .h files per processor
type.

Ben.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-01-22 21:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 22:43 [PATCH] Various new ibm405 DCRN #defines Joshua Williams
2008-01-21 22:57 ` Benjamin Herrenschmidt
2008-01-22 17:08   ` Joshua Williams
2008-01-22 17:10     ` Josh Boyer
2008-01-22 19:15       ` Joshua Williams
2008-01-22 19:23         ` Josh Boyer
2008-01-22 20:58       ` Benjamin Herrenschmidt
2008-01-22 19:25 ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).