Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: S3C2440: move mach-s3c2440/* into mach-s3c24xx/

This patch moves S3C2440 stuff into mach-s3c24xx/ directory
so that we can merge the s3c24 series' directories to the
just one mach-s3c24xx/ directory.

And this patch is including following.
- re-ordered alphabetically by option text at Kconfig and Makefile

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

+191 -209
-165
arch/arm/mach-s3c2440/Kconfig
··· 2 2 # 3 3 # Licensed under GPLv2 4 4 5 - config CPU_S3C2440 6 - bool 7 - select CPU_ARM920T 8 - select S3C2410_CLOCK 9 - select S3C2410_PM if PM 10 - select S3C2440_DMA if S3C2410_DMA 11 - select CPU_S3C244X 12 - select CPU_LLSERIAL_S3C2440 13 - help 14 - Support for S3C2440 Samsung Mobile CPU based systems. 15 - 16 - config CPU_S3C2442 17 - bool 18 - select CPU_ARM920T 19 - select S3C2410_CLOCK 20 - select S3C2410_PM if PM 21 - select CPU_S3C244X 22 - select CPU_LLSERIAL_S3C2440 23 - help 24 - Support for S3C2442 Samsung Mobile CPU based systems. 25 - 26 - config CPU_S3C244X 27 - bool 28 - depends on CPU_S3C2440 || CPU_S3C2442 29 - help 30 - Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems. 31 - 32 - 33 - 34 5 config S3C2440_CPUFREQ 35 6 bool "S3C2440/S3C2442 CPU Frequency scaling support" 36 7 depends on CPU_FREQ_S3C24XX && (CPU_S3C2440 || CPU_S3C2442) ··· 35 64 default y if CPU_FREQ_S3C24XX_PLL 36 65 help 37 66 PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals. 38 - 39 - config S3C2440_DMA 40 - bool 41 - depends on CPU_S3C2440 42 - help 43 - Support for S3C2440 specific DMA code5A 44 - 45 - menu "S3C2440 and S3C2442 Machines" 46 - 47 - config MACH_ANUBIS 48 - bool "Simtec Electronics ANUBIS" 49 - select CPU_S3C2440 50 - select S3C24XX_DCLK 51 - select PM_SIMTEC if PM 52 - select HAVE_PATA_PLATFORM 53 - select S3C24XX_GPIO_EXTRA64 54 - select S3C2440_XTAL_12000000 55 - select S3C_DEV_USB_HOST 56 - help 57 - Say Y here if you are using the Simtec Electronics ANUBIS 58 - development system 59 - 60 - config MACH_NEO1973_GTA02 61 - bool "Openmoko GTA02 / Freerunner phone" 62 - select CPU_S3C2442 63 - select MFD_PCF50633 64 - select PCF50633_GPIO 65 - select I2C 66 - select POWER_SUPPLY 67 - select MACH_NEO1973 68 - select S3C2410_PWM 69 - select S3C_DEV_USB_HOST 70 - help 71 - Say Y here if you are using the Openmoko GTA02 / Freerunner GSM Phone 72 - 73 - config MACH_OSIRIS 74 - bool "Simtec IM2440D20 (OSIRIS) module" 75 - select CPU_S3C2440 76 - select S3C24XX_DCLK 77 - select PM_SIMTEC if PM 78 - select S3C24XX_GPIO_EXTRA128 79 - select S3C2440_XTAL_12000000 80 - select S3C2410_IOTIMING if S3C2440_CPUFREQ 81 - select S3C_DEV_USB_HOST 82 - select S3C_DEV_NAND 83 - help 84 - Say Y here if you are using the Simtec IM2440D20 module, also 85 - known as the Osiris. 86 - 87 - config MACH_OSIRIS_DVS 88 - tristate "Simtec IM2440D20 (OSIRIS) Dynamic Voltage Scaling driver" 89 - depends on MACH_OSIRIS 90 - select TPS65010 91 - help 92 - Say Y/M here if you want to have dynamic voltage scaling support 93 - on the Simtec IM2440D20 (OSIRIS) module via the TPS65011. 94 - 95 - The DVS driver alters the voltage supplied to the ARM core 96 - depending on the frequency it is running at. The driver itself 97 - does not do any of the frequency alteration, which is left up 98 - to the cpufreq driver. 99 - 100 - config MACH_RX3715 101 - bool "HP iPAQ rx3715" 102 - select CPU_S3C2440 103 - select S3C2440_XTAL_16934400 104 - select PM_H1940 if PM 105 - select S3C_DEV_NAND 106 - help 107 - Say Y here if you are using the HP iPAQ rx3715. 108 - 109 - config ARCH_S3C2440 110 - bool "SMDK2440" 111 - select CPU_S3C2440 112 - select S3C2440_XTAL_16934400 113 - select MACH_SMDK 114 - select S3C_DEV_USB_HOST 115 - select S3C_DEV_NAND 116 - help 117 - Say Y here if you are using the SMDK2440. 118 - 119 - config MACH_NEXCODER_2440 120 - bool "NexVision NEXCODER 2440 Light Board" 121 - select CPU_S3C2440 122 - select S3C2440_XTAL_12000000 123 - select S3C_DEV_USB_HOST 124 - select S3C_DEV_NAND 125 - help 126 - Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board 127 - 128 - config SMDK2440_CPU2440 129 - bool "SMDK2440 with S3C2440 CPU module" 130 - default y if ARCH_S3C2440 131 - select S3C2440_XTAL_16934400 132 - select CPU_S3C2440 133 - 134 - config SMDK2440_CPU2442 135 - bool "SMDM2440 with S3C2442 CPU module" 136 - select CPU_S3C2442 137 - 138 - config MACH_AT2440EVB 139 - bool "Avantech AT2440EVB development board" 140 - select CPU_S3C2440 141 - select S3C_DEV_USB_HOST 142 - select S3C_DEV_NAND 143 - help 144 - Say Y here if you are using the AT2440EVB development board 145 - 146 - config MACH_MINI2440 147 - bool "MINI2440 development board" 148 - select CPU_S3C2440 149 - select EEPROM_AT24 150 - select NEW_LEDS 151 - select LEDS_CLASS 152 - select LEDS_TRIGGER 153 - select LEDS_TRIGGER_BACKLIGHT 154 - select S3C_DEV_NAND 155 - select S3C_DEV_USB_HOST 156 - help 157 - Say Y here to select support for the MINI2440. Is a 10cm x 10cm board 158 - available via various sources. It can come with a 3.5" or 7" touch LCD. 159 - 160 - config MACH_RX1950 161 - bool "HP iPAQ rx1950" 162 - select CPU_S3C2442 163 - select S3C24XX_DCLK 164 - select PM_H1940 if PM 165 - select I2C 166 - select S3C2410_PWM 167 - select S3C_DEV_NAND 168 - select S3C2410_IOTIMING if S3C2440_CPUFREQ 169 - select S3C2440_XTAL_16934400 170 - help 171 - Say Y here if you're using HP iPAQ rx1950 172 - 173 - endmenu
+1 -25
arch/arm/mach-s3c2440/Makefile
··· 9 9 obj-n := 10 10 obj- := 11 11 12 - obj-$(CONFIG_CPU_S3C2440) += s3c2440.o dsc.o 13 - obj-$(CONFIG_CPU_S3C2442) += s3c2442.o 12 + obj-$(CONFIG_CPU_S3C2440) += dsc.o 14 13 15 - obj-$(CONFIG_CPU_S3C2440) += irq.o 16 - obj-$(CONFIG_CPU_S3C2440) += clock.o 17 - obj-$(CONFIG_S3C2440_DMA) += dma.o 18 - 19 - obj-$(CONFIG_CPU_S3C244X) += s3c244x.o 20 - obj-$(CONFIG_CPU_S3C244X) += s3c244x-irq.o 21 - obj-$(CONFIG_CPU_S3C244X) += s3c244x-clock.o 22 14 obj-$(CONFIG_S3C2440_CPUFREQ) += s3c2440-cpufreq.o 23 15 24 16 obj-$(CONFIG_S3C2440_PLL_12000000) += s3c2440-pll-12000000.o 25 17 obj-$(CONFIG_S3C2440_PLL_16934400) += s3c2440-pll-16934400.o 26 - 27 - # Machine support 28 - 29 - obj-$(CONFIG_MACH_ANUBIS) += mach-anubis.o 30 - obj-$(CONFIG_MACH_OSIRIS) += mach-osiris.o 31 - obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o 32 - obj-$(CONFIG_ARCH_S3C2440) += mach-smdk2440.o 33 - obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o 34 - obj-$(CONFIG_MACH_AT2440EVB) += mach-at2440evb.o 35 - obj-$(CONFIG_MACH_MINI2440) += mach-mini2440.o 36 - obj-$(CONFIG_MACH_NEO1973_GTA02) += mach-gta02.o 37 - obj-$(CONFIG_MACH_RX1950) += mach-rx1950.o 38 - 39 - # extra machine support 40 - 41 - obj-$(CONFIG_MACH_OSIRIS_DVS) += mach-osiris-dvs.o
arch/arm/mach-s3c2440/clock.c arch/arm/mach-s3c24xx/clock-s3c2440.c
-17
arch/arm/mach-s3c2440/common.h
··· 1 - /* 2 - * Copyright (c) 2011 Samsung Electronics Co., Ltd. 3 - * http://www.samsung.com 4 - * 5 - * Common Header for S3C2440 machines 6 - * 7 - * This program is free software; you can redistribute it and/or modify 8 - * it under the terms of the GNU General Public License version 2 as 9 - * published by the Free Software Foundation. 10 - */ 11 - 12 - #ifndef __ARCH_ARM_MACH_S3C2440_COMMON_H 13 - #define __ARCH_ARM_MACH_S3C2440_COMMON_H 14 - 15 - void s3c2440_restart(char mode, const char *cmd); 16 - 17 - #endif /* __ARCH_ARM_MACH_S3C2440_COMMON_H */
arch/arm/mach-s3c2440/dma.c arch/arm/mach-s3c24xx/dma-s3c2440.c
arch/arm/mach-s3c2440/include/mach/gta02.h arch/arm/mach-s3c24xx/include/mach/gta02.h
arch/arm/mach-s3c2440/irq.c arch/arm/mach-s3c24xx/irq-s3c2440.c
arch/arm/mach-s3c2440/mach-anubis.c arch/arm/mach-s3c24xx/mach-anubis.c
arch/arm/mach-s3c2440/mach-at2440evb.c arch/arm/mach-s3c24xx/mach-at2440evb.c
arch/arm/mach-s3c2440/mach-gta02.c arch/arm/mach-s3c24xx/mach-gta02.c
arch/arm/mach-s3c2440/mach-mini2440.c arch/arm/mach-s3c24xx/mach-mini2440.c
arch/arm/mach-s3c2440/mach-nexcoder.c arch/arm/mach-s3c24xx/mach-nexcoder.c
arch/arm/mach-s3c2440/mach-osiris-dvs.c arch/arm/mach-s3c24xx/mach-osiris-dvs.c
arch/arm/mach-s3c2440/mach-osiris.c arch/arm/mach-s3c24xx/mach-osiris.c
arch/arm/mach-s3c2440/mach-rx1950.c arch/arm/mach-s3c24xx/mach-rx1950.c
arch/arm/mach-s3c2440/mach-rx3715.c arch/arm/mach-s3c24xx/mach-rx3715.c
arch/arm/mach-s3c2440/mach-smdk2440.c arch/arm/mach-s3c24xx/mach-smdk2440.c
arch/arm/mach-s3c2440/s3c2440.c arch/arm/mach-s3c24xx/s3c2440.c
arch/arm/mach-s3c2440/s3c2442.c arch/arm/mach-s3c24xx/s3c2442.c
arch/arm/mach-s3c2440/s3c244x-clock.c arch/arm/mach-s3c24xx/clock-s3c244x.c
arch/arm/mach-s3c2440/s3c244x-irq.c arch/arm/mach-s3c24xx/irq-s3c244x.c
arch/arm/mach-s3c2440/s3c244x.c arch/arm/mach-s3c24xx/s3c244x.c
+167 -2
arch/arm/mach-s3c24xx/Kconfig
··· 47 47 help 48 48 Support for the S3C2416 SoC from the S3C24XX line 49 49 50 + config CPU_S3C2440 51 + bool "SAMSUNG S3C2440" 52 + select CPU_ARM920T 53 + select CPU_LLSERIAL_S3C2440 54 + select S3C2410_CLOCK 55 + select S3C2410_PM if PM 56 + select S3C2440_DMA if S3C24XX_DMA 57 + help 58 + Support for S3C2440 Samsung Mobile CPU based systems. 59 + 60 + config CPU_S3C2442 61 + bool "SAMSUNG S3C2442" 62 + select CPU_ARM920T 63 + select CPU_LLSERIAL_S3C2440 64 + select S3C2410_CLOCK 65 + select S3C2410_PM if PM 66 + help 67 + Support for S3C2442 Samsung Mobile CPU based systems. 68 + 69 + config CPU_S3C244X 70 + def_bool y 71 + depends on CPU_S3C2440 || CPU_S3C2442 72 + 50 73 if CPU_S3C2410 51 74 52 75 config S3C2410_DMA 53 76 bool 54 - depends on S3C24XX_DMA && CPU_S3C2410 55 - default y if CPU_S3C2410 77 + depends on S3C24XX_DMA && (CPU_S3C2410 || CPU_S3C2442) 78 + default y if CPU_S3C2410 || CPU_S3C2442 56 79 help 57 80 DMA device selection for S3C2410 and compatible CPUs 58 81 ··· 317 294 Say Y here if you are using an SMDK2416 318 295 319 296 endif # CPU_S3C2416 297 + 298 + if CPU_S3C2440 299 + 300 + config S3C2440_DMA 301 + bool 302 + help 303 + Support for S3C2440 specific DMA code5A 304 + 305 + comment "S3C2440 Boards" 306 + 307 + # 308 + # The "S3C2440 Boards" list is ordered alphabetically by option text. 309 + # (without ARCH_ or MACH_) 310 + # 311 + 312 + config MACH_ANUBIS 313 + bool "Simtec Electronics ANUBIS" 314 + select S3C24XX_DCLK 315 + select PM_SIMTEC if PM 316 + select HAVE_PATA_PLATFORM 317 + select S3C24XX_GPIO_EXTRA64 318 + select S3C2440_XTAL_12000000 319 + select S3C_DEV_USB_HOST 320 + help 321 + Say Y here if you are using the Simtec Electronics ANUBIS 322 + development system 323 + 324 + config MACH_AT2440EVB 325 + bool "Avantech AT2440EVB development board" 326 + select S3C_DEV_USB_HOST 327 + select S3C_DEV_NAND 328 + help 329 + Say Y here if you are using the AT2440EVB development board 330 + 331 + config MACH_MINI2440 332 + bool "MINI2440 development board" 333 + select EEPROM_AT24 334 + select NEW_LEDS 335 + select LEDS_CLASS 336 + select LEDS_TRIGGER 337 + select LEDS_TRIGGER_BACKLIGHT 338 + select S3C_DEV_NAND 339 + select S3C_DEV_USB_HOST 340 + help 341 + Say Y here to select support for the MINI2440. Is a 10cm x 10cm board 342 + available via various sources. It can come with a 3.5" or 7" touch LCD. 343 + 344 + config MACH_NEXCODER_2440 345 + bool "NexVision NEXCODER 2440 Light Board" 346 + select S3C2440_XTAL_12000000 347 + select S3C_DEV_USB_HOST 348 + select S3C_DEV_NAND 349 + help 350 + Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board 351 + 352 + config MACH_OSIRIS 353 + bool "Simtec IM2440D20 (OSIRIS) module" 354 + select S3C24XX_DCLK 355 + select PM_SIMTEC if PM 356 + select S3C24XX_GPIO_EXTRA128 357 + select S3C2440_XTAL_12000000 358 + select S3C2410_IOTIMING if S3C2440_CPUFREQ 359 + select S3C_DEV_USB_HOST 360 + select S3C_DEV_NAND 361 + help 362 + Say Y here if you are using the Simtec IM2440D20 module, also 363 + known as the Osiris. 364 + 365 + config MACH_OSIRIS_DVS 366 + tristate "Simtec IM2440D20 (OSIRIS) Dynamic Voltage Scaling driver" 367 + depends on MACH_OSIRIS 368 + select TPS65010 369 + help 370 + Say Y/M here if you want to have dynamic voltage scaling support 371 + on the Simtec IM2440D20 (OSIRIS) module via the TPS65011. 372 + 373 + The DVS driver alters the voltage supplied to the ARM core 374 + depending on the frequency it is running at. The driver itself 375 + does not do any of the frequency alteration, which is left up 376 + to the cpufreq driver. 377 + 378 + config MACH_RX3715 379 + bool "HP iPAQ rx3715" 380 + select S3C2440_XTAL_16934400 381 + select PM_H1940 if PM 382 + select S3C_DEV_NAND 383 + help 384 + Say Y here if you are using the HP iPAQ rx3715. 385 + 386 + config ARCH_S3C2440 387 + bool "SMDK2440" 388 + select S3C2440_XTAL_16934400 389 + select MACH_SMDK 390 + select S3C_DEV_USB_HOST 391 + select S3C_DEV_NAND 392 + help 393 + Say Y here if you are using the SMDK2440. 394 + 395 + config SMDK2440_CPU2440 396 + bool "SMDK2440 with S3C2440 CPU module" 397 + default y if ARCH_S3C2440 398 + select S3C2440_XTAL_16934400 399 + 400 + endif # CPU_S3C2440 401 + 402 + if CPU_S3C2442 403 + 404 + comment "S3C2442 Boards" 405 + 406 + # 407 + # The "S3C2442 Boards" list is ordered alphabetically by option text. 408 + # (without ARCH_ or MACH_) 409 + # 410 + 411 + config MACH_NEO1973_GTA02 412 + bool "Openmoko GTA02 / Freerunner phone" 413 + select MFD_PCF50633 414 + select PCF50633_GPIO 415 + select I2C 416 + select POWER_SUPPLY 417 + select MACH_NEO1973 418 + select S3C2410_PWM 419 + select S3C_DEV_USB_HOST 420 + help 421 + Say Y here if you are using the Openmoko GTA02 / Freerunner GSM Phone 422 + 423 + config MACH_RX1950 424 + bool "HP iPAQ rx1950" 425 + select S3C24XX_DCLK 426 + select PM_H1940 if PM 427 + select I2C 428 + select S3C2410_PWM 429 + select S3C_DEV_NAND 430 + select S3C2410_IOTIMING if S3C2440_CPUFREQ 431 + select S3C2440_XTAL_16934400 432 + help 433 + Say Y here if you're using HP iPAQ rx1950 434 + 435 + config SMDK2440_CPU2442 436 + bool "SMDM2440 with S3C2442 CPU module" 437 + 438 + endif # CPU_S3C2440 320 439 321 440 endmenu # SAMSUNG S3C24XX SoCs Support 322 441
+17
arch/arm/mach-s3c24xx/Makefile
··· 26 26 obj-$(CONFIG_CPU_S3C2416) += s3c2416.o irq-s3c2416.o clock-s3c2416.o 27 27 obj-$(CONFIG_S3C2416_PM) += pm-s3c2416.o 28 28 29 + obj-$(CONFIG_CPU_S3C2440) += s3c2440.o irq-s3c2440.o clock-s3c2440.o 30 + obj-$(CONFIG_CPU_S3C2442) += s3c2442.o 31 + obj-$(CONFIG_CPU_S3C244X) += s3c244x.o irq-s3c244x.o clock-s3c244x.o 32 + obj-$(CONFIG_S3C2440_DMA) += dma-s3c2440.o 33 + 29 34 # 30 35 # machine support 31 36 # following is ordered alphabetically by option text. ··· 55 50 56 51 obj-$(CONFIG_MACH_SMDK2416) += mach-smdk2416.o 57 52 53 + obj-$(CONFIG_MACH_ANUBIS) += mach-anubis.o 54 + obj-$(CONFIG_MACH_AT2440EVB) += mach-at2440evb.o 55 + obj-$(CONFIG_MACH_MINI2440) += mach-mini2440.o 56 + obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o 57 + obj-$(CONFIG_MACH_OSIRIS) += mach-osiris.o 58 + obj-$(CONFIG_MACH_RX3715) += mach-rx3715.o 59 + obj-$(CONFIG_ARCH_S3C2440) += mach-smdk2440.o 60 + 61 + obj-$(CONFIG_MACH_NEO1973_GTA02) += mach-gta02.o 62 + obj-$(CONFIG_MACH_RX1950) += mach-rx1950.o 63 + 58 64 # common bits of machine support 59 65 60 66 obj-$(CONFIG_SIMTEC_NOR) += nor-simtec.o ··· 73 57 # machine additions 74 58 75 59 obj-$(CONFIG_MACH_BAST_IDE) += bast-ide.o 60 + obj-$(CONFIG_MACH_OSIRIS_DVS) += mach-osiris-dvs.o 76 61 77 62 # device setup 78 63
+6
arch/arm/mach-s3c24xx/common.h
··· 12 12 #ifndef __ARCH_ARM_MACH_S3C2410_COMMON_H 13 13 #define __ARCH_ARM_MACH_S3C2410_COMMON_H 14 14 15 + #ifdef CONFIG_CPU_S3C2410 15 16 void s3c2410_restart(char mode, const char *cmd); 17 + #endif 18 + 19 + #ifdef CONFIG_CPU_S3C2440 20 + void s3c2440_restart(char mode, const char *cmd); 21 + #endif 16 22 17 23 #endif /* __ARCH_ARM_MACH_S3C2410_COMMON_H */