summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* 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: S5P6440: Move common memory map definitions for S5PKukjin Kim2010-01-279-70/+65
| | | | | | | | | | | | 1. Moved common memory map definitions for S5P such as S5P_VA_XXX into plat-s5p/include/mach/map-s5p.h from mach-s5p6440/include/mach. 2. Removed unnecessary definitions in the map.h and irq.c 3. Removed the unnecessary support for unaligned UART address 4. Renamed S5P_VA_VICx definitions as VA_VICx 5. Moved the definitons of VIC_BASE to plat-s5p/include/plat/irqs.h Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: S5P6440: Move CPU specific code in plat-s5p to machine directoryKukjin Kim2010-01-277-27/+6
| | | | | | | | | The s5p6440-clock.c and s5p6440-init.c code in the plat-s5p is specific to s5p6440 SoC based systems. So these files are being moved to the machine directory of s5p6440. And these files are renamed in the machine directory. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: Merge next-smdk6410-defconfigBen Dooks2010-01-261-96/+264
|\ | | | | | | Merge branch 'next-smdk6410-defconfig' into next-samsung
| * ARM: S3C64XX: Update s3c6400_defconfig for current kernelBen Dooks2010-01-211-95/+263
| | | | | | | | | | | | | | Update the s3c6400_defconfig with one from the current kernel which has been build and run tested on an SMDK6410. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * ARM: S3C6400: Update s3c6400_defconfig for bigger initrds for SMDK6410Ben Dooks2010-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | The Samsung initrd for SMDK6410 is now bigger than the original initrds that where used. Increase the command-line size and the size of the ramdisk that it is unpacked into. Also change the default init to /linuxrc to avoid problems with the current SMDK ramdisk image failing to run /bin/bash. 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: S5PV210: Add serial port supportThomas Abraham2010-01-261-0/+30
| | | | | | | | | | | | | | | | This patch adds UART serial port support for S5PV210. 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: S5P6440: Add HSMMC and OTG base addresses to map.hBen Dooks2010-01-211-0/+8
|/ | | | | | Add the HSOTG and HSMMC block addresses to the map.h file. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: S3C64XX: Tidy up common code in s3c64xx_spi_set_info()Ben Dooks2010-01-211-6/+9
| | | | | | | | | | The s3c64xx_spi_set_info() sets one of two platform data structures depending on which controller is being specified. Change to taking a pointer to the relevant platform data structure and then having one set of code to place the data into the area being pointed to. Cc: Jassi Brar <jassi.brar@samsung.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: S3C64XX: Staticise audio platform dataMark Brown2010-01-211-3/+3
| | | | | | | It's not exported. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: S3C64XX: Fix dev-audio buildMark Brown2010-01-211-3/+3
| | | | | | | | | | | As reported when the patch was posted commit 71269364 ("ARM: S3C64XX: Add I2S resources in platform code") uses pin names for the IISv4 data output pins which are not present in mainline, causing dev-audio to fail to build. Fix this by using the defines which are actually present in the kernel source. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* ARM: SMDK6410: Set up interrupt range for WM835x on 1190-EV1 PMIC boardMark Brown2010-01-212-0/+5
| | | | | | | | The WM835x driver won't actually use this yet but it will in the future when the changes converting it to genirq are merged. 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-219-58/+59
| | | | | | | | | | | | 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-213-4/+4
| | | | | | | 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/+0
| | | | | | | | 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: S5P6440: Add IO descriptor for ChipID block.Kukjin Kim2010-01-191-0/+5
| | | | | | | This patch adds the IO descriptor for ChipID block in S5P6440. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> 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-1912-69/+9
| | | | | | | | | | 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/+0
| | | | | | | 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-193-1/+1
| | | | | | | | | | | 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-193-1/+4
| | | | | | | | | 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: S5P6440: Add S5P6440 GPIO supportKukjin Kim2010-01-194-1/+381
| | | | | | | | | This patch adds Samsung's S5P6440 GPIO support. 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: Move GPIO common functions to plat-samsungKukjin Kim2010-01-196-160/+236
| | | | | | | | | | 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-192-15/+19
|\ | | | | | | 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: S5PC1XX: Register pd0 and hd0 clocks, remove unecessary dummy_enableBen Dooks2010-01-181-7/+2
| | | | | | | | | | | | | | | | | | The clk_hd0 and clk_pd0 where given a local dummy_enable call due to not being registered with the clock code, which they really should have been. Register these two clocks and remove the clk_dummy_enable as this is done by the default clock registration code. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: Merge next-samsung-devupdates1Ben Dooks2010-01-1932-156/+122
|\ \ | | | | | | | | | Merge branch 'next-samsung-devupdates1' into next-samsung-try7
| * | ARM: S3C24XX: Add mci platform data set call s3c24xx_mci_set_platdata().Ben Dooks2010-01-195-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a s3c24xx_mci_set_platdata() call for all the machine files that have platform data for the MCI driver. This brings the MCI device into line with the other devices with __initdata and a specific call to ensure the right structure type is being passed. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: MINI2440: Remove commented out devices from device arrayBen Dooks2010-01-191-3/+0
| | | | | | | | | | | | | | | | | | | | | There's no point in having these in until there is proper support for them, so remove as they only confuse the device changing script. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: SAMSUNG: Add platform data registration for OHCIBen Dooks2010-01-194-6/+26
| | | | | | | | | | | | | | | | | | 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-196-114/+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: S3C2412: Fixup commented out device in SMDK2413Ben Dooks2010-01-151-1/+0
| | | | | | | | | | | | | | | | | | | | | The SMDK2413 has a commented out device that does not have any setup data for it, so remove it for now. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
| * | ARM: S3C: Rename s3c_device_usb to s3c_device_ohciBen Dooks2010-01-1524-26/+26
| | | | | | | | | | | | | | | | | | | | | 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: Define SPI controller devicesJassi Brar2010-01-183-0/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Platform devices for SPI Controller of S3C64XX are defined and exported for machines to include. Also, controller setup helper functions are defined for machine code to set runtime configuration of the controller and the bus. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: S3C64XX: SPI: Header for passing platform dataJassi Brar2010-01-182-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: SPI: Define SPI-48M clock sourcesJassi Brar2010-01-181-0/+12
| | | | | | | | | | | | | | | | | | | | | Defined special 48MHz clock sources for SPI-0,1. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | | ARM: S3C64XX: SPI: Add SPI controller register baseJassi Brar2010-01-181-0/+2
| |/ |/| | | | | | | | | | | Added SPI controller register base. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SMDK6410: Add comments on ethernet connectivityAndy Green2010-01-181-0/+10
| | | | | | | | | | | | | | | | LAN9115 Ethernet only works on SMDK6410 if certain switches are set in specific ways. Document the requirement. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: S3C64XX: Add virtual mapping for S3C64XX SROM areaAndy Green2010-01-182-0/+7
| | | | | | | | | | | | | | | | | | This adds the physical address of the SROM unit, and applies a virtual mapping for it to the S3C_VA_MEM slot. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: SMDK6410: Add nC1 chipselect SROM setupAndy Green2010-01-181-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the mach-smdk6410.c file claims it can start up the smsc9115 ethernet device on the board, it should take care about configuring the necessary chip select nCS1 so it can see the chip. The select defaults to 8-bit mode so without config the Ethernet doesn't work. This patch uses the new SROM definitions to set nCS1 to the state found in the Samsung U-Boot port for 6410. It may be more conservative that it needs to be since those settings were marked as for CS8900A also using this chip select. But this change is enough to get the ethernet working when booted with Qi. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: S3C64XX: Add SROM register definitionsAndy Green2010-01-182-0/+71
| | | | | | | | | | | | | | | | | | This introduces a platform file for s3c64xx that defines the SROM unit registers that control chip select characteristics. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* | ARM: Merge next-s3c64xxBen Dooks2010-01-184-1/+135
|\ \ | | | | | | | | | | | | | | | | | | | | | Merge branch 'next-s3c64xx' into next-samsung Conflicts: arch/arm/mach-s3c6400/include/mach/map.h ( ADC and RTC PA merge fixed)
| * | ARM: S3C64XX: Add I2S resources in platform codeJassi Brar2010-01-181-1/+90
| | | | | | | | | | | | | | | | | | | | | | | | Define resources needed by the I2S drivers in platform code. Audio cfg_gpio callback and IORESOURCE_DMA are added. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
OpenPOWER on IntegriCloud