[PATCH v2] Prepare to add more Samsung S3C CPUs to barebox
Juergen Beisert
jbe at pengutronix.de
Mon Jan 2 06:43:48 EST 2012
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%)
More information about the barebox
mailing list