summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-14arm/dt: vexpress: Update basic DT to use skeleton.dtsi file.Grant Likely
Converted .dts file to use skeleton.dtsi, and added 'dtbs' target. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-14arm/dt: Fix broken dtbs rule.Grant Likely
On recent make, commit 1449fb96, "arm/dt: Add a make rule to build dtb for enabled boards" breaks build of the kernel immediately: /projects/linaro/linux-2.6/arch/arm/Makefile:292: *** mixed implicit and normal rules. Stop. > $ rpm -q make > make-3.82-4.fc15.x86_64 > > ''The previous behavior of mixing implicit and pattern rules in one line > like that was never supported or documented, but due to a "hole" in the > parser it worked for certain specific cases (for example, reversing that > line so the pattern comes first would not work, nor would adding extra > explicit targets after the pattern target). > > In 3.82, the parser was tightened in this respect and that "hole" was > closed, hence you see this error.'' This patch splits the rule to fix the bug. Reported-by: Andy Green <andy.green@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-14MUSB: shutdown: Make sure block is awake before doing shutdownJassi Brar
Without this an OOPS can be seen at shutdown because the peripheral unit is unclocked, leading to an "imprecise external abort" Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-14OMAP: Fixed gpio polarity of gpio USB-phy reset.Juergen Kilb
With commit 19403165 a main part of ehci-omap.c moved to drivers/mfd/omap-usb-host.c created by commit 17cdd29d. Due to this reorganisation the polarity used to reset the external USB phy changed and USB host doesn't recognize any devices. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-13ARM: vexpress: add basic dts DT sourceLorenzo Pieralisi
This patch provides a simple device tree source for the Versatile Express board. It just defines memory layout and assigns a compatible string to the board. Compiled blob tested on Versatile Express, passed to the kernel through u-boot. 'chosen' node defined within u-boot to avoid cluttering the default dts configuration. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-13ARM: vexpress: add basic DT platform matching supportLorenzo Pieralisi
This patch adds a DT match table to the Versatile Express machine description in order to enable basic device tree support. Tested on a Versatile Express board where the device tree blob is passed to the kernel by u-boot. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-13ARM: EXYNOS4: Register HSMMC2 before HSMMC0 on SMDKV310 boardTushar Behera
On Exynos4210 SOC, of all the HSMMC controllers only HSMMC2 can be used as a boot media. Hence the default SD/MMC card should be connected to HSMMC2. The secondary card is connected to HSMMC0. If HSMMC0 is registered before HSMMC2, the device node for default MMC card changes depending on whether secondary card is connected or not. It creates problem in mounting the file-system present in default SD/MMC card. Hence HSMMC2 should be registered before HSMMC0. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-12ARM: 6868/1: Preserve the VFP state during forkCatalin Marinas
VFP registers d16-d31 are callee saved registers and must be preserved during function calls, including fork(). The VFP configuration should also be preserved. The patch copies the full VFP state to the child process. Reported-by: Paul Wright <paul.wright@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> (cherry picked from commit c98c09773d80db93cae349f0496fef109feab54d)
2011-04-12ARM: 6867/1: Introduce THREAD_NOTIFY_COPY for copy_thread() hooksCatalin Marinas
This patch adds THREAD_NOTIFY_COPY for calling registered handlers during the copy_thread() function call. It also changes the VFP handler to use a switch statement rather than if..else and ignore this event. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> (cherry picked from commit 2e82669acf03e5bf2080f5d3ef005168e67d8a51)
2011-04-12ARM: 6866/1: Do not restrict HIGHPTE to !OUTER_CACHECatalin Marinas
The HIGHPTE config option depends on !OUTER_CACHE. However, there is no set_pte_ext() function that does outer cache maintenance by physical address, hence no need for such restriction. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> (cherry picked from commit 974508262e94b567f9d5b7ba1eef9fc493561f63)
2011-04-12ARM: 6865/1: perf: ensure pass through zero is counted on overflowWill Deacon
Commit a737823d ("ARM: perf: ensure overflows aren't missed due to IRQ latency") changed the way that event deltas are calculated on overflow so that we don't miss events when the new count value overtakes the previous one. Unfortunately, we forget to count the event that passes through zero so we end up being off by 1. This patch adds on the correction. Reported-by: Chris Moore <moore@free.fr> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> (cherry picked from commit 6759788b944139793bffa889761cc3d8d703fdc0)
2011-04-12ARM: 6864/1: hw_breakpoint: clear DBGVCR out of resetWill Deacon
The DBGVCR, used for configuring vector catch debug events, is UNKNOWN out of reset on ARMv7. When enabling monitor mode, this must be zeroed to avoid UNPREDICTABLE behaviour. This patch adds the zeroing code to the debug reset path. Cc: stable <stable@kernel.org> Reported-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> (cherry picked from commit e89c0d7090c54d7b11b9b091e495a1ae345dd3ff)
2011-04-12ARM: EXYNOS4: Fix card insert/removal event detection on smdkv310 boardThomas Abraham
On SMDKV310 board, a card detect gpio pin is available that is directly connected to the io pad of the sdhci controller. Fix incorrect value of cd_type field in platform data for sdhci instance 0 and 2. Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-12ARM: EXYNOS4: Fix incorrect mapping of gpio pull-up macro to register settingThomas Abraham
The S3C_GPIO_PULL_UP macro value incorrectly maps to a reserved setting of GPIO pull up/down registers on Exynos4 platform. Fix this incorrect mapping by adding wrappers to the s3c_gpio_setpull_updown and s3c_gpio_getpull_updown functions. Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-11ARM: EXYNOS4: CPUIDLE SupportJaecheol Lee
This patch supports cpuidle framework for EXYNOS4210. Currently, Only one idle state is possible to use, but more idle states can be added following by this patch. Signed-off-by: Jaecheol Lee <jc.lee@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> (cherry picked from commit df7bf189d23ecd1c211c273de462b93d9e3e1fef)
2011-04-06ARM: fix personality flag propagation across an execNicolas Pitre
Our SET_PERSONALITY() implementation was overwriting all existing personality flags, including ADDR_NO_RANDOMIZE, making them unavailable to processes being exec'd after a call to personality() in user space. This prevents the gdb test suite from running successfully. Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-05ARM: the ADDR_NO_RANDOMIZE personality flag should be honored with mmap()Nicolas Pitre
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-05ARM: ptrace: Migrate to regsets frameworkDave Martin
This patch migrates the implementation of the ptrace interface for the core integer registers, legacy FPA registers and VFP registers to use the regsets framework. As an added bonus, all this stuff gets included in coredumps at no extra cost. Without this patch, coredumps contained no VFP state. Third-party extension register sets (iwmmx, crunch) are not migrated by this patch, and continue to use the old implementation; these should be migratable without much extra work. Signed-off-by: Dave Martin <dave.martin@linaro.org> Acked-by: Will Deacon <Will.Deacon@arm.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-05ARM: ELF: Define new core note type for VFP registersDave Martin
The VFP registers are not currently included in coredumps, and there's no existing note type where they can sensibly be included, so this patch defines a dedicated note type for them. Signed-off-by: Dave Martin <dave.martin@linaro.org> Acked-by: Will Deacon <Will.Deacon@arm.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-04arm/dt: Add basic devicetree support to IGEPv2 and v3Grant Likely
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-04-04arm/dt: Add a make rule to build dtb for enabled boardsShawn Guo
With 'make ARCH=arm dtb', it builds Device Tree Blobs for those boards enabled by build CONFIG. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-04-04ARM: Only allow PM_SLEEP with CPUs which support suspendRussell King - ARM Linux
Offering CONFIG_PM_SLEEP for CPUs which do not support suspend leads to build errors, so only set CONFIG_ARCH_SUSPEND_POSSIBLE if we have a CPU selected which supports suspend. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-04ARM: Make consolidated PM sleep code depend on PM_SLEEPRussell King - ARM Linux
CONFIG_PM is now set whenever we support either runtime PM in addition to suspend and hibernate. This causes build errors when runtime PM is enabled on a platform, but the CPU does not have the appropriate support for suspend. So, switch this code to use CONFIG_PM_SLEEP rather than CONFIG_PM to allow runtime PM to be enabled without causing build errors. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
2011-04-03Fix the broken build for Marvell Dove platform.Konstantin Porotchkin
Remove call to the old GPIO init function. Fix old MPP control offset value. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Acked-by: Saeed Bishara <saeed.bishara@gmail.com> Signed-off-by: Nicolas Pitre <nico@fluxnic.net> (cherry picked from commit dc7b602dd481cad61fc4f18874bbdc5b04b5ee3e)
2011-04-01Merge branch 'omap-dvfs' into linaro-2.6.38Nicolas Pitre
2011-04-01OMAP4 PM: Add support for OMAP4 MPU DVFSVishwanath BS
This patchset adds support for OMAP4 MPU DVFS with following changes - add vdd information for omap4 - enable all relevant OPPs for MPU VDD - define and register get_rate and set_rate with DVFS layer Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP2PLUS: cpufreq DVFS changesVishwanath BS
This patch adds support for DVFS in cpufreq driver by replacing clock api with DVFS api. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01omap2plus: cpufreq: Add SMP support to cater OMAP4430Santosh Shilimkar
On OMAP SMP configuartion, both processors share the voltage and clock. So both CPUs needs to be scaled together and hence needs software co-ordination. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Kevin Hilman <khilman@ti.com> cc: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01omap: cpufreq: Split omap1 and omap2plus cpufreq drivers.Santosh Shilimkar
This patch is an attempt to cleanup the #ifdeferry in the omap cpufreq drivers. The split betwenn omap1 and omap2plus is logical because - omap1 doesn't support opp layer. - omap1 build is seperate from omap2plus. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Kevin Hilman <khilman@ti.com> Cc: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01omap2plus: clock: Add an alias cpu_ck to be used in common cpufreq driverSantosh Shilimkar
Add an alias clock node for cpu clock control on all OMAP2PLUS devices. The intention is avoid cpu_is_xxxx() checks in the common cpufreq driver. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01Revert "OMAP3: cpufreq driver changes for DVFS support"Vishwanath BS
This reverts commit 7feb1d6505144376a since there is another patch set for omap cpufreq changes at https://patchwork.kernel.org/patch/589081/ Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP: Add DVFS DocumentationVishwanath BS
Add Documentation for DVFS Framework Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP2PLUS: Enable various options in defconfigThara Gopinath
This patch enables Smartreflex and Cpu Freq in the omap2plus defconfig. Signed-off-by: Thara Gopinath <thara@ti.com>
2011-04-01OMAP PM: Initialise voltage domain as part of common infrastructureVishwanath BS
RIght now voltage layer is initialized as part of core init which is too late for devices to register with voltage domain as part of hwmod init. So moving voltage layer initialization as part of common infrastructure init. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP3: Add voltage dependency table for VDD1.Vishwanath BS
In OMAP3, for perfomrance reasons when VDD1 is at voltage above 1.075V, VDD2 should be at 1.15V for perfomrance reasons. This patch introduce this cross VDD dependency for OMAP3 VDD1. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP3: Introduce voltage domain info in the hwmod structures.Vishwanath BS
This patch adds voltage domain info in the relevant device hwmod structures so as to enable OMAP3 DVFS support. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP3: cpufreq driver changes for DVFS supportVishwanath BS
Changes in the omap cpufreq driver for DVFS support. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP3: Introduce custom set rate and get rate APIs for scalable devicesThara Gopinath
This patch also introduces omap3_mpu_set_rate, omap3_iva_set_rate, omap3_l3_set_rate, omap3_mpu_get_rate, omap3_iva_get_rate, omap3_l3_get_rate as device specific set rate and get rate APIs for OMAP3 mpu, iva and l3_main devices. This patch also calls into omap_device_populate_rate_fns during system init to register various set_rate and get_rate APIs with the omap device layer Signed-off-by: Thara Gopinath <thara@ti.com>
2011-04-01OMAP: Disable Smartreflex across DVFSThara Gopinath
This patch disables smartreflex for a particular voltage domain when the the voltage domain and the devices belonging to it is being scaled and re-enables it back once the scaling is done. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP: Introduce device scale implementationVishwanath BS
This patch adds omap_device_scale API which can be used to generic device rate scaling. Based on original patch from Thara. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com> Cc: Thara Gopinath <thara@ti.com>
2011-04-01OMAP: Introduce dependent voltage domain supportVishwanath BS
There could be dependencies between various voltage domains for maintaining system performance or hardware limitation reasons like VDD<X> should be at voltage v1 when VDD<Y> is at voltage v2. This patch introduce dependent vdd information structures in the voltage layer which can be used to populate these dependencies for a voltage domain. This patch also adds support to scale the dependent vdd and the scalable devices belonging to it during the scaling of a main vdd through omap_voltage_scale. As part of this, some of the voltage layer structure definitions are moved from voltage.c to voltage.h as it needs to be used in the dvfs layer for dependency voltage handling. Based on original patch from Thara. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com> Cc: Thara Gopinath <thara@ti.com>
2011-04-01OMAP: Implement Basic DVFSVishwanath BS
This patch introduces an API to perform DVFS for a given voltage domain. It takes omap_vdd_dvfs_info pointer as input parameter, computes the highest requested voltage for that vdd and scales all the devices in that vdd to the requested frequency along with voltage scaling. Based on original patch from Thara. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com> Cc: Thara Gopinath <thara@ti.com>
2011-04-01OMAP: Introduce device specific set rate and get rate in omap_device structureThara Gopinath
This patch extends the omap_device structure to contain pointers to scale the operating rate of the device and to retrieve the operating rate of the device. This patch also adds the three new APIs in the omap device layer namely omap_device_set_rate that can be called to set a new operating rate for a device, omap_device_get_rate that can be called to retrieve the operating frequency for a device and omap_device_register_dvfs_callbacks to register the device specific set_rate and get_rate functions. The omap_device_set_rate and omap_device_get_rate does some routine error checks and finally calls into the device specific set_rate and get_rate APIs populated through omap_device_populate_rate_fns. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01OMAP: Introduce accessory APIs for DVFSVishwanath BS
This patch introduces accessory APIs for DVFS. Data structures added: 1. omap_dev_user_list: This structure maintains list of frequency requests per device basis. When a device needs to be scaled to a particular frequency, This list is searched to find the maximum request for a given device. If noone has placed any request, device frequency is obtained from device opp table. 2. omap_vdd_dev_list: This strcucture stores device list per vdd basis. Whenever a device is registered with a vdd, it is added to this list. 3. omap_vdd_user_list: User list of devices associated with each voltage domain instance. The user list is implemented using plist structure with priority node populated with the voltage values. 4. omap_vdd_dvfs_info: This structure is used to abstract DVFS related information per VDD basis. It holds pointer to corresponding vdd's voltagedomain instance and pointer to user list. Following APIs have been added to operate on above data structures: 1. omap_dvfs_add_vdd_user - API to add a user into omap_vdd_user_list 2. omap_vdd_user_list - API to remove a user from omap_vdd_user_list 3. omap_dvfs_register_device - API to register a device with vdd 4. omap_dvfs_add_freq_request - API to add a frequency request into omap_dev_user_list 5. omap_dvfs_remove_freq_request - API to remove a frequency request from omap_dev_user_list 6. omap_dvfs_find_voltage - API to find the opp corresponding to given voltage DVFS layer is initialized and basic data structures are allocated and initialized as part of this. This patch is based on Thara's previous DVFS implementation, but with major rework. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com> Cc: Thara Gopinath <thara@ti.com>
2011-04-01OMAP2PLUS PM: move voltage layer header files to plat-omapVishwanath BS
DVFS layer will use Voltage layer APIs. So move voltage layer header files to plat-omap. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com>
2011-04-01Merge branch 'devicetree/arm-linaro-2.6.38' of ↵Nicolas Pitre
git://git.secretlab.ca/git/linux-2.6 into linaro-2.6.38
2011-04-01arm/dt: Add basic device tree support for mx51 and mx53 boardsJason Liu
This patch add support for the Genesi Efika MX Smarttop and Smartbook, the Freescale mx51 babbage board, and the Freescale mx53 loco board Signed-off-by: Jason Liu <jason.hui@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-04-01arm/dt: Add basic device tree support for overoAndy Doan
Enable basic device tree support for Gumstix Overo. tested with Overo Tide COM and Tobi expansion board Signed-off-by: Andy Doan <andy.doan@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-04-01arm/dt: Update basic device tree support for smdkv310 boardThomas Abraham
Add documentation, make dt_match table __initdata, and include the skeleton.dtsi file in the device tree. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-04-01Merge remote branch 'lttng/2.6.38.2-lttng-0.248'Avik Sil