mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH v2] Prepare to add more Samsung S3C CPUs to barebox
Date: Mon,  2 Jan 2012 12:43:48 +0100	[thread overview]
Message-ID: <1325504642-9324-1-git-send-email-jbe@pengutronix.de> (raw)

This patch series makes the current Samsung S3C24XX CPU and platform support
more generic to be able to add Samsung's more recent S3C CPUs (S3C64XX for
example). Some drivers can be shared between members in the S3C family of
processors, so the drivers get a s3c in their names to reflect it. But some
parts stick to their processor. To avoid an ifdef hell, I moved these parts
into separte files.

Comments are welcome.

The only change on v2 is a rebase to the current 'next' and sending with the
"-M" param (forgotten last time).

The following changes since commit 6bef2778f1350cc8ebe40edb205d949990b33077:

  drivers/mtd: add docg3 chip (2012-01-02 12:34:58 +0100)

are available in the git repository at:
  . move_s3c24xx_to_samsung

Juergen Beisert (14):
      MACH SAMSUNG: Rename the whole mach to add more CPUs in future
      MACH SAMSUNG/S3C: Do not compile S3C24xx's GPIO support unconditionally
      MACH SAMSUNG/S3C: Make it more generic for future updates
      MACH SAMSUNG/S3C: Use the correct CPU family name to reflect NAND driver's usage
      MACH SAMSUNG/S3C: Parts of the SDHC driver can be shared in the S3C CPU family
      MACH SAMSUNG/S3C: Reflect the CPU name the LCD driver is for
      MACH SAMSUNG/S3C: Separate S3C24XX clock management
      MACH SAMSUNG/S3C: Separate the clocksource for the S3C family
      MACH SAMSUNG/S3C: Rename register macros to reflect the MACH they are valid for
      MACH SAMSUNG/S3C: Re-work the S3C family timer driver
      MACH SAMSUNG/S3C: Prepare watchdog unit to be shared in the S3C family
      MACH SAMSUNG/S3C: Unify the UART driver for the S3C family of CPUs
      MACH SAMSUNG/S3C: Re-work the memory detection and handling
      MACH SAMSUNG/S3C: Re-work the GPIO handling for S3C24xx CPUs

 arch/arm/Kconfig                                   |    3 +-
 arch/arm/Makefile                                  |    2 +-
 arch/arm/boards/a9m2410/a9m2410.c                  |   94 +++----
 arch/arm/boards/a9m2410/lowlevel_init.S            |    6 +-
 arch/arm/boards/a9m2440/a9m2410dev.c               |   64 +++--
 arch/arm/boards/a9m2440/a9m2440.c                  |   50 ++--
 arch/arm/boards/a9m2440/lowlevel_init.S            |   11 +-
 arch/arm/boards/mini2440/lowlevel_init.S           |    6 +-
 arch/arm/boards/mini2440/mini2440.c                |   30 +-
 arch/arm/mach-s3c24xx/Makefile                     |    2 -
 arch/arm/mach-s3c24xx/generic.c                    |  297 --------------------
 arch/arm/mach-s3c24xx/include/mach/s3c24x0-iomap.h |  177 ------------
 arch/arm/{mach-s3c24xx => mach-samsung}/Kconfig    |   17 +-
 arch/arm/mach-samsung/Makefile                     |    3 +
 arch/arm/mach-samsung/generic.c                    |  164 +++++++++++
 .../{mach-s3c24xx => mach-samsung}/gpio-s3c24x0.c  |   33 ++-
 .../include/mach/gpio.h                            |    7 +-
 .../include/mach/iomux-s3c24x0.h                   |    0
 arch/arm/mach-samsung/include/mach/s3c-busctl.h    |   32 ++
 arch/arm/mach-samsung/include/mach/s3c-clocks.h    |   31 ++
 .../include/mach/s3c-generic.h}                    |   15 +-
 arch/arm/mach-samsung/include/mach/s3c-iomap.h     |   69 +++++
 .../mci.h => mach-samsung/include/mach/s3c-mci.h}  |    0
 .../include/mach/s3c24xx-fb.h}                     |    0
 arch/arm/mach-samsung/include/mach/s3c24xx-gpio.h  |   77 +++++
 .../include/mach/s3c24xx-nand.h}                   |    0
 .../{mach-s3c24xx => mach-samsung}/lowlevel-init.S |   10 +-
 arch/arm/mach-samsung/s3c-timer.c                  |  114 ++++++++
 arch/arm/mach-samsung/s3c24xx-clocks.c             |  140 +++++++++
 drivers/mci/s3c.c                                  |   16 +-
 drivers/mtd/nand/Kconfig                           |    4 +-
 drivers/mtd/nand/Makefile                          |    2 +-
 .../mtd/nand/{nand_s3c2410.c => nand_s3c24xx.c}    |   10 +-
 drivers/serial/Kconfig                             |   10 +-
 drivers/serial/Makefile                            |    2 +-
 drivers/serial/{serial_s3c24x0.c => serial_s3c.c}  |   72 +++--
 drivers/video/Kconfig                              |    2 +-
 drivers/video/Makefile                             |    2 +-
 drivers/video/{s3c.c => s3c24xx.c}                 |   10 +-
 39 files changed, 870 insertions(+), 714 deletions(-)
 delete mode 100644 arch/arm/mach-s3c24xx/Makefile
 delete mode 100644 arch/arm/mach-s3c24xx/generic.c
 delete mode 100644 arch/arm/mach-s3c24xx/include/mach/s3c24x0-iomap.h
 rename arch/arm/{mach-s3c24xx => mach-samsung}/Kconfig (90%)
 create mode 100644 arch/arm/mach-samsung/Makefile
 create mode 100644 arch/arm/mach-samsung/generic.c
 rename arch/arm/{mach-s3c24xx => mach-samsung}/gpio-s3c24x0.c (84%)
 rename arch/arm/{mach-s3c24xx => mach-samsung}/include/mach/gpio.h (74%)
 rename arch/arm/{mach-s3c24xx => mach-samsung}/include/mach/iomux-s3c24x0.h (100%)
 create mode 100644 arch/arm/mach-samsung/include/mach/s3c-busctl.h
 create mode 100644 arch/arm/mach-samsung/include/mach/s3c-clocks.h
 rename arch/arm/{mach-s3c24xx/include/mach/s3c24xx-generic.h => mach-samsung/include/mach/s3c-generic.h} (77%)
 create mode 100644 arch/arm/mach-samsung/include/mach/s3c-iomap.h
 rename arch/arm/{mach-s3c24xx/include/mach/mci.h => mach-samsung/include/mach/s3c-mci.h} (100%)
 rename arch/arm/{mach-s3c24xx/include/mach/fb.h => mach-samsung/include/mach/s3c24xx-fb.h} (100%)
 create mode 100644 arch/arm/mach-samsung/include/mach/s3c24xx-gpio.h
 rename arch/arm/{mach-s3c24xx/include/mach/s3c24x0-nand.h => mach-samsung/include/mach/s3c24xx-nand.h} (100%)
 rename arch/arm/{mach-s3c24xx => mach-samsung}/lowlevel-init.S (98%)
 create mode 100644 arch/arm/mach-samsung/s3c-timer.c
 create mode 100644 arch/arm/mach-samsung/s3c24xx-clocks.c
 rename drivers/mtd/nand/{nand_s3c2410.c => nand_s3c24xx.c} (99%)
 rename drivers/serial/{serial_s3c24x0.c => serial_s3c.c} (67%)
 rename drivers/video/{s3c.c => s3c24xx.c} (97%)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2012-01-02 11:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-02 11:43 Juergen Beisert [this message]
2012-01-02 11:43 ` [PATCH 01/14] MACH SAMSUNG: Rename the whole mach to add more CPUs in future Juergen Beisert
2012-01-02 11:43 ` [PATCH 02/14] MACH SAMSUNG/S3C: Do not compile S3C24xx's GPIO support unconditionally Juergen Beisert
2012-01-02 11:43 ` [PATCH 03/14] MACH SAMSUNG/S3C: Make it more generic for future updates Juergen Beisert
2012-01-02 11:43 ` [PATCH 04/14] MACH SAMSUNG/S3C: Use the correct CPU family name to reflect NAND driver's usage Juergen Beisert
2012-01-02 11:43 ` [PATCH 05/14] MACH SAMSUNG/S3C: Parts of the SDHC driver can be shared in the S3C CPU family Juergen Beisert
2012-01-02 11:43 ` [PATCH 06/14] MACH SAMSUNG/S3C: Reflect the CPU name the LCD driver is for Juergen Beisert
2012-01-02 11:43 ` [PATCH 07/14] MACH SAMSUNG/S3C: Separate S3C24XX clock management Juergen Beisert
2012-01-02 11:43 ` [PATCH 08/14] MACH SAMSUNG/S3C: Separate the clocksource for the S3C family Juergen Beisert
2012-01-02 11:43 ` [PATCH 09/14] MACH SAMSUNG/S3C: Rename register macros to reflect the MACH they are valid for Juergen Beisert
2012-01-02 11:43 ` [PATCH 10/14] MACH SAMSUNG/S3C: Re-work the S3C family timer driver Juergen Beisert
2012-01-02 11:43 ` [PATCH 11/14] MACH SAMSUNG/S3C: Prepare watchdog unit to be shared in the S3C family Juergen Beisert
2012-01-02 11:44 ` [PATCH 12/14] MACH SAMSUNG/S3C: Unify the UART driver for the S3C family of CPUs Juergen Beisert
2012-01-02 11:44 ` [PATCH 13/14] MACH SAMSUNG/S3C: Re-work the memory detection and handling Juergen Beisert
2012-01-02 11:44 ` [PATCH 14/14] MACH SAMSUNG/S3C: Re-work the GPIO handling for S3C24xx CPUs Juergen Beisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1325504642-9324-1-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox