linux-mips
[Top] [All Lists]

[PATCH 0/3] Alchemy: platform updates

To: Linux-MIPS <linux-mips@linux-mips.org>
Subject: [PATCH 0/3] Alchemy: platform updates
From: Manuel Lauss <mano@roarinelk.homelinux.net>
Date: Sun, 29 Mar 2009 11:26:59 +0200
Cc: Manuel Lauss <mano@roarinelk.homelinux.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hello!

Patch overview:

#1: eliminate alchemy/common/platform.c.  Add platform device
    registration to all boards instead.

    I realize this is a lot of (needless) code duplication at first,
    but it seems a lot cleaner to me if each board registered the
    devices it needs/wants.

#2: platform au1xxx-rtc device for all devboards with 32kHz crystal.

#3: eliminate the alchemy-flash MTD map driver; add physmap-flash
    platform devices to each devboard.


I have 4 more patches which convert a few drivers to platform_devices
(irda and au1000-ac97c alsa) which (in part) depend on these.

Compile-tested on all boards touched by these patches; run-tested on
the DB1200 only.  If anyone has access to the other boards, please test
and report bugs to me!

Thanks!
        Manuel Lauss

--- 

Manuel Lauss (3):
  Alchemy: get rid of common/platform.c
  Alchemy: add RTC device to devboards
  Alchemy: convert to physmap flash

 arch/mips/alchemy/common/Makefile             |    4 +-
 arch/mips/alchemy/common/platform.c           |  369 -------------------------
 arch/mips/alchemy/devboards/db1x00/Makefile   |    2 +-
 arch/mips/alchemy/devboards/db1x00/platform.c |  247 +++++++++++++++++
 arch/mips/alchemy/devboards/pb1000/Makefile   |    2 +-
 arch/mips/alchemy/devboards/pb1000/platform.c |  144 ++++++++++
 arch/mips/alchemy/devboards/pb1100/Makefile   |    2 +-
 arch/mips/alchemy/devboards/pb1100/platform.c |  171 ++++++++++++
 arch/mips/alchemy/devboards/pb1200/platform.c |  249 +++++++++++++++++-
 arch/mips/alchemy/devboards/pb1500/Makefile   |    2 +-
 arch/mips/alchemy/devboards/pb1500/platform.c |  142 ++++++++++
 arch/mips/alchemy/devboards/pb1550/Makefile   |    2 +-
 arch/mips/alchemy/devboards/pb1550/platform.c |  160 +++++++++++
 arch/mips/alchemy/mtx-1/platform.c            |   64 +++++
 arch/mips/alchemy/xxs1500/Makefile            |    3 +-
 arch/mips/alchemy/xxs1500/platform.c          |   87 ++++++
 drivers/mtd/maps/Kconfig                      |    6 -
 drivers/mtd/maps/Makefile                     |    1 -
 drivers/mtd/maps/alchemy-flash.c              |  166 -----------
 19 files changed, 1272 insertions(+), 551 deletions(-)
 delete mode 100644 arch/mips/alchemy/common/platform.c
 create mode 100644 arch/mips/alchemy/devboards/db1x00/platform.c
 create mode 100644 arch/mips/alchemy/devboards/pb1000/platform.c
 create mode 100644 arch/mips/alchemy/devboards/pb1100/platform.c
 create mode 100644 arch/mips/alchemy/devboards/pb1500/platform.c
 create mode 100644 arch/mips/alchemy/devboards/pb1550/platform.c
 create mode 100644 arch/mips/alchemy/xxs1500/platform.c
 delete mode 100644 drivers/mtd/maps/alchemy-flash.c


<Prev in Thread] Current Thread [Next in Thread>