- Nov 12, 2014
-
-
Daniel Lezcano authored
The only place where the time is invalid is when the ACPI_CSTATE_FFH entry method is not set. Otherwise for all the drivers, the time can be correctly measured. Instead of duplicating the CPUIDLE_FLAG_TIME_VALID flag in all the drivers for all the states, just invert the logic by replacing it by the flag CPUIDLE_FLAG_TIME_INVALID, hence we can set this flag only for the acpi idle driver, remove the former flag from all the drivers and invert the logic with this flag in the different governor. Signed-off-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-
- Oct 02, 2014
-
-
Masahiro Yamada authored
Clearing obj-y, obj-m, obj-n, obj- in each Makefile is a useless habit. They are non-exported variables; therefore they are always empty whenever descending into each subdirectory. (Moreorver, obj-y and obj-m are also set to empty at the beginning of scripts/Makefile.build) Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by:
Peter Foley <pefoley2@pefoley.com> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Sep 08, 2014
-
-
Ulf Hansson authored
Since genpd at late init, will try to disable unused PM domains we don't need to do it from the machine specific code as well. Signed-off-by:
Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by:
Kevin Hilman <khilman@linaro.org> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-
- Jul 18, 2014
-
-
Tomasz Figa authored
Since S5PV210 now has a complete clock driver using Common Clock Framework, there is no reason to keep the old code. Remove it together with the whole legacy Samsung-specific clock framework which no longer has any users. Signed-off-by:
Tomasz Figa <t.figa@samsung.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Jun 17, 2014
-
-
Arnd Bergmann authored
The only remaining driver using the samsung dmadev code is the broken samsung-ac97 sound driver. However, as found by Russell's autobuilder, the elaborate dependency chains around it cause problems with circular dependencies. This is an attempt to simplify those dependencies by making the SAMSUNG_DMADEV option user-selectable. I also try to keep the default settings for all related options unchanged, so we don't introduce any regressions against earlier testing on linux-next. In particular, all s3c64xx and s5p* platforms keep selecting the pl330 and pl08x drivers they require, but the select statement is now moved towards the main platform option, and it remains optional by unselecting CONFIG_DMADEVICES. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Cc: Kukjin Kim <kgene.kim@samsung.com>
-
- Mar 21, 2014
-
-
Arnd Bergmann authored
If CONFIG_SERIAL_SAMSUNG is disabled, we run into build errors with some samsung platforms. This adds a couple of #ifdef statements to hopefully deal with this more gracefully. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
Kukjin Kim <kgene.kim@samsung.com> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Ben Dooks <ben-linux@fluff.org>
-
Arnd Bergmann authored
This board uses both MMC controllers, so we need to enable the Kconfig option to define the platform data. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
Kukjin Kim <kgene.kim@samsung.com> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Ben Dooks <ben-linux@fluff.org>
-
- Mar 20, 2014
-
-
Mark Brown authored
Some very recent change appears to have removed an implicit inclusion of serial_s3c.h causing build failures due to references to UART registers in the serial port restore code in next-20140318. Include it explicitly to fix the build. Signed-off-by:
Mark Brown <broonie@linaro.org> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
The only SoC that does not have DIVSLOT register is S3C2410, so instead of exporting a variable for platforms to set if DIVSLOT register should be preserved, it's enough to simply check whether we are running on a S3C2410 instead. Signed-off-by:
Tomasz Figa <t.figa@samsung.com> Acked-by:
Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Mar 11, 2014
-
-
Heiko Stuebner authored
All Samsung platforms now use the generic uncompress.h so all the custom ones can be removed. Signed-off-by:
Heiko Stuebner <heiko@sntech.de> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Feb 15, 2014
-
-
Paul Gortmaker authored
Despite the name mach-crag6410-module.c, the code is built for MACH_WLF_CRAGG_6410 -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading. Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing. Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering. Cc: Ben Dooks <ben-linux@fluff.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: patches@opensource.wolfsonmicro.com Signed-off-by:
Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Feb 14, 2014
-
-
Tushar Behera authored
regs-serial.h only includes linux/serial_s3c.h. Include this header directly to remove unnecessary platform dependency. Signed-off-by:
Tushar Behera <tushar.behera@linaro.org> [broonie@linaro.org: Acked for S3C64XX related changes] Acked-by:
Mark Brown <broonie@linaro.org> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Feb 13, 2014
-
-
Heiko Stuebner authored
Commit 48cf83dc(ARM: samsung: remove unused tick.h) removed some occurences of tick.h. tick.h itself and s3c24xx_ostimer_pending was only used by the old timer driver and is not used anymore. Therefore remove the last 3 occurences. Signed-off-by:
Heiko Stuebner <heiko@sntech.de> Reviewed-by:
Tomasz Figa <t.figa@samsung.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Jan 14, 2014
-
-
Linus Walleij authored
When refactoring and breaking out the includes for the machine-specific GPIO configuration, two files were created in <linux/platform_data/gpio-samsung-s3c[24|64]xx.h>, but as that namespace shall be used for defining data exchanged between machines and drivers, using it for these broad macros and config settings is wrong. Move the headers back into the machine-local <mach/gpio-samsung.h> file and think about the next step. Reported-by:
Arnd Bergmann <arnd@arndb.de> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: linux-samsung-soc@vger.kernel.org Acked-by:
Mark Brown <broonie@linaro.org> Acked-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
Heiko Stuebner <heiko@sntech.de> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
-
- Dec 20, 2013
-
-
Linus Walleij authored
This isolates the custom S3C64xx GPIO definition table to <linux/platform_data/gpio-samsung-s3x64xx.h> as this is used in a few different places in the kernel, removing the need to depend on the implicit inclusion of <mach/gpio.h> from <linux/gpio.h> and thus getting rid of a few nasty cross-dependencies. Also delete the CONFIG_SAMSUNG_GPIO_EXTRA stuff. Instead roof the number of GPIOs for this platform: First sum up all the GPIO banks from A to Q: 187 GPIOs. Add the 16 "board GPIOs" and the roof for SAMSUNG_GPIO_EXTRA, 128, so in total maximum 187+16+128 = 331 GPIOs, so let's take the same roof as for S3C24XX: 512. This way we can do away with the GPIO calculation macros for GPIO_BOARD_START, BOARD_NR_GPIOS and the definition of ARCH_NR_GPIOS. Cc: Mark Brown <broonie@kernel.org> [on Mini6410 board] Tested-by:
Tomasz Figa <t.figa@samsung.com> [for changes in mach-s3c64xx] Acked-by:
Tomasz Figa <t.figa@samsung.com> Tested-by:
Mark Brown <broonie@linaro.org> Acked-by:
Kukjin Kim <kgene.kim@samsung.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
-
Uwe Kleine-König authored
While <mach/timex.h> isn't used for multi-platform builds since long it still is for "normal" builds. As the previous patches fix all sites to not make use of this per-platform file, it can go now for good also for platforms that are not (yet) converted to multi-platform. While at it there are no users of CLOCK_TICK_RATE any more, so also drop the dummy #define. Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
- Dec 18, 2013
-
-
Tomasz Figa authored
According to board schematics, for HSMMC1 a GPIO line is used to detect card presence, while currently it is being configured for internal card detect line, which is multiplexed with card detect line of HSMMC0 and thus breaking it. This patch adds proper sdhci platform data setting card detect type to external GPIO and fixing operation of HSMMC0. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Dec 14, 2013
-
-
Tomasz Figa authored
Commit 4178bac4 ARM: call of_clk_init from default time_init handler added implicit call to of_clk_init() from default time_init callback, but it did not change platforms calling it from other callbacks, despite of not having custom time_init callbacks. This caused double clock initialization on such platforms, leading to boot failures. An example of such platform is mach-s3c64xx. This patch fixes boot failure on s3c64xx by dropping custom init_irq callback, which had a call to of_clk_init() and moving system reset initialization to init_machine callback. This allows us to have clocks initialized properly without a need to have custom init_time or init_irq callbacks. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Olof Johansson <olof@lixom.net>
-
- Dec 11, 2013
-
-
Michael Opdenacker authored
This patch proposes to remove the use of the IRQF_DISABLED flag. It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by:
Michael Opdenacker <michael.opdenacker@free-electrons.com> Reviewed-by:
Jingoo Han <jg1.han@samsung.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Nov 24, 2013
-
-
Tomasz Figa authored
Since support for generic PL08x DMA engine driver has been added, there is no need to keep the old legacy driver, so this patch removes it. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
Tomasz Figa authored
This patch adds all required platform-specific data and initialization code to support the generic amba-pl08x driver on S3C64xx SoCs. Also some compatibility definitions are added to make the transition from legacy API to DMA engine easier. The biggest hack here is passing const char * pointers through DMA resource, casted to unsigned long, but this is how Samsung DMA wrappers (used to support both s3c-dma and DMA engine in drivers) are designed. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- Oct 23, 2013
-
-
Charles Keepax authored
The CODEC power supplies should be looked up on the Arizona device as they will be created here by device tree also update the only user of non-device tree bindings. Signed-off-by:
Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by:
Lee Jones <lee.jones@linaro.org> Signed-off-by:
Mark Brown <broonie@linaro.org>
-
- Oct 16, 2013
-
-
Thierry Reding authored
The GPIO API defines 0 as being a valid GPIO number, so this field needs to be initialized explicitly. Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
- Oct 06, 2013
-
-
Tomasz Figa authored
CONFIG_PLAT_S3C64XX has been kept in place way too long since it was marked as temporary in commit 110d85ac ARM: S3C64XX: Eliminate plat-s3c64xx After fixing all users of it in previous patches, this patch finally kills this temporary Kconfig entry. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
All other platforms have this condition checked inside their own Kconfig files, so for consistency this patch makes it this way for mach-s3c64xx as well. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Sep 16, 2013
-
-
Tomasz Figa authored
This patch adds board file that will be used to boot S3C64xx-based boards using Device Tree. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
This patch allows bypassing most of legacy initialization when booting an S3C64xx-based board using device tree, by adding conditional checks for DT presence to initcalls which are no longer necessary when booting with DT.. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
This patch removes old clock management code of S3C64xx, since the platform has been already moved to the new clock driver using Common Clock Framework. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
This patch migrates the s3c64xx platform to use the new clock driver using Common Clock Framework. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
Tomasz Figa authored
This patch modifies s3c64xx DMA driver to prepare and unprepare clocks in addition to enableind and disabling, since it is required by common clock framework. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Tested-by:
Mark Brown <broonie@linaro.org> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-
- Aug 29, 2013
-
-
Vivien Didelot authored
This patch moves the pca953x.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. Acked-by:
Linus Walleij <linus.walleij@linaro.org> Acked-by:
H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by:
Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by:
Olof Johansson <olof@lixom.net>
-
- Aug 12, 2013
-
-
Tomasz Figa authored
This patch removes remaining inclusions of plat/regs-timer.h as a preparation to remove the header. As a part of this, things like save and restore of PWM registers are removed from SoC-specific code, because it is handled in appropriate drivers now. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Tomasz Figa authored
Since all the used PWM prescalers and dividers configuration has been moved to appropriate drivers, the pwm-clock infrastructure is now unused and so this patch removes it. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Tomasz Figa authored
This patch modifies any board files using the legacy PWM device to use the new device instead. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
- Aug 05, 2013
-
-
Tomasz Figa authored
As the need for an IRQ chip handling PWM timer interrupt chaining is gone now, this patch removes all the code made unnecessary. Signed-off-by:
Tomasz Figa <t.figa@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Tomasz Figa authored
This patch moves all Samsung platforms using PWM clocksource from legacy samsung-time to new samsung-pwm-timer driver. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Reviewed-by:
Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Tomasz Figa authored
This patch adds PWM platform data needed for legacy (non-DT) platforms to handle SoC-specific bits of the PWM/timer block. Signed-off-by:
Tomasz Figa <t.figa@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Tomasz Figa authored
This patch makes all defintions of timer block base address use the same prefix to allow using the common name to define platform device resource. Signed-off-by:
Tomasz Figa <t.figa@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by:
Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by:
Heiko Stuebner <heiko@sntech.de> Tested-by:
Mark Brown <broonie@linaro.org> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Acked-by:
Arnd Bergmann <arnd@arndb.de> Acked-by:
Daniel Lezcano <daniel.lezcano@linaro.org>
-
- Jul 09, 2013
-
-
Robin Holt authored
Preparing to move the parsing of reboot= to generic kernel code forces the change in reboot_mode handling to use the enum. [akpm@linux-foundation.org: fix arch/arm/mach-socfpga/socfpga.c] Signed-off-by:
Robin Holt <holt@sgi.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Russ Anderson <rja@sgi.com> Cc: Robin Holt <holt@sgi.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Acked-by:
Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- Jun 18, 2013
-
-
Tomasz Figa authored
This patch moves all platforms using the legacy watchdog reset helper function to the new watchdog reset driver. Signed-off-by:
Tomasz Figa <tomasz.figa@gmail.com> Tested-by:
Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by:
Kukjin Kim <kgene.kim@samsung.com>
-