summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung
Commit message (Collapse)AuthorAgeFilesLines
* ARM: SAMSUNG: Fix build error from stale define in <plat/uncompress.h>Ben Dooks2010-03-151-2/+0
| | | | | | | | | | | | | | | The decleration of error() as static in the platform specific uncompress code in arch/arm/plat-samsung/include/plat/uncomopress.h causes the build of the uncompressor to break. Remove it, as it is no longer needed. arch/arm/boot/compressed/decompress.o: In function `gunzip': /var/tmp/kernel-orig/arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:67: undefined reference to `error' /var/tmp/kernel-orig/arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:73: undefined reference to `error' /var/tmp/kernel-orig/arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:80: undefined reference to `error' /var/tmp/kernel-orig/arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:95: undefined reference to `error' /var/tmp/kernel-orig/arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:152: undefined reference to `error' Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: SAMSUNG: Add suspend/resume support for S3C PWM driverVasily Khoruzhick2010-03-151-0/+35
| | | | | | | | | | | Reset period_ns and duty_ns values in suspend handler to avoid skip of configuration if same values passed to pwm_config; Restore invertion bit in resume handler. Without this patch PWM works incorrectly after resume from suspend. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* Merge branch 'for-linus' of ↵Linus Torvalds2010-03-123-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (56 commits) doc: fix typo in comment explaining rb_tree usage Remove fs/ntfs/ChangeLog doc: fix console doc typo doc: cpuset: Update the cpuset flag file Fix of spelling in arch/sparc/kernel/leon_kernel.c no longer needed Remove drivers/parport/ChangeLog Remove drivers/char/ChangeLog doc: typo - Table 1-2 should refer to "status", not "statm" tree-wide: fix typos "ass?o[sc]iac?te" -> "associate" in comments No need to patch AMD-provided drivers/gpu/drm/radeon/atombios.h devres/irq: Fix devm_irq_match comment Remove reference to kthread_create_on_cpu tree-wide: Assorted spelling fixes tree-wide: fix 'lenght' typo in comments and code drm/kms: fix spelling in error message doc: capitalization and other minor fixes in pnp doc devres: typo fix s/dev/devm/ Remove redundant trailing semicolons from macros fix typo "definetly" -> "definitely" in comment tree-wide: s/widht/width/g typo in comments ... Fix trivial conflict in Documentation/laptops/00-INDEX
* | ARM: S3C64XX: Add AC97 platform resourcesJassi Brar2010-02-242-0/+11
| | | | | | | | | | | | | | | | | | This patch defines the platform device and the resources: IRQ, DMA and MEM, needed by the AC97 controller driver. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: S5P6442: Add Samsung S5P6442 CPU supportKukjin Kim2010-02-241-0/+12
| | | | | | | | | | | | | | | | | | | | This patch adds support for Samsung S5P6442 CPU. This patch also adds an entry for S5P6442 cpu in plat-s5p cpu table. Signed-off-by: Adityapratap Sharma <aditya.ps@samsung.com> Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: adc: disable/enable IRQ on suspend/resumeVasily Khoruzhick2010-02-241-0/+2
| | | | | | | | | | | | | | IRQ should be disabled on suspend and re-enabled on resume. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Select NO_IOPORT for plat-samsungBen Dooks2010-02-241-0/+1
| | | | | | | | | | | | All these platforms select NO_IOPORT, so move it to plat-samsung Kconfig Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move plat-s3c Kconfig entries to plat-samsung and plat-s3c24xxBen Dooks2010-02-241-0/+59
| | | | | | | | | | | | | | | | | | | | | | Move the Kconfig entries from plat-s3c to plat-samsung and plat-s3c24xx as necessary. The S3C_BOOT entries and the DMA configuration can go to plat-samsung. The low-level UART configurations are currently S3C2XX specific and can go to plat-s3c24xx. Eliminating plat-s3c from the build process will be submitted seperately. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move the last build from plat-s3c to plat-samsungBen Dooks2010-02-234-1/+448
| | | | | | | | | | | | | | Move the init.c and time.c files to plat-samsung from plat-s3c, thus clearing the last files that are being built in here. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move DMA support to plat-samsungBen Dooks2010-02-233-0/+215
| | | | | | | | | | | | Move the core of the DMA support to plat-samsung for everyone to use. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move pm.c to plat-samsungBen Dooks2010-02-232-0/+379
| | | | | | | | | | | | Move pm.c to plat-samsung, it should be usable by all Samsung systems Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move map-base to plat-samsungBen Dooks2010-02-231-0/+46
| | | | | | | | | | | | | | | | Move the map-base file to plat-samsung. To make the move easier, we do not change the S3C_ prefix on many of the items as this would involve going through altering all the dependencies. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move common headers from plat-s3c to plat-samsungBen Dooks2010-02-2312-0/+1772
| | | | | | | | | | | | | | | | Move common headers from plat-s3c's include/plat directory into plat-samsung. No need to fix any files, these are still included via <plat/> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: Merge next-samsung-s3c64xx-platdeletionBen Dooks2010-02-223-25/+103
|\ \ | | | | | | | | | | | | | | | | | | | | | Merge branch 'next-samsung-s3c64xx-platdeletion' into next-samsung Conflicts: arch/arm/mach-s3c64xx/Makefile (fixed)
| * | ARM: SAMSUNG: Remove dma-plat.h to allow plat-s3c64xx to be removedBen Dooks2010-02-211-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dma-plat.h is the last file left in plat-s3c64xx, but to remove it we must also change the use of dma-plat.h by the core code and the s3c24xx implementation. Rename the s3c24xx dma-plat.h in the common plat-samsung directory as it may be used for other ports. Move the specific dma bits into the mach-s3c64xx directory and update the build as needed. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: S3C64XX: Combine the clock init codeBen Dooks2010-02-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn the init sequence of s3c24xx_register_baseclocks(xtal); s3c64xx_register_clocks(); s3c6400_register_clocks(S3C6410_CLKDIV0_ARM_MASK); into a single call as this is now contained within one file. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: S3C64XX: Squash SDHCI setup into one fileBen Dooks2010-01-261-24/+19
| | | | | | | | | | | | | | | | | | | | | Squash the SDHCI setup for both the S3C6400 and S3C6410 into one file and make the S3C6410 case use the S3C6400 code. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: SAMSUNG: Add support for 12bit ADCMaurus Cuelenaere2010-02-032-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | The S3C64XX SoC series support 12bit ADC data, enable this and mask the data accordingly. Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: S3C64XX: SPI: Make platform device compilation selectableJassi Brar2010-02-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SPI controller platform devices should be compiled in independent of the driver support, otherwise we might end up with dev-spi built as kernel module. Change this to make every machine select if it has some SPI device and wants to build device definitions. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: SAMSUNG: Add DMA masks to hsotg deviceBen Dooks2010-02-031-0/+7
| | | | | | | | | | | | | | | | | | | | | Add the required DMA masks to the hs-otg device definition to allow DMA to work with it. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: SAMSUNG: Add error printing to s3c24xx_register_clocksBen Dooks2010-01-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an error print to s3c24xx_register_clocks to provide more useful information when failing to register the clock. I belive this was originally left out due to the possibility of a problem with low-level debugging code. However, if the low-level debug code is not functional by now there will be a whole other set of problems being presented to the system. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: SAMSUNG: Add documentation to the clock registration calls.Ben Dooks2010-01-261-0/+14
|/ / | | | | | | | | | | | | Add some kerneldoc documentation to the s3c24xx_register_clock and the s3c24xx_register_clocks() call. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Fix bad use of __initdata for s3c_register_clocks()Ben Dooks2010-01-261-1/+1
| | | | | | | | | | | | Functions should be marked __init, not __initdata. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Fix null pointer dereference in ADC driverMaurus Cuelenaere2010-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | ARM: SAMSUNG: Fix null pointer dereference in ADC driver Use struct adc_device instead of relying on client (which could be NULL) when checking for SoC type. Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: S3C64XX: Fix typo in s3c-hsotg platform dataMaurus Cuelenaere2010-01-211-2/+2
| | | | | | | | | | | | | | ARM: S3C64XX: Fix typo in s3c-hsotg platform data Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Staticise gpiolib implementation functionsMark Brown2010-01-211-7/+9
| | | | | | | | | | | | | | They are not exported, they are referenced via vtables. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move pm-check.c to plat-samsungBen Dooks2010-01-213-0/+288
| | | | | | | | | | | | | | | | | | | | | | | | Move the pm-check.c file to plat-samsung for all Samsung SoC users, and update Kconfig names to make them SAMSUNG_ instead of S3C2410_ Sed expresions used to make the change: s/S3C2410_PM_DEBUG/SAMSUNG_PM_DEBUG/g s/S3C2410_PM_CHECK/SAMSUNG_PM_CHECK/g Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move pmw.c to plat-samsungBen Dooks2010-01-212-0/+414
| | | | | | | | | | | | | | Move the PWM driver support to plat-samsung, as these PWM blocks are close enough across the current range to be supported by this driver. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move more support into plat-samsungBen Dooks2010-01-2120-0/+1683
| | | | | | | | | | | | | | | | Move header files which are not likely to be touched in any further support addition out of plat-s3c's include directory into plat-samsung. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Remove empty gpio-core.h and use central plat/gpio-core.hBen Dooks2010-01-194-3/+5
| | | | | | | | | | | | | | | | | | | | Rename mach-s3c2410/include/mach/gpio-core.h to mach/gpio-track.h so that it can be included by <plat/gpio-core.h> when needed. Eliminate all other empty gpio-core.h files and just include the <plat/gpio-core.h> as necessary. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move GPIO headers to plat-samsungBen Dooks2010-01-193-0/+421
| | | | | | | | | | | | | | Move the GPIO and GPIO configuration headers into arch/arm/plat-samsung as they are common to all the Samsung SoCs. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move gpiolib support in gpio.c to plat-samsungBen Dooks2010-01-192-0/+157
| | | | | | | | | | | | | | | | | | | | | | Move the gpio.c code containing the core gpiolib and GPIO support to plat-samsung from plat-s3c as it is used by all current Samsung SoCs. Note, we didn't move this to gpiolib.c as it contains code that is not strictly for gpiolib support and the 4bit code is already called gpiolib.c so make the change easier by not renaming both files in one go. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move pm-gpio into plat-samsungBen Dooks2010-01-192-0/+384
| | | | | | | | | | | | | | | | | | Move the pm-gpio code into plat-samsung. Note, this should be changed later to properly compile the 4bit code if the 4bit settings are enabled. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move GPIO common functions to plat-samsungKukjin Kim2010-01-193-0/+205
| | | | | | | | | | | | | | | | | | | | This patch moves GPIO common functions (from plat-s3c64xx) into plat-samsung. and adds the config option to build the plat-samsung/gpiolib for Samsung SoCs. Signed-off-by: Adityapratap Sharma <aditya.ps@samsung.com> Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: Merge next-samsung-clock2Ben Dooks2010-01-191-8/+17
|\ \ | | | | | | | | | Merge branch 'next-samsung-clock2' into next-samsung-try7
| * | ARM: SAMSUNG: Fix bug in clksrc-clk round_rate call.Ben Dooks2010-01-181-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | The call has been assuming all clksrc-clks' divider size is 4 bits, but this may not be the case anymore. Use the reg_div.size parameter to calculate the maximum value it can take and check against that. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: SAMSUNG: Fix clksrc-clk's checks for bad register settingsBen Dooks2010-01-181-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WARN_ON() was only checking the first clock in the array, instead of being executed for each clksrc clock being registered. Since this is an array of clocks, WARN_ON() does not provide a lot of useful information about the problem, so change to using printk(KERN_ERR) to report the problem to the console. As a note, we still try and register the clock even if these problems are present just in case and to avoid changing the behaviour of the registration process. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: SAMSUNG: Add check to ensure that clksrc_clk does have multiple clock ↵Thomas Abraham2010-01-181-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sources Adds a additional check in s3c_set_clksrc function to ensure that the clksrc_clk does have a choice of multiple clock sources. In addition to this, a check is added to ensure that a parent is assigned to the clksrc_clk in case it does not have a choice of parent clocks. Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: Merge next-samsung-devupdates1Ben Dooks2010-01-193-3/+67
|\ \ \ | | | | | | | | | | | | Merge branch 'next-samsung-devupdates1' into next-samsung-try7
| * | | ARM: SAMSUNG: Add platform data registration for OHCIBen Dooks2010-01-191-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | Add a platform data helper for the OHCI device Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | | ARM: SAMSUNG: Make UART device code commonBen Dooks2010-01-192-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move s3c24xx_uart_devs, s3c24xx_uart_src and the platform devices to a common entry in plat-samsung since they are the same in all the current implementations. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | | ARM: S3C: Rename s3c_device_usb to s3c_device_ohciBen Dooks2010-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare for the forthcoming device changes by renaming s3c_device_usb to s3c_device_ohci as this is what the device represents. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | | ARM: S3C64XX: SPI: Header for passing platform dataJassi Brar2010-01-181-0/+67
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need a way to pass controller specific information to the SPI driver. For that purpose new headers are made. SPI Controller is assumed 'type-s3c64xx' and can be defined for newer SoCs. Hence, that part is placed under plat-samsung to be shared across newer SoCs. SoC specific part - spi source clocks, will be placed under plat-<soc>/include/plat/ Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: S3C64XX: Add S3C64XX support to the generic Samsung ADC driverMaurus Cuelenaere2010-01-181-2/+25
| | | | | | | | | | | | | | | | | | | | | Add S3C64XX support to the generic Samsung ADC driver Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: SAMSUNG: Move S3C24XX ADC driver to plat-samsungMaurus Cuelenaere2010-01-184-0/+483
|/ / | | | | | | | | | | | | Move S3C24XX ADC driver to plat-samsung Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: S5P6440: Add Clock and PLL supportKukjin Kim2010-01-151-0/+1
| | | | | | | | | | | | | | | | | | This patch adds clock and pll support for S5P6440. This patch are based on Harald Welte's patches and Ben's plat-samsung. Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Add config option for number of additional GPIO pins.Kukjin Kim2010-01-151-0/+8
| | | | | | | | | | | | | | | | | | This patch adds a configuration option for specifing the number of additional GPIO pins to be used in addition to the GPIO pins supported onchip. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move IRQ UART handling for newer devices to plat-samsungBen Dooks2010-01-154-0/+169
| | | | | | | | | | | | | | | | Move the handling for the UART interrupts out of the s3c64xx specific code and into plat-samsung so that it can be used by all implementations that need it. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move IRQ VIC timer handling out to common header filesBen Dooks2010-01-154-0/+108
| | | | | | | | | | | | | | | | | | Move the VIC based timer interrupt handling out of plat-s3c64xx and into plat-samsung to be re-used for other systems. This also reduces the code size as we now have a common init routine and use the irq_desc to store the interrupt number of the timer. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SAMSUNG: Move gpio-config.c into plat-samsungBen Dooks2010-01-153-0/+202
| | | | | | | | | | | | | | The arch/arm/plat-s3c/gpio-config.c file is common to pretty much all the Samsung SoCs, so move it to arch/arm/plat-samsung Signed-off-by: Ben Dooks <ben-linux@fluff.org>
OpenPOWER on IntegriCloud