Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread Johan Transez
Maybe Alex is registered twice.  I received only the 23 mails that Greg 
mentions.
It's good to see that uCLinux is still alive and kicking :)

Johan.

-Original Message-
From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] 
On Behalf Of Greg Ungerer
Sent: donderdag 26 april 2012 3:08
To: Alex LI
Cc: mohamed nabil; linux-m...@vger.kernel.org; uClinux development list; Greg 
Ungerer
Subject: Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x 
GPIO struct setup

Hi Alex,

On 04/26/2012 10:53 AM, Alex LI wrote:
> You sent 50 mails in 1 min.

I sent 23. And both list archives (linux-m68k and uclinux-dev) only show the 23 
emails.

Maybe the uclinux-dev reflecter is sending dupes to list recpients?

Regards
Greg



> Sent from my Sony Ericsson Xperia arc S
>
> Greg Ungerer  ?:
>
>> On 04/26/2012 10:36 AM, mohamed nabil wrote:
>>> that's a Fucking spam man !!
>>
>> Huh?
>>
>> Thats how open source development works. If you don't like it don't 
>> subscribe to a developers list.
>>
>> Regards
>> Greg
>>
>>
>>
>>> On Thu, Apr 26, 2012 at 2:26 AM,>> >  wrote:
>>>
>>>  From: Greg Ungerermailto:g...@uclinux.org>>
>>>
>>>  The GPIO data struct setup is now the only remaining code in the
>>>  platform
>>>  gpio.c file. So move it to the platform config.c code and remove the
>>>  gpio.c
>>>  file.
>>>
>>>  Signed-off-by: Greg Ungerermailto:g...@uclinux.org>>
>>>  ---
>>>arch/m68k/platform/532x/Makefile |2 +-
>>>arch/m68k/platform/532x/config.c |   25 ++
>>>arch/m68k/platform/532x/gpio.c   |   43
>>>  --
>>>3 files changed, 26 insertions(+), 44 deletions(-)
>>>delete mode 100644 arch/m68k/platform/532x/gpio.c
>>>
>>>  diff --git a/arch/m68k/platform/532x/Makefile
>>>  b/arch/m68k/platform/532x/Makefile
>>>  index ce01669..c0d8cf8 100644
>>>  --- a/arch/m68k/platform/532x/Makefile
>>>  +++ b/arch/m68k/platform/532x/Makefile
>>>  @@ -15,4 +15,4 @@
>>>asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
>>>
>>>#obj-y := config.o usb-mcf532x.o spi-mcf532x.o
>>>  -obj-y := config.o gpio.o
>>>  +obj-y := config.o
>>>  diff --git a/arch/m68k/platform/532x/config.c
>>>  b/arch/m68k/platform/532x/config.c
>>>  index 2bec347..a4dd3d8 100644
>>>  --- a/arch/m68k/platform/532x/config.c
>>>  +++ b/arch/m68k/platform/532x/config.c
>>>  @@ -26,10 +26,35 @@
>>>#include
>>>#include
>>>#include
>>>  +#include
>>>#include
>>>
>>>
>>> /***
>>> /
>>>
>>>  +struct mcf_gpio_chip mcf_gpio_chips[] = {
>>>  +   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
>>>  MCFEPORT_EPPDR),
>>>  +   MCFGPF(FECH, 8, 8),
>>>  +   MCFGPF(FECL, 16, 8),
>>>  +   MCFGPF(SSI, 24, 5),
>>>  +   MCFGPF(BUSCTL, 32, 4),
>>>  +   MCFGPF(BE, 40, 4),
>>>  +   MCFGPF(CS, 49, 5),
>>>  +   MCFGPF(PWM, 58, 4),
>>>  +   MCFGPF(FECI2C, 64, 4),
>>>  +   MCFGPF(UART, 72, 8),
>>>  +   MCFGPF(QSPI, 80, 6),
>>>  +   MCFGPF(TIMER, 88, 4),
>>>  +   MCFGPF(LCDDATAH, 96, 2),
>>>  +   MCFGPF(LCDDATAM, 104, 8),
>>>  +   MCFGPF(LCDDATAL, 112, 8),
>>>  +   MCFGPF(LCDCTLH, 120, 1),
>>>  +   MCFGPF(LCDCTLL, 128, 8),
>>>  +};
>>>  +
>>>  +unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
>>>  +
>>>  
>>> +/***/
>>>  +
>>>#ifdef CONFIG_SPI_COLDFIRE_QSPI
>>>
>>>static void __init m532x_qspi_init(void)
>>>  diff --git a/arch/m68k/platform/532x/gpio.c
>>>  b/arch/m68k/platform/532x/gpio.c
>>>  deleted file mode 100644
>>>  index 3e1b71d..000
>>>  --- a/arch/m68k/platform/532x/gpio.c
>>>  +++ /dev/null
>>>  @@ -1,43 +0,0 @@
>>>  -/*
>>>  - * Coldfire generic GPIO support
>>>  - *
>>>  - * (C) Copyright 2009, Steven King>>  >
>>>  - *
>>>  - * This program is free software; you can redistribute it and/or 
>>> modify
>>>  - * it under the terms of the GNU General Public License as published 
>>> by
>>>  - * the Free Software Foundation; version 2 of the License.
>>>  - *
>>>  - * This program is distributed in the hope that it will be useful,
>>>  - * but WITHOUT ANY WARRANTY; without even the implied warranty of
>>>  - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>>>  - * GNU General Public License for more details.
>>>  -*/
>>>  -
>>>  -#include
>>>  -#include
>>>  -
>>>  -#include
>>>  -#include
>>>  -#include
>>>  -
>>>  -struct mcf_gpio_chip mcf_gpio_chips[]

Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread Greg Ungerer

Hi Alex,

On 04/26/2012 10:53 AM, Alex LI wrote:

You sent 50 mails in 1 min.


I sent 23. And both list archives (linux-m68k and uclinux-dev) only
show the 23 emails.

Maybe the uclinux-dev reflecter is sending dupes to list recpients?

Regards
Greg




Sent from my Sony Ericsson Xperia arc S

Greg Ungerer  ?:


On 04/26/2012 10:36 AM, mohamed nabil wrote:

that's a Fucking spam man !!


Huh?

Thats how open source development works. If you don't like it don't
subscribe to a developers list.

Regards
Greg




On Thu, Apr 26, 2012 at 2:26 AM,mailto:g...@snapgear.com>>  wrote:

 From: Greg Ungerermailto:g...@uclinux.org>>

 The GPIO data struct setup is now the only remaining code in the
 platform
 gpio.c file. So move it to the platform config.c code and remove the
 gpio.c
 file.

 Signed-off-by: Greg Ungerermailto:g...@uclinux.org>>
 ---
   arch/m68k/platform/532x/Makefile |2 +-
   arch/m68k/platform/532x/config.c |   25 ++
   arch/m68k/platform/532x/gpio.c   |   43
 --
   3 files changed, 26 insertions(+), 44 deletions(-)
   delete mode 100644 arch/m68k/platform/532x/gpio.c

 diff --git a/arch/m68k/platform/532x/Makefile
 b/arch/m68k/platform/532x/Makefile
 index ce01669..c0d8cf8 100644
 --- a/arch/m68k/platform/532x/Makefile
 +++ b/arch/m68k/platform/532x/Makefile
 @@ -15,4 +15,4 @@
   asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1

   #obj-y := config.o usb-mcf532x.o spi-mcf532x.o
 -obj-y := config.o gpio.o
 +obj-y := config.o
 diff --git a/arch/m68k/platform/532x/config.c
 b/arch/m68k/platform/532x/config.c
 index 2bec347..a4dd3d8 100644
 --- a/arch/m68k/platform/532x/config.c
 +++ b/arch/m68k/platform/532x/config.c
 @@ -26,10 +26,35 @@
   #include
   #include
   #include
 +#include
   #include

   
/***/

 +struct mcf_gpio_chip mcf_gpio_chips[] = {
 +   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
 MCFEPORT_EPPDR),
 +   MCFGPF(FECH, 8, 8),
 +   MCFGPF(FECL, 16, 8),
 +   MCFGPF(SSI, 24, 5),
 +   MCFGPF(BUSCTL, 32, 4),
 +   MCFGPF(BE, 40, 4),
 +   MCFGPF(CS, 49, 5),
 +   MCFGPF(PWM, 58, 4),
 +   MCFGPF(FECI2C, 64, 4),
 +   MCFGPF(UART, 72, 8),
 +   MCFGPF(QSPI, 80, 6),
 +   MCFGPF(TIMER, 88, 4),
 +   MCFGPF(LCDDATAH, 96, 2),
 +   MCFGPF(LCDDATAM, 104, 8),
 +   MCFGPF(LCDDATAL, 112, 8),
 +   MCFGPF(LCDCTLH, 120, 1),
 +   MCFGPF(LCDCTLL, 128, 8),
 +};
 +
 +unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 +
 
+/***/
 +
   #ifdef CONFIG_SPI_COLDFIRE_QSPI

   static void __init m532x_qspi_init(void)
 diff --git a/arch/m68k/platform/532x/gpio.c
 b/arch/m68k/platform/532x/gpio.c
 deleted file mode 100644
 index 3e1b71d..000
 --- a/arch/m68k/platform/532x/gpio.c
 +++ /dev/null
 @@ -1,43 +0,0 @@
 -/*
 - * Coldfire generic GPIO support
 - *
 - * (C) Copyright 2009, Steven Kingmailto:sfk...@fdwdc.com>>
 - *
 - * This program is free software; you can redistribute it and/or modify
 - * it under the terms of the GNU General Public License as published by
 - * the Free Software Foundation; version 2 of the License.
 - *
 - * This program is distributed in the hope that it will be useful,
 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 - * GNU General Public License for more details.
 -*/
 -
 -#include
 -#include
 -
 -#include
 -#include
 -#include
 -
 -struct mcf_gpio_chip mcf_gpio_chips[] = {
 -   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
 MCFEPORT_EPPDR),
 -   MCFGPF(FECH, 8, 8),
 -   MCFGPF(FECL, 16, 8),
 -   MCFGPF(SSI, 24, 5),
 -   MCFGPF(BUSCTL, 32, 4),
 -   MCFGPF(BE, 40, 4),
 -   MCFGPF(CS, 49, 5),
 -   MCFGPF(PWM, 58, 4),
 -   MCFGPF(FECI2C, 64, 4),
 -   MCFGPF(UART, 72, 8),
 -   MCFGPF(QSPI, 80, 6),
 -   MCFGPF(TIMER, 88, 4),
 -   MCFGPF(LCDDATAH, 96, 2),
 -   MCFGPF(LCDDATAM, 104, 8),
 -   MCFGPF(LCDDATAL, 112, 8),
 -   MCFGPF(LCDCTLH, 120, 1),
 -   MCFGPF(LCDCTLL, 128, 8),
 -};
 -
 -unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 --
 1.7.0.4

 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was re

Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread Alex LI
Greg,

You sent 50 mails in 1 min. 

Sent from my Sony Ericsson Xperia arc S

Greg Ungerer  寫:

>On 04/26/2012 10:36 AM, mohamed nabil wrote:
>> that's a Fucking spam man !!
>
>Huh?
>
>Thats how open source development works. If you don't like it don't
>subscribe to a developers list.
>
>Regards
>Greg
>
>
>
>> On Thu, Apr 26, 2012 at 2:26 AM, > > wrote:
>>
>> From: Greg Ungerer mailto:g...@uclinux.org>>
>>
>> The GPIO data struct setup is now the only remaining code in the
>> platform
>> gpio.c file. So move it to the platform config.c code and remove the
>> gpio.c
>> file.
>>
>> Signed-off-by: Greg Ungerer mailto:g...@uclinux.org>>
>> ---
>>   arch/m68k/platform/532x/Makefile |2 +-
>>   arch/m68k/platform/532x/config.c |   25 ++
>>   arch/m68k/platform/532x/gpio.c   |   43
>> --
>>   3 files changed, 26 insertions(+), 44 deletions(-)
>>   delete mode 100644 arch/m68k/platform/532x/gpio.c
>>
>> diff --git a/arch/m68k/platform/532x/Makefile
>> b/arch/m68k/platform/532x/Makefile
>> index ce01669..c0d8cf8 100644
>> --- a/arch/m68k/platform/532x/Makefile
>> +++ b/arch/m68k/platform/532x/Makefile
>> @@ -15,4 +15,4 @@
>>   asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
>>
>>   #obj-y := config.o usb-mcf532x.o spi-mcf532x.o
>> -obj-y := config.o gpio.o
>> +obj-y := config.o
>> diff --git a/arch/m68k/platform/532x/config.c
>> b/arch/m68k/platform/532x/config.c
>> index 2bec347..a4dd3d8 100644
>> --- a/arch/m68k/platform/532x/config.c
>> +++ b/arch/m68k/platform/532x/config.c
>> @@ -26,10 +26,35 @@
>>   #include 
>>   #include 
>>   #include 
>> +#include 
>>   #include 
>>
>>   
>> /***/
>>
>> +struct mcf_gpio_chip mcf_gpio_chips[] = {
>> +   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
>> MCFEPORT_EPPDR),
>> +   MCFGPF(FECH, 8, 8),
>> +   MCFGPF(FECL, 16, 8),
>> +   MCFGPF(SSI, 24, 5),
>> +   MCFGPF(BUSCTL, 32, 4),
>> +   MCFGPF(BE, 40, 4),
>> +   MCFGPF(CS, 49, 5),
>> +   MCFGPF(PWM, 58, 4),
>> +   MCFGPF(FECI2C, 64, 4),
>> +   MCFGPF(UART, 72, 8),
>> +   MCFGPF(QSPI, 80, 6),
>> +   MCFGPF(TIMER, 88, 4),
>> +   MCFGPF(LCDDATAH, 96, 2),
>> +   MCFGPF(LCDDATAM, 104, 8),
>> +   MCFGPF(LCDDATAL, 112, 8),
>> +   MCFGPF(LCDCTLH, 120, 1),
>> +   MCFGPF(LCDCTLL, 128, 8),
>> +};
>> +
>> +unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
>> +
>> 
>> +/***/
>> +
>>   #ifdef CONFIG_SPI_COLDFIRE_QSPI
>>
>>   static void __init m532x_qspi_init(void)
>> diff --git a/arch/m68k/platform/532x/gpio.c
>> b/arch/m68k/platform/532x/gpio.c
>> deleted file mode 100644
>> index 3e1b71d..000
>> --- a/arch/m68k/platform/532x/gpio.c
>> +++ /dev/null
>> @@ -1,43 +0,0 @@
>> -/*
>> - * Coldfire generic GPIO support
>> - *
>> - * (C) Copyright 2009, Steven King > >
>> - *
>> - * This program is free software; you can redistribute it and/or modify
>> - * it under the terms of the GNU General Public License as published by
>> - * the Free Software Foundation; version 2 of the License.
>> - *
>> - * This program is distributed in the hope that it will be useful,
>> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> - * GNU General Public License for more details.
>> -*/
>> -
>> -#include 
>> -#include 
>> -
>> -#include 
>> -#include 
>> -#include 
>> -
>> -struct mcf_gpio_chip mcf_gpio_chips[] = {
>> -   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
>> MCFEPORT_EPPDR),
>> -   MCFGPF(FECH, 8, 8),
>> -   MCFGPF(FECL, 16, 8),
>> -   MCFGPF(SSI, 24, 5),
>> -   MCFGPF(BUSCTL, 32, 4),
>> -   MCFGPF(BE, 40, 4),
>> -   MCFGPF(CS, 49, 5),
>> -   MCFGPF(PWM, 58, 4),
>> -   MCFGPF(FECI2C, 64, 4),
>> -   MCFGPF(UART, 72, 8),
>> -   MCFGPF(QSPI, 80, 6),
>> -   MCFGPF(TIMER, 88, 4),
>> -   MCFGPF(LCDDATAH, 96, 2),
>> -   MCFGPF(LCDDATAM, 104, 8),
>> -   MCFGPF(LCDDATAL, 112, 8),
>> -   MCFGPF(LCDCTLH, 120, 1),
>> -   MCFGPF(LCDCTLL, 128, 8),
>> -};
>> -
>> -unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
>> --
>> 1.7.0.4
>>
>> ___
>> uClinux-dev mailing list
>> uClinux-dev@uclinux.org 
>>  

Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread Greg Ungerer

On 04/26/2012 10:36 AM, mohamed nabil wrote:

that's a Fucking spam man !!


Huh?

Thats how open source development works. If you don't like it don't
subscribe to a developers list.

Regards
Greg




On Thu, Apr 26, 2012 at 2:26 AM, mailto:g...@snapgear.com>> wrote:

From: Greg Ungerer mailto:g...@uclinux.org>>

The GPIO data struct setup is now the only remaining code in the
platform
gpio.c file. So move it to the platform config.c code and remove the
gpio.c
file.

Signed-off-by: Greg Ungerer mailto:g...@uclinux.org>>
---
  arch/m68k/platform/532x/Makefile |2 +-
  arch/m68k/platform/532x/config.c |   25 ++
  arch/m68k/platform/532x/gpio.c   |   43
--
  3 files changed, 26 insertions(+), 44 deletions(-)
  delete mode 100644 arch/m68k/platform/532x/gpio.c

diff --git a/arch/m68k/platform/532x/Makefile
b/arch/m68k/platform/532x/Makefile
index ce01669..c0d8cf8 100644
--- a/arch/m68k/platform/532x/Makefile
+++ b/arch/m68k/platform/532x/Makefile
@@ -15,4 +15,4 @@
  asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1

  #obj-y := config.o usb-mcf532x.o spi-mcf532x.o
-obj-y := config.o gpio.o
+obj-y := config.o
diff --git a/arch/m68k/platform/532x/config.c
b/arch/m68k/platform/532x/config.c
index 2bec347..a4dd3d8 100644
--- a/arch/m68k/platform/532x/config.c
+++ b/arch/m68k/platform/532x/config.c
@@ -26,10 +26,35 @@
  #include 
  #include 
  #include 
+#include 
  #include 

  
/***/

+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
MCFEPORT_EPPDR),
+   MCFGPF(FECH, 8, 8),
+   MCFGPF(FECL, 16, 8),
+   MCFGPF(SSI, 24, 5),
+   MCFGPF(BUSCTL, 32, 4),
+   MCFGPF(BE, 40, 4),
+   MCFGPF(CS, 49, 5),
+   MCFGPF(PWM, 58, 4),
+   MCFGPF(FECI2C, 64, 4),
+   MCFGPF(UART, 72, 8),
+   MCFGPF(QSPI, 80, 6),
+   MCFGPF(TIMER, 88, 4),
+   MCFGPF(LCDDATAH, 96, 2),
+   MCFGPF(LCDDATAM, 104, 8),
+   MCFGPF(LCDDATAL, 112, 8),
+   MCFGPF(LCDCTLH, 120, 1),
+   MCFGPF(LCDCTLL, 128, 8),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
+

+/***/
+
  #ifdef CONFIG_SPI_COLDFIRE_QSPI

  static void __init m532x_qspi_init(void)
diff --git a/arch/m68k/platform/532x/gpio.c
b/arch/m68k/platform/532x/gpio.c
deleted file mode 100644
index 3e1b71d..000
--- a/arch/m68k/platform/532x/gpio.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King mailto:sfk...@fdwdc.com>>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR,
MCFEPORT_EPPDR),
-   MCFGPF(FECH, 8, 8),
-   MCFGPF(FECL, 16, 8),
-   MCFGPF(SSI, 24, 5),
-   MCFGPF(BUSCTL, 32, 4),
-   MCFGPF(BE, 40, 4),
-   MCFGPF(CS, 49, 5),
-   MCFGPF(PWM, 58, 4),
-   MCFGPF(FECI2C, 64, 4),
-   MCFGPF(UART, 72, 8),
-   MCFGPF(QSPI, 80, 6),
-   MCFGPF(TIMER, 88, 4),
-   MCFGPF(LCDDATAH, 96, 2),
-   MCFGPF(LCDDATAM, 104, 8),
-   MCFGPF(LCDDATAL, 112, 8),
-   MCFGPF(LCDCTLH, 120, 1),
-   MCFGPF(LCDCTLL, 128, 8),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
--
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org 
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org

To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev




--
__
Mohamed Nabil Hafez
Embedded Software Engineer




--

Greg Ungerer  --  Principal EngineerEMAIL: g...@snapgear.com
SnapGear Group, McAfee  PHONE:  

Re: [uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread mohamed nabil
that's a Fucking spam man !!

On Thu, Apr 26, 2012 at 2:26 AM,  wrote:

> From: Greg Ungerer 
>
> The GPIO data struct setup is now the only remaining code in the platform
> gpio.c file. So move it to the platform config.c code and remove the gpio.c
> file.
>
> Signed-off-by: Greg Ungerer 
> ---
>  arch/m68k/platform/532x/Makefile |2 +-
>  arch/m68k/platform/532x/config.c |   25 ++
>  arch/m68k/platform/532x/gpio.c   |   43
> --
>  3 files changed, 26 insertions(+), 44 deletions(-)
>  delete mode 100644 arch/m68k/platform/532x/gpio.c
>
> diff --git a/arch/m68k/platform/532x/Makefile
> b/arch/m68k/platform/532x/Makefile
> index ce01669..c0d8cf8 100644
> --- a/arch/m68k/platform/532x/Makefile
> +++ b/arch/m68k/platform/532x/Makefile
> @@ -15,4 +15,4 @@
>  asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
>
>  #obj-y := config.o usb-mcf532x.o spi-mcf532x.o
> -obj-y := config.o gpio.o
> +obj-y := config.o
> diff --git a/arch/m68k/platform/532x/config.c
> b/arch/m68k/platform/532x/config.c
> index 2bec347..a4dd3d8 100644
> --- a/arch/m68k/platform/532x/config.c
> +++ b/arch/m68k/platform/532x/config.c
> @@ -26,10 +26,35 @@
>  #include 
>  #include 
>  #include 
> +#include 
>  #include 
>
>
>  /***/
>
> +struct mcf_gpio_chip mcf_gpio_chips[] = {
> +   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
> +   MCFGPF(FECH, 8, 8),
> +   MCFGPF(FECL, 16, 8),
> +   MCFGPF(SSI, 24, 5),
> +   MCFGPF(BUSCTL, 32, 4),
> +   MCFGPF(BE, 40, 4),
> +   MCFGPF(CS, 49, 5),
> +   MCFGPF(PWM, 58, 4),
> +   MCFGPF(FECI2C, 64, 4),
> +   MCFGPF(UART, 72, 8),
> +   MCFGPF(QSPI, 80, 6),
> +   MCFGPF(TIMER, 88, 4),
> +   MCFGPF(LCDDATAH, 96, 2),
> +   MCFGPF(LCDDATAM, 104, 8),
> +   MCFGPF(LCDDATAL, 112, 8),
> +   MCFGPF(LCDCTLH, 120, 1),
> +   MCFGPF(LCDCTLL, 128, 8),
> +};
> +
> +unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
> +
>
> +/***/
> +
>  #ifdef CONFIG_SPI_COLDFIRE_QSPI
>
>  static void __init m532x_qspi_init(void)
> diff --git a/arch/m68k/platform/532x/gpio.c
> b/arch/m68k/platform/532x/gpio.c
> deleted file mode 100644
> index 3e1b71d..000
> --- a/arch/m68k/platform/532x/gpio.c
> +++ /dev/null
> @@ -1,43 +0,0 @@
> -/*
> - * Coldfire generic GPIO support
> - *
> - * (C) Copyright 2009, Steven King 
> - *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; version 2 of the License.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> - * GNU General Public License for more details.
> -*/
> -
> -#include 
> -#include 
> -
> -#include 
> -#include 
> -#include 
> -
> -struct mcf_gpio_chip mcf_gpio_chips[] = {
> -   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
> -   MCFGPF(FECH, 8, 8),
> -   MCFGPF(FECL, 16, 8),
> -   MCFGPF(SSI, 24, 5),
> -   MCFGPF(BUSCTL, 32, 4),
> -   MCFGPF(BE, 40, 4),
> -   MCFGPF(CS, 49, 5),
> -   MCFGPF(PWM, 58, 4),
> -   MCFGPF(FECI2C, 64, 4),
> -   MCFGPF(UART, 72, 8),
> -   MCFGPF(QSPI, 80, 6),
> -   MCFGPF(TIMER, 88, 4),
> -   MCFGPF(LCDDATAH, 96, 2),
> -   MCFGPF(LCDDATAM, 104, 8),
> -   MCFGPF(LCDDATAL, 112, 8),
> -   MCFGPF(LCDCTLH, 120, 1),
> -   MCFGPF(LCDCTLL, 128, 8),
> -};
> -
> -unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
> --
> 1.7.0.4
>
> ___
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>



-- 
__
Mohamed Nabil Hafez
Embedded Software Engineer
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

[uClinux-dev] [PATCH 19/22] m68knommu: simplify the ColdFire 528x GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/528x/Makefile |2 +-
 arch/m68k/platform/528x/config.c |   31 
 arch/m68k/platform/528x/gpio.c   |   49 --
 3 files changed, 32 insertions(+), 50 deletions(-)
 delete mode 100644 arch/m68k/platform/528x/gpio.c

diff --git a/arch/m68k/platform/528x/Makefile b/arch/m68k/platform/528x/Makefile
index 6ac4b57..8755c9e 100644
--- a/arch/m68k/platform/528x/Makefile
+++ b/arch/m68k/platform/528x/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
 
diff --git a/arch/m68k/platform/528x/config.c b/arch/m68k/platform/528x/config.c
index d449292..3ea9545 100644
--- a/arch/m68k/platform/528x/config.c
+++ b/arch/m68k/platform/528x/config.c
@@ -21,6 +21,37 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(NQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPS(TA, 8, 4, MCFGPTA_GPTDDR, MCFGPTA_GPTPORT, MCFGPTB_GPTPORT),
+   MCFGPS(TB, 16, 4, MCFGPTB_GPTDDR, MCFGPTB_GPTPORT, MCFGPTB_GPTPORT),
+   MCFGPS(QA, 24, 4, MCFQADC_DDRQA, MCFQADC_PORTQA, MCFQADC_PORTQA),
+   MCFGPS(QA, 32, 4, MCFQADC_DDRQB, MCFQADC_PORTQB, MCFQADC_PORTQB),
+   MCFGPF(A, 40, 8),
+   MCFGPF(B, 48, 8),
+   MCFGPF(C, 56, 8),
+   MCFGPF(D, 64, 8),
+   MCFGPF(E, 72, 8),
+   MCFGPF(F, 80, 8),
+   MCFGPF(G, 88, 8),
+   MCFGPF(H, 96, 8),
+   MCFGPF(J, 104, 8),
+   MCFGPF(DD, 112, 8),
+   MCFGPF(EH, 120, 8),
+   MCFGPF(EL, 128, 8),
+   MCFGPF(AS, 136, 6),
+   MCFGPF(QS, 144, 7),
+   MCFGPF(SD, 152, 6),
+   MCFGPF(TC, 160, 4),
+   MCFGPF(TD, 168, 4),
+   MCFGPF(UA, 176, 4),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/528x/gpio.c b/arch/m68k/platform/528x/gpio.c
deleted file mode 100644
index 764c6c8..000
--- a/arch/m68k/platform/528x/gpio.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(NQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPS(TA, 8, 4, MCFGPTA_GPTDDR, MCFGPTA_GPTPORT, MCFGPTB_GPTPORT),
-   MCFGPS(TB, 16, 4, MCFGPTB_GPTDDR, MCFGPTB_GPTPORT, MCFGPTB_GPTPORT),
-   MCFGPS(QA, 24, 4, MCFQADC_DDRQA, MCFQADC_PORTQA, MCFQADC_PORTQA),
-   MCFGPS(QA, 32, 4, MCFQADC_DDRQB, MCFQADC_PORTQB, MCFQADC_PORTQB),
-   MCFGPF(A, 40, 8),
-   MCFGPF(B, 48, 8),
-   MCFGPF(C, 56, 8),
-   MCFGPF(D, 64, 8),
-   MCFGPF(E, 72, 8),
-   MCFGPF(F, 80, 8),
-   MCFGPF(G, 88, 8),
-   MCFGPF(H, 96, 8),
-   MCFGPF(J, 104, 8),
-   MCFGPF(DD, 112, 8),
-   MCFGPF(EH, 120, 8),
-   MCFGPF(EL, 128, 8),
-   MCFGPF(AS, 136, 6),
-   MCFGPF(QS, 144, 7),
-   MCFGPF(SD, 152, 6),
-   MCFGPF(TC, 160, 4),
-   MCFGPF(TD, 168, 4),
-   MCFGPF(UA, 176, 4),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 22/22] m68knommu: simplify the ColdFire 5407 GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5407/Makefile |2 +-
 arch/m68k/platform/5407/config.c |9 +
 arch/m68k/platform/5407/gpio.c   |   27 ---
 3 files changed, 10 insertions(+), 28 deletions(-)
 delete mode 100644 arch/m68k/platform/5407/gpio.c

diff --git a/arch/m68k/platform/5407/Makefile b/arch/m68k/platform/5407/Makefile
index e83fe14..24f3cd7 100644
--- a/arch/m68k/platform/5407/Makefile
+++ b/arch/m68k/platform/5407/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
 
diff --git a/arch/m68k/platform/5407/config.c b/arch/m68k/platform/5407/config.c
index bb6c746..faa6680 100644
--- a/arch/m68k/platform/5407/config.c
+++ b/arch/m68k/platform/5407/config.c
@@ -16,6 +16,15 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/5407/gpio.c b/arch/m68k/platform/5407/gpio.c
deleted file mode 100644
index 7bbbea7..000
--- a/arch/m68k/platform/5407/gpio.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 21/22] m68knommu: simplify the ColdFire 532x GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/532x/Makefile |2 +-
 arch/m68k/platform/532x/config.c |   25 ++
 arch/m68k/platform/532x/gpio.c   |   43 --
 3 files changed, 26 insertions(+), 44 deletions(-)
 delete mode 100644 arch/m68k/platform/532x/gpio.c

diff --git a/arch/m68k/platform/532x/Makefile b/arch/m68k/platform/532x/Makefile
index ce01669..c0d8cf8 100644
--- a/arch/m68k/platform/532x/Makefile
+++ b/arch/m68k/platform/532x/Makefile
@@ -15,4 +15,4 @@
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
 #obj-y := config.o usb-mcf532x.o spi-mcf532x.o
-obj-y := config.o gpio.o
+obj-y := config.o
diff --git a/arch/m68k/platform/532x/config.c b/arch/m68k/platform/532x/config.c
index 2bec347..a4dd3d8 100644
--- a/arch/m68k/platform/532x/config.c
+++ b/arch/m68k/platform/532x/config.c
@@ -26,10 +26,35 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 /***/
 
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPF(FECH, 8, 8),
+   MCFGPF(FECL, 16, 8),
+   MCFGPF(SSI, 24, 5),
+   MCFGPF(BUSCTL, 32, 4),
+   MCFGPF(BE, 40, 4),
+   MCFGPF(CS, 49, 5),
+   MCFGPF(PWM, 58, 4),
+   MCFGPF(FECI2C, 64, 4),
+   MCFGPF(UART, 72, 8),
+   MCFGPF(QSPI, 80, 6),
+   MCFGPF(TIMER, 88, 4),
+   MCFGPF(LCDDATAH, 96, 2),
+   MCFGPF(LCDDATAM, 104, 8),
+   MCFGPF(LCDDATAL, 112, 8),
+   MCFGPF(LCDCTLH, 120, 1),
+   MCFGPF(LCDCTLL, 128, 8),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
+
+/***/
+
 #ifdef CONFIG_SPI_COLDFIRE_QSPI
 
 static void __init m532x_qspi_init(void)
diff --git a/arch/m68k/platform/532x/gpio.c b/arch/m68k/platform/532x/gpio.c
deleted file mode 100644
index 3e1b71d..000
--- a/arch/m68k/platform/532x/gpio.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPF(FECH, 8, 8),
-   MCFGPF(FECL, 16, 8),
-   MCFGPF(SSI, 24, 5),
-   MCFGPF(BUSCTL, 32, 4),
-   MCFGPF(BE, 40, 4),
-   MCFGPF(CS, 49, 5),
-   MCFGPF(PWM, 58, 4),
-   MCFGPF(FECI2C, 64, 4),
-   MCFGPF(UART, 72, 8),
-   MCFGPF(QSPI, 80, 6),
-   MCFGPF(TIMER, 88, 4),
-   MCFGPF(LCDDATAH, 96, 2),
-   MCFGPF(LCDDATAM, 104, 8),
-   MCFGPF(LCDDATAL, 112, 8),
-   MCFGPF(LCDCTLH, 120, 1),
-   MCFGPF(LCDCTLL, 128, 8),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 20/22] m68knommu: simplify the ColdFire 5307 GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5307/Makefile |2 +-
 arch/m68k/platform/5307/config.c |9 +
 arch/m68k/platform/5307/gpio.c   |   27 ---
 3 files changed, 10 insertions(+), 28 deletions(-)
 delete mode 100644 arch/m68k/platform/5307/gpio.c

diff --git a/arch/m68k/platform/5307/Makefile b/arch/m68k/platform/5307/Makefile
index d4293b7..fd08186 100644
--- a/arch/m68k/platform/5307/Makefile
+++ b/arch/m68k/platform/5307/Makefile
@@ -14,7 +14,7 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y  += config.o gpio.o
+obj-y  += config.o
 obj-$(CONFIG_NETtel)   += nettel.o
 obj-$(CONFIG_CLEOPATRA)+= nettel.o
 
diff --git a/arch/m68k/platform/5307/config.c b/arch/m68k/platform/5307/config.c
index a568d28..93b4849 100644
--- a/arch/m68k/platform/5307/config.c
+++ b/arch/m68k/platform/5307/config.c
@@ -16,6 +16,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 /***/
@@ -28,6 +29,14 @@ unsigned char ledbank = 0xff;
 
 /***/
 
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
+
+/***/
+
 void __init config_BSP(char *commandp, int size)
 {
 #if defined(CONFIG_NETtel) || \
diff --git a/arch/m68k/platform/5307/gpio.c b/arch/m68k/platform/5307/gpio.c
deleted file mode 100644
index 7bbbea7..000
--- a/arch/m68k/platform/5307/gpio.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 17/22] m68knommu: simplify the ColdFire 5272 GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5272/Makefile |2 +-
 arch/m68k/platform/5272/config.c |   11 +++
 arch/m68k/platform/5272/gpio.c   |   29 -
 3 files changed, 12 insertions(+), 30 deletions(-)
 delete mode 100644 arch/m68k/platform/5272/gpio.c

diff --git a/arch/m68k/platform/5272/Makefile b/arch/m68k/platform/5272/Makefile
index 34110fc..932ddab 100644
--- a/arch/m68k/platform/5272/Makefile
+++ b/arch/m68k/platform/5272/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o intc.o
+obj-y := config.o intc.o
 
diff --git a/arch/m68k/platform/5272/config.c b/arch/m68k/platform/5272/config.c
index e68bc7a..43e3606 100644
--- a/arch/m68k/platform/5272/config.c
+++ b/arch/m68k/platform/5272/config.c
@@ -19,6 +19,7 @@
 #include 
 #include 
 #include 
+#include 
 
 /***/
 
@@ -30,6 +31,16 @@ unsigned char ledbank = 0xff;
 
 /***/
 
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PA,  0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
+   MCFGPS(PB, 16, 16, MCFSIM_PBDDR, MCFSIM_PBDAT, MCFSIM_PBDAT),
+   MCFGPS(Pc, 32, 16, MCFSIM_PCDDR, MCFSIM_PCDAT, MCFSIM_PCDAT),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
+
+/***/
+
 static void __init m5272_uarts_init(void)
 {
u32 v;
diff --git a/arch/m68k/platform/5272/gpio.c b/arch/m68k/platform/5272/gpio.c
deleted file mode 100644
index c029dab..000
--- a/arch/m68k/platform/5272/gpio.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PA,  0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
-   MCFGPS(PB, 16, 16, MCFSIM_PBDDR, MCFSIM_PBDAT, MCFSIM_PBDAT),
-   MCFGPS(Pc, 32, 16, MCFSIM_PCDDR, MCFSIM_PCDAT, MCFSIM_PCDAT),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 16/22] m68knommu: simplify the ColdFire 5249 GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5249/Makefile |2 +-
 arch/m68k/platform/5249/config.c |   10 ++
 arch/m68k/platform/5249/gpio.c   |   28 
 3 files changed, 11 insertions(+), 29 deletions(-)
 delete mode 100644 arch/m68k/platform/5249/gpio.c

diff --git a/arch/m68k/platform/5249/Makefile b/arch/m68k/platform/5249/Makefile
index 4bed30f..8a0186b 100644
--- a/arch/m68k/platform/5249/Makefile
+++ b/arch/m68k/platform/5249/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o intc2.o
+obj-y := config.o intc2.o
 
diff --git a/arch/m68k/platform/5249/config.c b/arch/m68k/platform/5249/config.c
index bbf0513..0b67baa 100644
--- a/arch/m68k/platform/5249/config.c
+++ b/arch/m68k/platform/5249/config.c
@@ -16,6 +16,16 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(GPIO0, 0, 32, MCFSIM2_GPIOENABLE, MCFSIM2_GPIOWRITE, 
MCFSIM2_GPIOREAD),
+   MCFGPS(GPIO1, 32, 32, MCFSIM2_GPIO1ENABLE, MCFSIM2_GPIO1WRITE, 
MCFSIM2_GPIO1READ),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/5249/gpio.c b/arch/m68k/platform/5249/gpio.c
deleted file mode 100644
index 422e45f..000
--- a/arch/m68k/platform/5249/gpio.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(GPIO0, 0, 32, MCFSIM2_GPIOENABLE, MCFSIM2_GPIOWRITE, 
MCFSIM2_GPIOREAD),
-   MCFGPS(GPIO1, 32, 32, MCFSIM2_GPIO1ENABLE, MCFSIM2_GPIO1WRITE, 
MCFSIM2_GPIO1READ),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 15/22] m68knommu: simplify the ColdFire 523x GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/523x/Makefile |2 +-
 arch/m68k/platform/523x/config.c |   22 
 arch/m68k/platform/523x/gpio.c   |   40 --
 3 files changed, 23 insertions(+), 41 deletions(-)
 delete mode 100644 arch/m68k/platform/523x/gpio.c

diff --git a/arch/m68k/platform/523x/Makefile b/arch/m68k/platform/523x/Makefile
index c04b8f7..e74be69 100644
--- a/arch/m68k/platform/523x/Makefile
+++ b/arch/m68k/platform/523x/Makefile
@@ -14,4 +14,4 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
diff --git a/arch/m68k/platform/523x/config.c b/arch/m68k/platform/523x/config.c
index c8b405d..d2b7a73 100644
--- a/arch/m68k/platform/523x/config.c
+++ b/arch/m68k/platform/523x/config.c
@@ -19,6 +19,28 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPF(ADDR, 13, 3),
+   MCFGPF(DATAH, 16, 8),
+   MCFGPF(DATAL, 24, 8),
+   MCFGPF(BUSCTL, 32, 8),
+   MCFGPF(BS, 40, 4),
+   MCFGPF(CS, 49, 7),
+   MCFGPF(SDRAM, 56, 6),
+   MCFGPF(FECI2C, 64, 4),
+   MCFGPF(UARTH, 72, 2),
+   MCFGPF(UARTL, 80, 8),
+   MCFGPF(QSPI, 88, 5),
+   MCFGPF(TIMER, 96, 8),
+   MCFGPF(ETPU, 104, 3),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/523x/gpio.c b/arch/m68k/platform/523x/gpio.c
deleted file mode 100644
index 07806eb..000
--- a/arch/m68k/platform/523x/gpio.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPF(ADDR, 13, 3),
-   MCFGPF(DATAH, 16, 8),
-   MCFGPF(DATAL, 24, 8),
-   MCFGPF(BUSCTL, 32, 8),
-   MCFGPF(BS, 40, 4),
-   MCFGPF(CS, 49, 7),
-   MCFGPF(SDRAM, 56, 6),
-   MCFGPF(FECI2C, 64, 4),
-   MCFGPF(UARTH, 72, 2),
-   MCFGPF(UARTL, 80, 8),
-   MCFGPF(QSPI, 88, 5),
-   MCFGPF(TIMER, 96, 8),
-   MCFGPF(ETPU, 104, 3),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 18/22] m68knommu: simplify the ColdFire 527x GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/527x/Makefile |2 +-
 arch/m68k/platform/527x/config.c |   43 ++
 arch/m68k/platform/527x/gpio.c   |   61 --
 3 files changed, 44 insertions(+), 62 deletions(-)
 delete mode 100644 arch/m68k/platform/527x/gpio.c

diff --git a/arch/m68k/platform/527x/Makefile b/arch/m68k/platform/527x/Makefile
index 6ac4b57..8755c9e 100644
--- a/arch/m68k/platform/527x/Makefile
+++ b/arch/m68k/platform/527x/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
 
diff --git a/arch/m68k/platform/527x/config.c b/arch/m68k/platform/527x/config.c
index f91a532..d0502a8 100644
--- a/arch/m68k/platform/527x/config.c
+++ b/arch/m68k/platform/527x/config.c
@@ -20,6 +20,49 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+#if defined(CONFIG_M5271)
+   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPF(ADDR, 13, 3),
+   MCFGPF(DATAH, 16, 8),
+   MCFGPF(DATAL, 24, 8),
+   MCFGPF(BUSCTL, 32, 8),
+   MCFGPF(BS, 40, 4),
+   MCFGPF(CS, 49, 7),
+   MCFGPF(SDRAM, 56, 6),
+   MCFGPF(FECI2C, 64, 4),
+   MCFGPF(UARTH, 72, 2),
+   MCFGPF(UARTL, 80, 8),
+   MCFGPF(QSPI, 88, 5),
+   MCFGPF(TIMER, 96, 8),
+#elif defined(CONFIG_M5275)
+   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPF(BUSCTL, 8, 8),
+   MCFGPF(ADDR, 21, 3),
+   MCFGPF(CS, 25, 7),
+   MCFGPF(FEC0H, 32, 8),
+   MCFGPF(FEC0L, 40, 8),
+   MCFGPF(FECI2C, 48, 6),
+   MCFGPF(QSPI, 56, 7),
+   MCFGPF(SDRAM, 64, 8),
+   MCFGPF(TIMERH, 72, 4),
+   MCFGPF(TIMERL, 80, 4),
+   MCFGPF(UARTL, 88, 8),
+   MCFGPF(FEC1H, 96, 8),
+   MCFGPF(FEC1L, 104, 8),
+   MCFGPF(BS, 114, 2),
+   MCFGPF(IRQ, 121, 7),
+   MCFGPF(USBH, 128, 1),
+   MCFGPF(USBL, 136, 8),
+   MCFGPF(UARTH, 144, 4),
+#endif
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/527x/gpio.c b/arch/m68k/platform/527x/gpio.c
deleted file mode 100644
index 1c8633b..000
--- a/arch/m68k/platform/527x/gpio.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-#if defined(CONFIG_M5271)
-   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPF(ADDR, 13, 3),
-   MCFGPF(DATAH, 16, 8),
-   MCFGPF(DATAL, 24, 8),
-   MCFGPF(BUSCTL, 32, 8),
-   MCFGPF(BS, 40, 4),
-   MCFGPF(CS, 49, 7),
-   MCFGPF(SDRAM, 56, 6),
-   MCFGPF(FECI2C, 64, 4),
-   MCFGPF(UARTH, 72, 2),
-   MCFGPF(UARTL, 80, 8),
-   MCFGPF(QSPI, 88, 5),
-   MCFGPF(TIMER, 96, 8),
-#elif defined(CONFIG_M5275)
-   MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPF(BUSCTL, 8, 8),
-   MCFGPF(ADDR, 21, 3),
-   MCFGPF(CS, 25, 7),
-   MCFGPF(FEC0H, 32, 8),
-   MCFGPF(FEC0L, 40, 8),
-   MCFGPF(FECI2C, 48, 6),
-   MCFGPF(QSPI, 56, 7),
-   MCFGPF(SDRAM, 64, 8),
-   MCFGPF(TIMERH, 72, 4),
-   MCFGPF(TIMERL, 80, 4),
-   MCFGPF(UARTL, 88, 8),
-   MCFGPF(FEC1H, 96, 8),
-   MCFGPF(FEC1L, 104, 8),
-   MCFGPF(BS, 114, 2),
-   MCFGPF(IRQ, 121, 7),
-   MCFGPF(USBH, 128, 1),
-   MCFGPF(USBL, 136, 8),
-   MCFGPF(UARTH, 144, 4),
-#endif
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 13/22] m68knommu: simplify the ColdFire 5206 GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5206/Makefile |2 +-
 arch/m68k/platform/5206/config.c |9 +
 arch/m68k/platform/5206/gpio.c   |   27 ---
 3 files changed, 10 insertions(+), 28 deletions(-)
 delete mode 100644 arch/m68k/platform/5206/gpio.c

diff --git a/arch/m68k/platform/5206/Makefile b/arch/m68k/platform/5206/Makefile
index b5db056..8a34a9d 100644
--- a/arch/m68k/platform/5206/Makefile
+++ b/arch/m68k/platform/5206/Makefile
@@ -14,5 +14,5 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
 
diff --git a/arch/m68k/platform/5206/config.c b/arch/m68k/platform/5206/config.c
index 6bfbeeb..a8b81df 100644
--- a/arch/m68k/platform/5206/config.c
+++ b/arch/m68k/platform/5206/config.c
@@ -16,6 +16,15 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PP, 0, 8, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/5206/gpio.c b/arch/m68k/platform/5206/gpio.c
deleted file mode 100644
index a652f8e..000
--- a/arch/m68k/platform/5206/gpio.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PP, 0, 8, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 14/22] m68knommu: simplify the ColdFire 520x GPIO struct setup

2012-04-25 Thread gerg
From: Greg Ungerer 

The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/520x/Makefile |2 +-
 arch/m68k/platform/520x/config.c |   16 
 arch/m68k/platform/520x/gpio.c   |   34 --
 3 files changed, 17 insertions(+), 35 deletions(-)
 delete mode 100644 arch/m68k/platform/520x/gpio.c

diff --git a/arch/m68k/platform/520x/Makefile b/arch/m68k/platform/520x/Makefile
index ad3f4e5..03e29d1 100644
--- a/arch/m68k/platform/520x/Makefile
+++ b/arch/m68k/platform/520x/Makefile
@@ -14,4 +14,4 @@
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
 
-obj-y := config.o gpio.o
+obj-y := config.o
diff --git a/arch/m68k/platform/520x/config.c b/arch/m68k/platform/520x/config.c
index 2359478..ce3ed88 100644
--- a/arch/m68k/platform/520x/config.c
+++ b/arch/m68k/platform/520x/config.c
@@ -19,6 +19,22 @@
 #include 
 #include 
 #include 
+#include 
+
+/***/
+
+struct mcf_gpio_chip mcf_gpio_chips[] = {
+   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
+   MCFGPF(CS, 9, 3),
+   MCFGPF(FECI2C, 16, 4),
+   MCFGPF(QSPI, 24, 4),
+   MCFGPF(TIMER, 32, 4),
+   MCFGPF(UART, 40, 8),
+   MCFGPF(FECH, 48, 8),
+   MCFGPF(FECL, 56, 8),
+};
+
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
 
 /***/
 
diff --git a/arch/m68k/platform/520x/gpio.c b/arch/m68k/platform/520x/gpio.c
deleted file mode 100644
index 49387c3..000
--- a/arch/m68k/platform/520x/gpio.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Coldfire generic GPIO support
- *
- * (C) Copyright 2009, Steven King 
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
-*/
-
-#include 
-#include 
-
-#include 
-#include 
-#include 
-
-struct mcf_gpio_chip mcf_gpio_chips[] = {
-   MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
-   MCFGPF(CS, 9, 3),
-   MCFGPF(FECI2C, 16, 4),
-   MCFGPF(QSPI, 24, 4),
-   MCFGPF(TIMER, 32, 4),
-   MCFGPF(UART, 40, 8),
-   MCFGPF(FECH, 48, 8),
-   MCFGPF(FECL, 56, 8),
-};
-
-unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 12/22] m68knommu: make duplicated ColdFire GPIO init code common for all

2012-04-25 Thread gerg
From: Greg Ungerer 

The code that adds each ColdFire platforms GPIO signals is duplicated in
each platforms specific code. Remove it from each platforms code and put
a single version in the existing ColdFire gpio subsystem init code.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/include/asm/mcfgpio.h|3 +++
 arch/m68k/platform/5206/gpio.c |   12 ++--
 arch/m68k/platform/520x/gpio.c |   12 ++--
 arch/m68k/platform/523x/gpio.c |   12 ++--
 arch/m68k/platform/5249/gpio.c |   12 ++--
 arch/m68k/platform/5272/gpio.c |   12 ++--
 arch/m68k/platform/527x/gpio.c |   12 ++--
 arch/m68k/platform/528x/gpio.c |   12 ++--
 arch/m68k/platform/5307/gpio.c |   12 ++--
 arch/m68k/platform/532x/gpio.c |   12 ++--
 arch/m68k/platform/5407/gpio.c |   12 ++--
 arch/m68k/platform/coldfire/gpio.c |4 
 12 files changed, 27 insertions(+), 100 deletions(-)

diff --git a/arch/m68k/include/asm/mcfgpio.h b/arch/m68k/include/asm/mcfgpio.h
index 148f56a..f0e3938 100644
--- a/arch/m68k/include/asm/mcfgpio.h
+++ b/arch/m68k/include/asm/mcfgpio.h
@@ -29,6 +29,9 @@ struct mcf_gpio_chip {
const u8 *gpio_to_pinmux;
 };
 
+extern struct mcf_gpio_chip mcf_gpio_chips[];
+extern unsigned int mcf_gpio_chips_size;
+
 int mcf_gpio_direction_input(struct gpio_chip *, unsigned);
 int mcf_gpio_get_value(struct gpio_chip *, unsigned);
 int mcf_gpio_direction_output(struct gpio_chip *, unsigned, int);
diff --git a/arch/m68k/platform/5206/gpio.c b/arch/m68k/platform/5206/gpio.c
index 200a7ac..a652f8e 100644
--- a/arch/m68k/platform/5206/gpio.c
+++ b/arch/m68k/platform/5206/gpio.c
@@ -20,16 +20,8 @@
 #include 
 #include 
 
-static struct mcf_gpio_chip mcf_gpio_chips[] = {
+struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(PP, 0, 8, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
 };
 
-static int __init mcf_gpio_init(void)
-{
-   unsigned i = 0;
-   while (i < ARRAY_SIZE(mcf_gpio_chips))
-   (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]);
-   return 0;
-}
-
-core_initcall(mcf_gpio_init);
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
diff --git a/arch/m68k/platform/520x/gpio.c b/arch/m68k/platform/520x/gpio.c
index 96b3685..49387c3 100644
--- a/arch/m68k/platform/520x/gpio.c
+++ b/arch/m68k/platform/520x/gpio.c
@@ -20,7 +20,7 @@
 #include 
 #include 
 
-static struct mcf_gpio_chip mcf_gpio_chips[] = {
+struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(PIRQ, 0, 8, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
MCFGPF(CS, 9, 3),
MCFGPF(FECI2C, 16, 4),
@@ -31,12 +31,4 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPF(FECL, 56, 8),
 };
 
-static int __init mcf_gpio_init(void)
-{
-   unsigned i = 0;
-   while (i < ARRAY_SIZE(mcf_gpio_chips))
-   (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]);
-   return 0;
-}
-
-core_initcall(mcf_gpio_init);
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
diff --git a/arch/m68k/platform/523x/gpio.c b/arch/m68k/platform/523x/gpio.c
index 8e6e30e..07806eb 100644
--- a/arch/m68k/platform/523x/gpio.c
+++ b/arch/m68k/platform/523x/gpio.c
@@ -20,7 +20,7 @@
 #include 
 #include 
 
-static struct mcf_gpio_chip mcf_gpio_chips[] = {
+struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(PIRQ, 1, 7, MCFEPORT_EPDDR, MCFEPORT_EPDR, MCFEPORT_EPPDR),
MCFGPF(ADDR, 13, 3),
MCFGPF(DATAH, 16, 8),
@@ -37,12 +37,4 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPF(ETPU, 104, 3),
 };
 
-static int __init mcf_gpio_init(void)
-{
-   unsigned i = 0;
-   while (i < ARRAY_SIZE(mcf_gpio_chips))
-   (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]);
-   return 0;
-}
-
-core_initcall(mcf_gpio_init);
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
diff --git a/arch/m68k/platform/5249/gpio.c b/arch/m68k/platform/5249/gpio.c
index 775d618..422e45f 100644
--- a/arch/m68k/platform/5249/gpio.c
+++ b/arch/m68k/platform/5249/gpio.c
@@ -20,17 +20,9 @@
 #include 
 #include 
 
-static struct mcf_gpio_chip mcf_gpio_chips[] = {
+struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(GPIO0, 0, 32, MCFSIM2_GPIOENABLE, MCFSIM2_GPIOWRITE, 
MCFSIM2_GPIOREAD),
MCFGPS(GPIO1, 32, 32, MCFSIM2_GPIO1ENABLE, MCFSIM2_GPIO1WRITE, 
MCFSIM2_GPIO1READ),
 };
 
-static int __init mcf_gpio_init(void)
-{
-   unsigned i = 0;
-   while (i < ARRAY_SIZE(mcf_gpio_chips))
-   (void)gpiochip_add((struct gpio_chip *)&mcf_gpio_chips[i++]);
-   return 0;
-}
-
-core_initcall(mcf_gpio_init);
+unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
diff --git a/arch/m68k/platform/5272/gpio.c b/arch/m68k/platform/5272/gpio.c
index 91358b8..c029dab 100644
--- a/arch/m68k/platform/5272/gpio.c
+++ b/arch/m68k/platform/5272/gpio.c
@@ -20,18 +20,10 @@
 #include 
 #include 
 
-static struct mcf_g

[uClinux-dev] [PATCH 11/22] m68knommu: switch to GPIO init macros in ColdFire 532x init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/532x/gpio.c |  320 ++-
 1 files changed, 17 insertions(+), 303 deletions(-)

diff --git a/arch/m68k/platform/532x/gpio.c b/arch/m68k/platform/532x/gpio.c
index 212a85d..9454c65 100644
--- a/arch/m68k/platform/532x/gpio.c
+++ b/arch/m68k/platform/532x/gpio.c
@@ -21,309 +21,23 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PIRQ",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFEPORT_EPDDR,
-   .podr   = (void __iomem *) 
MCFEPORT_EPDR,
-   .ppdr   = (void __iomem *) 
MCFEPORT_EPPDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "FECH",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 8,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_FECH,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_FECH,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECH,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECH,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_FECH,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "FECL",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 16,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_FECL,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_FECL,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECL,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECL,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_FECL,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "SSI",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 24,
-   .ngpio  = 5,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_SSI,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_SSI,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_SSI,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_SSI,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_SSI,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "BUSCTL",
-   .request 

[uClinux-dev] [PATCH 09/22] m68knommu: switch to GPIO init macros in ColdFire 5307 init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5307/gpio.c |   16 +---
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/arch/m68k/platform/5307/gpio.c b/arch/m68k/platform/5307/gpio.c
index 5850612..91d0420 100644
--- a/arch/m68k/platform/5307/gpio.c
+++ b/arch/m68k/platform/5307/gpio.c
@@ -21,21 +21,7 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PP",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 16,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PADDR,
-   .podr   = (void __iomem *) MCFSIM_PADAT,
-   .ppdr   = (void __iomem *) MCFSIM_PADAT,
-   },
+   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
 };
 
 static int __init mcf_gpio_init(void)
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 08/22] m68knommu: switch to GPIO init macros in ColdFire 528x init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

We also need to rename some of the GPIO registers to be consistent with
all other ColdFire parts (we can't use the new GPIO macros otherwise).

Signed-off-by: Greg Ungerer 
---
 arch/m68k/include/asm/m528xsim.h |  179 +++-
 arch/m68k/platform/528x/gpio.c   |  427 ++
 2 files changed, 103 insertions(+), 503 deletions(-)

diff --git a/arch/m68k/include/asm/m528xsim.h b/arch/m68k/include/asm/m528xsim.h
index 569476f..d63b99f 100644
--- a/arch/m68k/include/asm/m528xsim.h
+++ b/arch/m68k/include/asm/m528xsim.h
@@ -97,100 +97,81 @@
 /*
  * GPIO registers
  */
-#define MCFGPIO_PORTA  (MCF_IPSBAR + 0x0010)
-#define MCFGPIO_PORTB  (MCF_IPSBAR + 0x0011)
-#define MCFGPIO_PORTC  (MCF_IPSBAR + 0x0012)
-#define MCFGPIO_PORTD  (MCF_IPSBAR + 0x0013)
-#define MCFGPIO_PORTE  (MCF_IPSBAR + 0x0014)
-#define MCFGPIO_PORTF  (MCF_IPSBAR + 0x0015)
-#define MCFGPIO_PORTG  (MCF_IPSBAR + 0x0016)
-#define MCFGPIO_PORTH  (MCF_IPSBAR + 0x0017)
-#define MCFGPIO_PORTJ  (MCF_IPSBAR + 0x0018)
-#define MCFGPIO_PORTDD (MCF_IPSBAR + 0x0019)
-#define MCFGPIO_PORTEH (MCF_IPSBAR + 0x001A)
-#define MCFGPIO_PORTEL (MCF_IPSBAR + 0x001B)
-#define MCFGPIO_PORTAS (MCF_IPSBAR + 0x001C)
-#define MCFGPIO_PORTQS (MCF_IPSBAR + 0x001D)
-#define MCFGPIO_PORTSD (MCF_IPSBAR + 0x001E)
-#define MCFGPIO_PORTTC (MCF_IPSBAR + 0x001F)
-#define MCFGPIO_PORTTD (MCF_IPSBAR + 0x00100010)
-#define MCFGPIO_PORTUA (MCF_IPSBAR + 0x00100011)
-
-#define MCFGPIO_DDRA   (MCF_IPSBAR + 0x00100014)
-#define MCFGPIO_DDRB   (MCF_IPSBAR + 0x00100015)
-#define MCFGPIO_DDRC   (MCF_IPSBAR + 0x00100016)
-#define MCFGPIO_DDRD   (MCF_IPSBAR + 0x00100017)
-#define MCFGPIO_DDRE   (MCF_IPSBAR + 0x00100018)
-#define MCFGPIO_DDRF   (MCF_IPSBAR + 0x00100019)
-#define MCFGPIO_DDRG   (MCF_IPSBAR + 0x0010001A)
-#define MCFGPIO_DDRH   (MCF_IPSBAR + 0x0010001B)
-#define MCFGPIO_DDRJ   (MCF_IPSBAR + 0x0010001C)
-#define MCFGPIO_DDRDD  (MCF_IPSBAR + 0x0010001D)
-#define MCFGPIO_DDREH  (MCF_IPSBAR + 0x0010001E)
-#define MCFGPIO_DDREL  (MCF_IPSBAR + 0x0010001F)
-#define MCFGPIO_DDRAS  (MCF_IPSBAR + 0x00100020)
-#define MCFGPIO_DDRQS  (MCF_IPSBAR + 0x00100021)
-#define MCFGPIO_DDRSD  (MCF_IPSBAR + 0x00100022)
-#define MCFGPIO_DDRTC  (MCF_IPSBAR + 0x00100023)
-#define MCFGPIO_DDRTD  (MCF_IPSBAR + 0x00100024)
-#define MCFGPIO_DDRUA  (MCF_IPSBAR + 0x00100025)
-
-#define MCFGPIO_PORTAP (MCF_IPSBAR + 0x00100028)
-#define MCFGPIO_PORTBP (MCF_IPSBAR + 0x00100029)
-#define MCFGPIO_PORTCP (MCF_IPSBAR + 0x0010002A)
-#define MCFGPIO_PORTDP (MCF_IPSBAR + 0x0010002B)
-#define MCFGPIO_PORTEP (MCF_IPSBAR + 0x0010002C)
-#define MCFGPIO_PORTFP (MCF_IPSBAR + 0x0010002D)
-#define MCFGPIO_PORTGP (MCF_IPSBAR + 0x0010002E)
-#define MCFGPIO_PORTHP (MCF_IPSBAR + 0x0010002F)
-#define MCFGPIO_PORTJP (MCF_IPSBAR + 0x00100030)
-#define MCFGPIO_PORTDDP(MCF_IPSBAR + 0x00100031)
-#define MCFGPIO_PORTEHP(MCF_IPSBAR + 0x00100032)
-#define MCFGPIO_PORTELP(MCF_IPSBAR + 0x00100033)
-#define MCFGPIO_PORTASP(MCF_IPSBAR + 0x00100034)
-#define MCFGPIO_PORTQSP(MCF_IPSBAR + 0x00100035)
-#define MCFGPIO_PORTSDP(MCF_IPSBAR + 0x00100036)
-#define MCFGPIO_PORTTCP(MCF_IPSBAR + 0x00100037)
-#define MCFGPIO_PORTTDP(MCF_IPSBAR + 0x00100038)
-#define MCFGPIO_PORTUAP(MCF_IPSBAR + 0x00100039)
-
-#define MCFGPIO_SETA   (MCF_IPSBAR + 0x00100028)
-#define MCFGPIO_SETB   (MCF_IPSBAR + 0x00100029)
-#define MCFGPIO_SETC   (MCF_IPSBAR + 0x0010002A)
-#define MCFGPIO_SETD   (MCF_IPSBAR + 0x0010002B)
-#define MCFGPIO_SETE   (MCF_IPSBAR + 0x0010002C)
-#define MCFGPIO_SETF   (MCF_IPSBAR + 0x0010002D)
-#define MCFGPIO_SETG   (MCF_IPSBAR + 0x0010002E)
-#define MCFGPIO_SETH   (MCF_IPSBAR + 0x0010002F)
-#define MCFGPIO_SETJ   (MCF_IPSBAR + 0x00100030)
-#define MCFGPIO_SETDD  (MCF_IPSBAR + 0x00100031)
-#define MCFGPIO_SETEH  (MCF_IPSBAR + 0x00100032)
-#define MCFGPIO_SETEL  (MCF_IPSBAR + 0x00100033)
-#define MCFGPIO_SETAS  (MCF_IPSBAR + 0x00100034)
-#define MCFGPIO_SETQS  (MCF_IPSBAR + 0x00100035)
-#define MCFGPIO_SETSD  (MCF_IPSBAR + 0x00100036)
-#define MCFGPIO_SETTC  (MCF_IPSBAR + 0x00100037)
-#define MCFGPIO_SETTD  (MCF_IPSBAR + 0x00100038)
-#define MCFGPIO_SETUA  (MCF_IPSBAR

[uClinux-dev] [PATCH 10/22] m68knommu: switch to GPIO init macros in ColdFire 5407 init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5407/gpio.c |   16 +---
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/arch/m68k/platform/5407/gpio.c b/arch/m68k/platform/5407/gpio.c
index 5850612..91d0420 100644
--- a/arch/m68k/platform/5407/gpio.c
+++ b/arch/m68k/platform/5407/gpio.c
@@ -21,21 +21,7 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PP",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 16,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PADDR,
-   .podr   = (void __iomem *) MCFSIM_PADAT,
-   .ppdr   = (void __iomem *) MCFSIM_PADAT,
-   },
+   MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
 };
 
 static int __init mcf_gpio_init(void)
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 07/22] m68knommu: switch to GPIO init macros in ColdFire 527x init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/527x/gpio.c |  604 +++-
 1 files changed, 32 insertions(+), 572 deletions(-)

diff --git a/arch/m68k/platform/527x/gpio.c b/arch/m68k/platform/527x/gpio.c
index 205da0a..b612a63 100644
--- a/arch/m68k/platform/527x/gpio.c
+++ b/arch/m68k/platform/527x/gpio.c
@@ -22,579 +22,39 @@
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
 #if defined(CONFIG_M5271)
-   {
-   .gpio_chip  = {
-   .label  = "PIRQ",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .base   = 1,
-   .ngpio  = 7,
-   },
-   .pddr   = (void __iomem *) 
MCFEPORT_EPDDR,
-   .podr   = (void __iomem *) 
MCFEPORT_EPDR,
-   .ppdr   = (void __iomem *) 
MCFEPORT_EPPDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "ADDR",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 13,
-   .ngpio  = 3,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_ADDR,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_ADDR,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_ADDR,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_ADDR,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_ADDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "DATAH",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 16,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_DATAH,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_DATAH,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAH,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAH,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_DATAH,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "DATAL",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 24,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_DATAL,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_DATAL,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAL,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAL,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_DATAL,
-   },
-   {
-   .gpio_chip  = {
-   

[uClinux-dev] [PATCH 05/22] m68knommu: switch to GPIO init macros in ColdFire 5249 init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5249/gpio.c |   33 ++---
 1 files changed, 2 insertions(+), 31 deletions(-)

diff --git a/arch/m68k/platform/5249/gpio.c b/arch/m68k/platform/5249/gpio.c
index 2b56c6e..775d618 100644
--- a/arch/m68k/platform/5249/gpio.c
+++ b/arch/m68k/platform/5249/gpio.c
@@ -21,37 +21,8 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "GPIO0",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 32,
-   },
-   .pddr   = (void __iomem *) 
MCFSIM2_GPIOENABLE,
-   .podr   = (void __iomem *) 
MCFSIM2_GPIOWRITE,
-   .ppdr   = (void __iomem *) 
MCFSIM2_GPIOREAD,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "GPIO1",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .base   = 32,
-   .ngpio  = 32,
-   },
-   .pddr   = (void __iomem *) 
MCFSIM2_GPIO1ENABLE,
-   .podr   = (void __iomem *) 
MCFSIM2_GPIO1WRITE,
-   .ppdr   = (void __iomem *) 
MCFSIM2_GPIO1READ,
-   },
+   MCFGPS(GPIO0, 0, 32, MCFSIM2_GPIOENABLE, MCFSIM2_GPIOWRITE, 
MCFSIM2_GPIOREAD),
+   MCFGPS(GPIO1, 32, 32, MCFSIM2_GPIO1ENABLE, MCFSIM2_GPIO1WRITE, 
MCFSIM2_GPIO1READ),
 };
 
 static int __init mcf_gpio_init(void)
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 06/22] m68knommu: switch to GPIO init macros in ColdFire 5272 init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5272/gpio.c |   50 ++-
 1 files changed, 3 insertions(+), 47 deletions(-)

diff --git a/arch/m68k/platform/5272/gpio.c b/arch/m68k/platform/5272/gpio.c
index 57ac10a..91358b8 100644
--- a/arch/m68k/platform/5272/gpio.c
+++ b/arch/m68k/platform/5272/gpio.c
@@ -21,53 +21,9 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PA",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 16,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PADDR,
-   .podr   = (void __iomem *) MCFSIM_PADAT,
-   .ppdr   = (void __iomem *) MCFSIM_PADAT,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "PB",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .base   = 16,
-   .ngpio  = 16,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PBDDR,
-   .podr   = (void __iomem *) MCFSIM_PBDAT,
-   .ppdr   = (void __iomem *) MCFSIM_PBDAT,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "PC",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .base   = 32,
-   .ngpio  = 16,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PCDDR,
-   .podr   = (void __iomem *) MCFSIM_PCDAT,
-   .ppdr   = (void __iomem *) MCFSIM_PCDAT,
-   },
+   MCFGPS(PA,  0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
+   MCFGPS(PB, 16, 16, MCFSIM_PBDDR, MCFSIM_PBDAT, MCFSIM_PBDAT),
+   MCFGPS(Pc, 32, 16, MCFSIM_PCDDR, MCFSIM_PCDAT, MCFSIM_PCDAT),
 };
 
 static int __init mcf_gpio_init(void)
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 04/22] m68knommu: switch to GPIO init macros in ColdFire 523x init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/523x/gpio.c |  264 ++-
 1 files changed, 14 insertions(+), 250 deletions(-)

diff --git a/arch/m68k/platform/523x/gpio.c b/arch/m68k/platform/523x/gpio.c
index 327ebf1..8e6e30e 100644
--- a/arch/m68k/platform/523x/gpio.c
+++ b/arch/m68k/platform/523x/gpio.c
@@ -21,256 +21,20 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PIRQ",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .base   = 1,
-   .ngpio  = 7,
-   },
-   .pddr   = (void __iomem *) 
MCFEPORT_EPDDR,
-   .podr   = (void __iomem *) 
MCFEPORT_EPDR,
-   .ppdr   = (void __iomem *) 
MCFEPORT_EPPDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "ADDR",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 13,
-   .ngpio  = 3,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_ADDR,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_ADDR,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_ADDR,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_ADDR,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_ADDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "DATAH",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 16,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_DATAH,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_DATAH,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAH,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAH,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_DATAH,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "DATAL",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 24,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_DATAL,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_DATAL,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAL,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_DATAL,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_DATAL,
-   },
-   {
-   .gpio_chip  = {
-   .labe

[uClinux-dev] [PATCH 01/22] m68knommu: introduce macros to simplify ColdFire GPIO table initialization

2012-04-25 Thread gerg
From: Greg Ungerer 

We have very large tables in the ColdFire CPU GPIO setup code that essentially
boil down to 2 distinct types of GPIO pin initiaization. Using 2 macros we can
reduce these large tables to at most a dozen lines of setup code, and in quite
a few cases a single table entry.

Introduce these 2 macros into the existing mcfgpio.h header.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/include/asm/mcfgpio.h |   41 +++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/include/asm/mcfgpio.h b/arch/m68k/include/asm/mcfgpio.h
index ee5e4cc..148f56a 100644
--- a/arch/m68k/include/asm/mcfgpio.h
+++ b/arch/m68k/include/asm/mcfgpio.h
@@ -37,4 +37,45 @@ void mcf_gpio_set_value_fast(struct gpio_chip *, unsigned, 
int);
 int mcf_gpio_request(struct gpio_chip *, unsigned);
 void mcf_gpio_free(struct gpio_chip *, unsigned);
 
+/*
+ * Define macros to ease the pain of setting up the gpio tables.
+ */
+#defineMCFGPS(mlabel, mbase, mngpio, mpddr, mpodr, mppdr)  
\
+   {   \
+   .gpio_chip  = { \
+   .label  = #mlabel,  \
+   .request= mcf_gpio_request, \
+   .free   = mcf_gpio_free,\
+   .direction_input= mcf_gpio_direction_input, \
+   .direction_output   = mcf_gpio_direction_output,\
+   .get= mcf_gpio_get_value,   \
+   .set= mcf_gpio_set_value,   \
+   .base   = mbase,\
+   .ngpio  = mngpio,   \
+   },  \
+   .pddr   = (void __iomem *) mpddr,   \
+   .podr   = (void __iomem *) mpodr,   \
+   .ppdr   = (void __iomem *) mppdr,   \
+   }
+
+#defineMCFGPF(mlabel, mbase, mngpio)   
\
+   {   \
+   .gpio_chip  = { \
+   .label  = #mlabel,  \
+   .request= mcf_gpio_request, \
+   .free   = mcf_gpio_free,\
+   .direction_input= mcf_gpio_direction_input, \
+   .direction_output   = mcf_gpio_direction_output,\
+   .get= mcf_gpio_get_value,   \
+   .set= mcf_gpio_set_value_fast,  \
+   .base   = mbase,\
+   .ngpio  = mngpio,   \
+   },  \
+   .pddr   = (void __iomem *) MCFGPIO_PDDR_##mlabel,   \
+   .podr   = (void __iomem *) MCFGPIO_PODR_##mlabel,   \
+   .ppdr   = (void __iomem *) MCFGPIO_PPDSDR_##mlabel, \
+   .setr   = (void __iomem *) MCFGPIO_PPDSDR_##mlabel, \
+   .clrr   = (void __iomem *) MCFGPIO_PCLRR_##mlabel,  \
+   }
+
 #endif
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 00/22] m68knommu: simplify ColdFire GPIO init code

2012-04-25 Thread gerg
The GPIO init code for the ColdFire cores is a set of very large tables,
one for each ColdFire SoC type. Each SoC type has very different GPIO pin
arrangements, so one for each is unavoidable. But there is fundamentaly
two types of setup/access that we are trying to support.

With some pre-processor macro magic we can reduce the tables significantly,
making them easier to read, easier to get correct, and easier to maintain.

The following patches implement a set of simplifying changes. What do
others think?  Overall we remove close to 2000 lines of code, and the end
tables are much easier to read and get correct.

Looking for feedback...

Regards
Greg


 a/arch/m68k/platform/5206/gpio.c |   27 -
 a/arch/m68k/platform/520x/gpio.c |   34 -
 a/arch/m68k/platform/523x/gpio.c |   40 --
 a/arch/m68k/platform/5249/gpio.c |   28 -
 a/arch/m68k/platform/5272/gpio.c |   29 -
 a/arch/m68k/platform/527x/gpio.c |   61 ---
 a/arch/m68k/platform/528x/gpio.c |   49 --
 a/arch/m68k/platform/5307/gpio.c |   27 -
 a/arch/m68k/platform/532x/gpio.c |   43 --
 a/arch/m68k/platform/5407/gpio.c |   27 -
 arch/m68k/include/asm/mcfgpio.h  |3 
 arch/m68k/platform/5206/gpio.c   |   12 
 arch/m68k/platform/520x/gpio.c   |   12 
 arch/m68k/platform/523x/gpio.c   |   12 
 arch/m68k/platform/5249/gpio.c   |   12 
 arch/m68k/platform/5272/gpio.c   |   12 
 arch/m68k/platform/527x/gpio.c   |   12 
 arch/m68k/platform/528x/gpio.c   |   12 
 arch/m68k/platform/5307/gpio.c   |   12 
 arch/m68k/platform/532x/gpio.c   |   12 
 arch/m68k/platform/5407/gpio.c   |   12 
 b/arch/m68k/include/asm/m528xsim.h   |  179 --
 b/arch/m68k/include/asm/mcfgpio.h|   41 ++
 b/arch/m68k/platform/5206/Makefile   |2 
 b/arch/m68k/platform/5206/config.c   |9 
 b/arch/m68k/platform/5206/gpio.c |   16 
 b/arch/m68k/platform/520x/Makefile   |2 
 b/arch/m68k/platform/520x/config.c   |   16 
 b/arch/m68k/platform/520x/gpio.c |  149 
 b/arch/m68k/platform/523x/Makefile   |2 
 b/arch/m68k/platform/523x/config.c   |   22 +
 b/arch/m68k/platform/523x/gpio.c |  264 ---
 b/arch/m68k/platform/5249/Makefile   |2 
 b/arch/m68k/platform/5249/config.c   |   10 
 b/arch/m68k/platform/5249/gpio.c |   33 -
 b/arch/m68k/platform/5272/Makefile   |2 
 b/arch/m68k/platform/5272/config.c   |   11 
 b/arch/m68k/platform/5272/gpio.c |   50 --
 b/arch/m68k/platform/527x/Makefile   |2 
 b/arch/m68k/platform/527x/config.c   |   43 ++
 b/arch/m68k/platform/527x/gpio.c |  604 +--
 b/arch/m68k/platform/528x/Makefile   |2 
 b/arch/m68k/platform/528x/config.c   |   31 +
 b/arch/m68k/platform/528x/gpio.c |  427 +---
 b/arch/m68k/platform/5307/Makefile   |2 
 b/arch/m68k/platform/5307/config.c   |9 
 b/arch/m68k/platform/5307/gpio.c |   16 
 b/arch/m68k/platform/532x/Makefile   |2 
 b/arch/m68k/platform/532x/config.c   |   25 +
 b/arch/m68k/platform/532x/gpio.c |  320 --
 b/arch/m68k/platform/5407/Makefile   |2 
 b/arch/m68k/platform/5407/config.c   |9 
 b/arch/m68k/platform/5407/gpio.c |   16 
 b/arch/m68k/platform/coldfire/gpio.c |4 
 54 files changed, 445 insertions(+), 2367 deletions(-)

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 02/22] m68knommu: switch to GPIO init macros in ColdFire 5206 init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/5206/gpio.c |   16 +---
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/arch/m68k/platform/5206/gpio.c b/arch/m68k/platform/5206/gpio.c
index b9ab4a1..200a7ac 100644
--- a/arch/m68k/platform/5206/gpio.c
+++ b/arch/m68k/platform/5206/gpio.c
@@ -21,21 +21,7 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PP",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) MCFSIM_PADDR,
-   .podr   = (void __iomem *) MCFSIM_PADAT,
-   .ppdr   = (void __iomem *) MCFSIM_PADAT,
-   },
+   MCFGPS(PP, 0, 8, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
 };
 
 static int __init mcf_gpio_init(void)
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH 03/22] m68knommu: switch to GPIO init macros in ColdFire 520x init code

2012-04-25 Thread gerg
From: Greg Ungerer 

Modify the GPIO setup table to use the mcfgpio.h macros for table init.
Simplifies code and reduces line count significantly.

Signed-off-by: Greg Ungerer 
---
 arch/m68k/platform/520x/gpio.c |  149 ++-
 1 files changed, 8 insertions(+), 141 deletions(-)

diff --git a/arch/m68k/platform/520x/gpio.c b/arch/m68k/platform/520x/gpio.c
index 9bcc3e4..96b3685 100644
--- a/arch/m68k/platform/520x/gpio.c
+++ b/arch/m68k/platform/520x/gpio.c
@@ -21,147 +21,14 @@
 #include 
 
 static struct mcf_gpio_chip mcf_gpio_chips[] = {
-   {
-   .gpio_chip  = {
-   .label  = "PIRQ",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value,
-   .ngpio  = 8,
-   },
-   .pddr   = (void __iomem *) 
MCFEPORT_EPDDR,
-   .podr   = (void __iomem *) 
MCFEPORT_EPDR,
-   .ppdr   = (void __iomem *) 
MCFEPORT_EPPDR,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "CS",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 9,
-   .ngpio  = 3,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_CS,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_CS,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_CS,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_CS,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_CS,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "FECI2C",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 16,
-   .ngpio  = 4,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_FECI2C,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_FECI2C,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECI2C,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_FECI2C,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_FECI2C,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "QSPI",
-   .request= mcf_gpio_request,
-   .free   = mcf_gpio_free,
-   .direction_input= mcf_gpio_direction_input,
-   .direction_output   = mcf_gpio_direction_output,
-   .get= mcf_gpio_get_value,
-   .set= mcf_gpio_set_value_fast,
-   .base   = 24,
-   .ngpio  = 4,
-   },
-   .pddr   = (void __iomem *) 
MCFGPIO_PDDR_QSPI,
-   .podr   = (void __iomem *) 
MCFGPIO_PODR_QSPI,
-   .ppdr   = (void __iomem *) 
MCFGPIO_PPDSDR_QSPI,
-   .setr   = (void __iomem *) 
MCFGPIO_PPDSDR_QSPI,
-   .clrr   = (void __iomem *) 
MCFGPIO_PCLRR_QSPI,
-   },
-   {
-   .gpio_chip  = {
-   .label  = "TIMER",
-   .request 

Re: [uClinux-dev] Minor web page updates

2012-04-25 Thread Greg Ungerer

Hi Michael,

On 04/25/2012 02:57 AM, Michael Durrant wrote:

I have recently updated the front page of the www.uClinux.org web site with the 
links to the your most recent uClinux-dist dates.  Do let me know if you have 
any other updates.


Thanks, it looks good. I am finally into a fairly regular release
process now. A few weeks after each new v3.x kernel is released I
release a new uClinux-dist package.



As well if you know of any photos of devices running uClinux do forward me the 
links / photos and I will post them of the site as well.


Will do. I am sure the many happy list readers will be able to give
some pointers too :-)

Thanks for getting the list back online, and for all the efforts of
maintaining it!

Regards
Greg



Greg Ungerer  --  Principal EngineerEMAIL: g...@snapgear.com
SnapGear Group, McAfee  PHONE:   +61 7 3435 2888
8 Gardner Close,FAX: +61 7 3891 3630
Milton, QLD, 4064, AustraliaWEB: http://www.SnapGear.com
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev