summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2015-11-05ARM: sunxi: update defconfigKlaus Goger
use make savedefconfig to create a proper defconfig file. * added CAN, and SPIDEV to defconfig Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-11-05ARM: dts: pangolin: pinmux ohci2Klaus Goger
added pinmux settings for ohci2. enable pull downs on pins so that disconnects from USB devices are detected properly. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-11-05ARM: dts: pangolin: enable spi1 and spidevKlaus Goger
added devicetree entry for spi1 also added a spidev entries to create spi devices for the spidev userland interface Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-08-03ARM: dts: pangolin: Switch led trigger to mmc1Jakob Unterwurzacher
mmc0 and mmc1 have swapped places, mmc0 is the emmc now. Also, let's have better labels.
2015-07-31ARM: sunxi: dts: pangolin: disable 1.2Ghz cpufreqKlaus Goger
disable the 1.2Ghz frequency point so users have to enable it explicity. this should ensure that only boards with installed thermal solutions are used with 1.2Ghz. Note that running on 1.2Ghz will not damage the board as we turn CPU off when overheating. We only want to avoid unexpected shutdowns for users when using the default setup and not mounting the heat sink. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: dts: pangolin: Use rootfs on sd card by defaultJakob Unterwurzacher
2015-07-30ARM: sunxi: dts: reduce rgmii drive strengthKlaus Goger
we don't need the highest drive strength for rgmii like the other sunxi boards. set it to second lowest as lowest didn't work anymore. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: dts: pangolin: Redefine mmc0 to change probing orderJakob Unterwurzacher
This makes sure the eMMC always is found as mmcblk0
2015-07-30ARM: dts: pangolin: enable spi and add spi norKlaus Goger
adds missing pin configuration to the a31 dtsi Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: dts: pangolin: change eth phy reset timingKlaus Goger
reset timing was a bit off which resulted in not detecting the phy. changed the settings so that the phy will be found again. TODO: verify timing while measuring the reset line Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: dts: pangolin: change default bootargsKlaus Goger
change the default bootargs in the dts to something more sane since the console will always be at ttyS2 for the dev kit. set rootfs to sd card as the devkit will ship with a sd card Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sunxi: dts: enable uart1 for pangolinKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sunxi: dts: add uart1 pinsKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: enable drivers in pangolin defconfigKlaus Goger
AMC6821 - thermal sensor and fan controller ISL1208 - rtc Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30dts: sun6i: pangolin thermal trips and mapsOctav Zlatior
* defines the trip points for active and passive cooling * defines the fan device in i2c3 Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30dts: sun6i: adds cpu transition clockOctav Zlatior
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30dts: sunxi: changes operating points for stabilityOctav Zlatior
* improved stability by reducing number of operating points * sampling-rate set to a higher value for improved performance * regulator max-voltage set to a valid value (1.36) Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: sunxi: add I2C RTC to pangolin dtsKlaus Goger
enable the rtc (isl1208 compatible) disable the soc rtc since there will be no battery backup for it anyways Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: enable I2C on pangolinKlaus Goger
* added i2c driver to defconfig * added i2c3 pins to A31 dtsi * enabled all i2c blocks in dts Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: set cpu operating points and ramp-rateOctav Zlatior
* operating points for different frequencies with voltages set to optimize power consumption * clock latency and ramp-rate: these values seem to provide enough time for the voltage to adjust before frequency changes Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: DTS: Enabling thermal sensor of Pangolin board.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: sunxi: enable lzma in pangolin defconfigKlaus Goger
switching from gzip to lzma reduces the uImage size about 1MB Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30dts: sunxi: add leds to pangolin dtsKlaus Goger
* LED on the module (heartbeat) * LED on the baseboard (MMC0) Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30dts: sunxi: enable ethernet for pangolinKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: DTS: Updating Pangolin defconfig.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: DTS: Adding DVFS settings for Pangolin board.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30Clk: sunxi: Adding support for GPU clocks and PLL8/9.Christoph Muellner
This patch adds support for the GPU clocks on sun6i a31. This is a typical clock path, which can be realized with this patch: * PLL8 -> GPU_HYD -> GPU_MEM * PLL9 -> GPU_CORE * AHB1 -> AHB1_GPU Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30DTS: sunxi: Adding CPU supply and frequency info for Pangolin board.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30DTS: sunxi: Fixing USB1 VBUS pin for the Pangolin board.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30DTS: sunxi: Adding missing reset to pinctrl node.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30DTS: sunxi: Add cpuN labels to sun6i-a31.dtsiChristoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30Adding Pangolin regulator information to DTS.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30Adding pangolin board DTB generation to MACH_SUN6I.Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: sunxi: add pangolin defconfigKlaus Goger
basic defconfig working with systemd. do not try to upstream. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: dts: add dts for pangolinJakob Unterwurzacher
add initial support for the Allwinner A31 based Qseven module pangolin from Theobroma Systems. derived from sun6i-a31-hummingbird.dts Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: dts: sun6i: Set PLL6 as parent to AHB1 clock in AHB1 clock nodeChen-Yu Tsai
On sun6i we already have PLL6 as AHB1 clock's parent. However this was previously set in the dma controller node, which takes effect when the dma controller is probed. We want this to take effect as soon as possible, so hrtimer rate calculation is correct, and to be sure the AHB1 clock rate remains as stable as possible. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: dts: sun6i: Add cpu thermal zones to dtsiChen-Yu Tsai
The core temperature sensor now supports thermal zones. Add a thermal zone mapping for the cpus with passive cooling (cpufreq throttling). Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: dts: sun6i: Add cpu clock reference and operating points to dtsiChen-Yu Tsai
The cpu core is clocked from the "cpu" clock. Add a reference to it in the first cpu node. Also add "cpu0" label to the node. The operating points were taken from the a list compiled by Maxime Ripard, which is based on A31 FEX files from the sunxi-boards repository. Not all boards have the same settings. The settings in this patch are the ones shared by A/B/C revisions, plus the default clock setting from u-boot. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-07-30ARM: dts: sun6i: add p2wi controller node to dtsiBoris BREZILLON
The p2wi controller has only one possible pinmux setting. Use it by default in the dtsi, instead of having to set it in each board's dts. Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> [wens@csie.org: reformat commit title; rename p2wi pins and use as default] Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2015-04-10Merge tag 'nios2-fixes-v4.0-final' of ↵Linus Torvalds
git://git.rocketboards.org/linux-socfpga-next Pull arch/nios2 fixes from Ley Foon Tan: "There are 3 arch/nios2 fixes for 4.0 final: - fix cache coherency issue when debugging with gdb - move restart_block to struct task_struct (aligned with other architectures) - fix for missing registers defines for ptrace" * tag 'nios2-fixes-v4.0-final' of git://git.rocketboards.org/linux-socfpga-next: nios2: fix cache coherency issue when debug with gdb nios2: add missing ptrace registers defines nios2: signal: Move restart_block to struct task_struct
2015-04-10nios2: fix cache coherency issue when debug with gdbLey Foon Tan
Remove the end address checking for flushda function. We need to flush each address line for flushda instruction, from start to end address. This is because flushda instruction only flush the cache if tag and line fields are matched. Change to use ldwio instruction (bypass cache) to load the instruction that causing trap. Our interest is the actual instruction that executed by the processor, this should be uncached. Note, EA address might be an userspace cached address. Signed-off-by: Ley Foon Tan <lftan@altera.com>
2015-04-09Merge tag 'pci-v4.0-fixes-3' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci Pull PCI fixes from Bjorn Helgaas: "Here are some fixes for v4.0. I apologize for how late they are. We were hoping for some better fixes, but couldn't get them polished in time. These fix: - a Xen domU oops with PCI passthrough devices - a sparc T5 boot failure - a STM SPEAr13xx crash (use after initdata freed) - a cpcihp hotplug driver thinko - an AER thinko that printed stack junk Details: Enumeration - Don't look for ACPI hotplug parameters if ACPI is disabled (Bjorn Helgaas) Resource management - Revert "sparc/PCI: Clip bridge windows to fit in upstream windows" (Bjorn Helgaas) AER - Avoid info leak in __print_tlp_header() (Rasmus Villemoes) PCI device hotplug - Add missing curly braces in cpci_configure_slot() (Dan Carpenter) ST Microelectronics SPEAr13xx host bridge driver - Drop __initdata from spear13xx_pcie_driver (Matwey V. Kornilov) * tag 'pci-v4.0-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: Revert "sparc/PCI: Clip bridge windows to fit in upstream windows" PCI: Don't look for ACPI hotplug parameters if ACPI is disabled PCI: cpcihp: Add missing curly braces in cpci_configure_slot() PCI/AER: Avoid info leak in __print_tlp_header() PCI: spear: Drop __initdata from spear13xx_pcie_driver
2015-04-09nios2: add missing ptrace registers definesLey Foon Tan
These are all register available in nios2. Signed-off-by: Ley Foon Tan <lftan@altera.com>
2015-04-08x86: clean up/fix 'copy_in_user()' tail zeroingLinus Torvalds
The rule for 'copy_from_user()' is that it zeroes the remaining kernel buffer even when the copy fails halfway, just to make sure that we don't leave uninitialized kernel memory around. Because even if we check for errors, some kernel buffers stay around after thge copy (think page cache). However, the x86-64 logic for user copies uses a copy_user_generic() function for all the cases, that set the "zerorest" flag for any fault on the source buffer. Which meant that it didn't just try to clear the kernel buffer after a failure in copy_from_user(), it also tried to clear the destination user buffer for the "copy_in_user()" case. Not only is that pointless, it also means that the clearing code has to worry about the tail clearing taking page faults for the user buffer case. Which is just stupid, since that case shouldn't happen in the first place. Get rid of the whole "zerorest" thing entirely, and instead just check if the destination is in kernel space or not. And then just use memset() to clear the tail of the kernel buffer if necessary. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-04-08Revert "sparc/PCI: Clip bridge windows to fit in upstream windows"Bjorn Helgaas
This reverts commit d63e2e1f3df904bf6bd150bdafb42ddbb3257ea8. David Ahern reported that d63e2e1f3df9 breaks booting on an 8-socket T5 sparc system. He also verified that the system boots with d63e2e1f3df9 reverted. Yinghai has some fixes, but they need a little more polishing than we can do before v4.0. Link: http://lkml.kernel.org/r/5514391F.2030300@oracle.com # report Link: http://lkml.kernel.org/r/1427857069-6789-1-git-send-email-yinghai@kernel.org # patches Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: stable@vger.kernel.org # v3.19+
2015-04-08nios2: signal: Move restart_block to struct task_structLey Foon Tan
See https://lkml.org/lkml/2014/10/29/643 and commit f56141e3e2d9 ("all arches, signal: move restart_block to struct task_struct") Signed-off-by: Ley Foon Tan <lftan@altera.com>
2015-04-03Merge branch 'x86-urgent-for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 fixes from Ingo Molnar: "Misc fixes: a SYSRET single-stepping fix, a dmi-scan robustization fix, a reboot quirk and a kgdb fixlet" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: kgdb/x86: Fix reporting of 'si' in kgdb on x86_64 x86/asm/entry/64: Disable opportunistic SYSRET if regs->flags has TF set x86/reboot: Add ASRock Q1900DC-ITX mainboard reboot quirk MAINTAINERS: Change the x86 microcode loader maintainer firmware: dmi_scan: Prevent dmi_num integer overflow
2015-04-03Merge branch 'perf-urgent-for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull perf fixes from Ingo Molnar: "Two x86 Intel PMU constraint handling fixes" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86/intel: Fix Haswell CYCLE_ACTIVITY.* counter constraints perf/x86/intel: Filter branches for PEBS event
2015-04-02Merge tag 'stable/for-linus-4.0-rc6-tag' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip Pull xen regression fixes from David Vrabel: "Fix two regressions in the balloon driver's use of memory hotplug when used in a PV guest" * tag 'stable/for-linus-4.0-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen/balloon: before adding hotplugged memory, set frames to invalid x86/xen: prepare p2m list for memory hotplug
2015-04-02perf/x86/intel: Fix Haswell CYCLE_ACTIVITY.* counter constraintsAndi Kleen
Some of the CYCLE_ACTIVITY.* events can only be scheduled on counter 2. Due to a typo Haswell matched those with INTEL_EVENT_CONSTRAINT, which lead to the events never matching as the comparison does not expect anything in the umask too. Fix the typo. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: http://lkml.kernel.org/r/1425925222-32361-1-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar <mingo@kernel.org>