28 Jun, 2016

1 commit


08 Dec, 2015

1 commit


13 Aug, 2015

2 commits

  • All the EP93xx boards exclusively use modedb to look up video
    modes from the command line. Root out the parametrization of
    custom video modes from the platform data and board files
    and simplify the driver.

    Cc: Jean-Christophe Plagniol-Villard
    Reviewed-by: H Hartley Sweeten
    Acked-by: Tomi Valkeinen
    Signed-off-by: Linus Walleij
    Signed-off-by: Olof Johansson

    Linus Walleij
     
  • Migrate EP93xx driver to the new 'set-state' interface provided by
    clockevents core, the earlier 'set-mode' interface is marked obsolete
    now.

    This also enables us to implement callbacks for new states of clockevent
    devices, for example: ONESHOT_STOPPED.

    Signed-off-by: Viresh Kumar
    Acked-by: Linus Walleij
    Reviewed-by: H Hartley Sweeten
    Signed-off-by: Olof Johansson

    Viresh Kumar
     

17 Jul, 2015

6 commits


08 Jul, 2015

4 commits


12 Jun, 2015

1 commit


28 Nov, 2014

1 commit

  • The dma_mask and coherent_dma_mask need to be set or DMA memory allocations
    will fail with error messages like this:

    ep93xx-dma ep93xx-dma-m2p: coherent DMA mask is unset

    ep93xx-dma ep93xx-dma-m2m: coherent DMA mask is unset

    Add the missing information to the ep93xx-dma-m2p and ep93xx-dma-m2m
    devices.

    Signed-off-by: H Hartley Sweeten
    Reported-by: Jeremy Moles
    Tested-by: Alexander Sverdlin
    Cc: Ryan Mallon
    Signed-off-by: Arnd Bergmann

    H Hartley Sweeten
     

02 Oct, 2014

1 commit

  • 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
    Acked-by: Nicolas Ferre
    Acked-by: Peter Foley
    Acked-by: Linus Walleij
    Signed-off-by: Michal Marek

    Masahiro Yamada
     

30 Jul, 2014

1 commit

  • The platforms selecting NEED_MACH_MEMORY_H defined the start address of
    their physical memory in the respective . With
    ARM_PATCH_PHYS_VIRT=y (which is quite common today) this is useless
    though because the definition isn't used but determined dynamically.

    So remove the definitions from all and provide the
    Kconfig symbol PHYS_OFFSET with the respective defaults in case
    ARM_PATCH_PHYS_VIRT isn't enabled.

    This allows to drop the dependency of PHYS_OFFSET on !NEED_MACH_MEMORY_H
    which prevents compiling an integrator nommu-kernel.
    (CONFIG_PAGE_OFFSET which has "default PHYS_OFFSET if !MMU" expanded to
    "0x" because CONFIG_PHYS_OFFSET doesn't exist as INTEGRATOR selects
    NEED_MACH_MEMORY_H.)

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Russell King

    Uwe Kleine-König
     

18 Jul, 2014

1 commit

  • ARMv6 and greater introduced a new instruction ("bx") which can be used
    to return from function calls. Recent CPUs perform better when the
    "bx lr" instruction is used rather than the "mov pc, lr" instruction,
    and this sequence is strongly recommended to be used by the ARM
    architecture manual (section A.4.1.1).

    We provide a new macro "ret" with all its variants for the condition
    code which will resolve to the appropriate instruction.

    Rather than doing this piecemeal, and miss some instances, change all
    the "mov pc" instances to use the new macro, with the exception of
    the "movs" instruction and the kprobes code. This allows us to detect
    the "mov pc, lr" case and fix it up - and also gives us the possibility
    of deploying this for other registers depending on the CPU selection.

    Reported-by: Will Deacon
    Tested-by: Stephen Warren # Tegra Jetson TK1
    Tested-by: Robert Jarzmik # mioa701_bootresume.S
    Tested-by: Andrew Lunn # Kirkwood
    Tested-by: Shawn Guo
    Tested-by: Tony Lindgren # OMAPs
    Tested-by: Gregory CLEMENT # Armada XP, 375, 385
    Acked-by: Sekhar Nori # DaVinci
    Acked-by: Christoffer Dall # kvm/hyp
    Acked-by: Haojian Zhuang # PXA3xx
    Acked-by: Stefano Stabellini # Xen
    Tested-by: Uwe Kleine-König # ARMv7M
    Tested-by: Simon Horman # Shmobile
    Signed-off-by: Russell King

    Russell King
     

25 Apr, 2014

2 commits

  • The Undef abort handler in the kernel reads the undefined instruction
    from user space. If the page table was modified from another CPU, the
    user access could fail and do_page_fault() will be executed with
    interrupts disabled. This can potentially deadlock on ARM11MPCore or on
    Cortex-A15 with erratum 798181 workaround enabled (both implying IPI for
    TLB maintenance with page table lock held).

    This patch enables the IRQs in __und_usr before attempting to read the
    instruction from user space.

    Signed-off-by: Catalin Marinas
    Tested-by: Arun KS
    Cc: Hartley Sweeten
    Cc: Ryan Mallon
    Signed-off-by: Russell King

    Catalin Marinas
     
  • This patch is in preparation for calling the crunch_task_enable()
    function with interrupts enabled.

    Signed-off-by: Catalin Marinas
    Cc: Hartley Sweeten
    Cc: Ryan Mallon
    Signed-off-by: Russell King

    Catalin Marinas
     

06 Apr, 2014

1 commit

  • Pull ARM SoC cleanups from Arnd Bergmann:
    "These cleanup patches are mainly move stuff around and should all be
    harmless. They are mainly split out so that other branches can be
    based on top to avoid conflicts.

    Notable changes are:

    - We finally remove all mach/timex.h, after CLOCK_TICK_RATE is no
    longer used (Uwe Kleine-König)
    - The Qualcomm MSM platform is split out into legacy mach-msm and
    new-style mach-qcom, to allow easier maintainance of the new
    hardware support without regressions (Kumar Gala)
    - A rework of some of the Kconfig logic to simplify multiplatform
    support (Rob Herring)
    - Samsung Exynos gets closer to supporting multiplatform (Sachin
    Kamat and others)
    - mach-bcm3528 gets merged into mach-bcm (Stephen Warren)
    - at91 gains some common clock framework support (Alexandre Belloni,
    Jean-Jacques Hiblot and other French people)"

    * tag 'cleanup-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (89 commits)
    ARM: hisi: select HAVE_ARM_SCU only for SMP
    ARM: efm32: allow uncompress debug output
    ARM: prima2: build reset code standalone
    ARM: at91: add PWM clock
    ARM: at91: move sam9261 SoC to common clk
    ARM: at91: prepare common clk transition for sam9261 SoC
    ARM: at91: updated the at91_dt_defconfig with support for the ADS7846
    ARM: at91: dt: sam9261: Device Tree support for the at91sam9261ek
    ARM: at91: dt: defconfig: Added the sam9261 to the list of DT-enabled SOCs
    ARM: at91: dt: Add at91sam9261 dt SoC support
    ARM: at91: switch sam9rl to common clock framework
    ARM: at91/dt: define main clk frequency of at91sam9rlek
    ARM: at91/dt: define at91sam9rl clocks
    ARM: at91: prepare common clk transition for sam9rl SoCs
    ARM: at91: prepare sam9 dt boards transition to common clk
    ARM: at91: dt: sam9rl: Device Tree for the at91sam9rlek
    ARM: at91/defconfig: Add the sam9rl to the list of DT-enabled SOCs
    ARM: at91: Add at91sam9rl DT SoC support
    ARM: at91: prepare at91sam9rl DT transition
    ARM: at91/defconfig: refresh at91sam9260_9g20_defconfig
    ...

    Linus Torvalds
     

22 Mar, 2014

1 commit


19 Feb, 2014

1 commit

  • This cleanup series gets rid of for platforms not using
    ARCH_MULTIPLATFORM. (For multi-platform code it's already unused since
    387798b (ARM: initial multiplatform support).)

    To make this work some code out of arch/arm needed to be adapted. The
    respective changes got acks by their maintainers to be taken via armsoc
    (with Andrew Morton substituting for Alessandro Zummo as rtc maintainer).

    Compared to the previous pull request there was another patch added that
    fixes a (non-critical) regression on ixp4xx. Olof Johansson asked to not
    squash this fix into the original commit to save him from the need to
    reverify the series.

    * tag 'dropmachtimexh-v2' of git://git.pengutronix.de/git/ukl/linux:
    ARM: ixp4xx: fix timer latch calculation
    ARM: drop for !ARCH_MULTIPLATFORM, too
    ARM: rpc: stop using
    ARM: ixp4xx: stop using
    input: ixp4xx-beeper: don't use symbols from
    ARM: at91: don't use
    ARM: ep93xx: stop using mach/timex.h
    ARM: mmp: stop using mach/timex.h
    ARM: netx: stop using mach/timex.h
    ARM: sa1100: stop using mach/timex.h
    clocksource: sirf/marco+prima2: drop usage of CLOCK_TICK_RATE
    rtc: pxa: drop unused #define TIMER_FREQ
    rtc: at91sam9: include explicitly
    ARM/serial: at91: switch atmel serial to use gpiolib

    Signed-off-by: Olof Johansson

    Olof Johansson
     

21 Dec, 2013

1 commit

  • While 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

    Uwe Kleine-König
     

20 Dec, 2013

1 commit

  • mach/timex.h is the last remaining header that is unused for multiarch
    builds but necessary for singlearch builds. To allow to get rid of it
    for singlearch builds, too, drop its usage in ep93xx arch code by
    substituting CLOCK_TICK_RATE by an already defined local cpp symbol.

    Acked-by: H Hartley Sweeten
    Signed-off-by: Uwe Kleine-König

    Uwe Kleine-König
     

26 Nov, 2013

2 commits

  • Use the soc bus to report the silicon revision and Maverick Key. Both
    are not currently exposed to the user. In addition, fill in the SoC
    family and machine for completeness.

    Signed-off-by: H Hartley Sweeten
    Acked-by: Ryan Mallon
    Signed-off-by: Ryan Mallon
    Cc: Alexander Shiyan
    Signed-off-by: Olof Johansson

    H Hartley Sweeten
     
  • 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
    Acked-by: H Hartley Sweeten
    Signed-off-by: Ryan Mallon
    Signed-off-by: Olof Johansson

    Michael Opdenacker
     

30 Oct, 2013

1 commit

  • Convert ep93xx to use the OHCI platform driver and remove the
    ohci-ep93xx bus glue driver.

    Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB
    is still enabled by default on the EP93xx platform.

    Signed-off-by: H Hartley Sweeten
    Acked-by: Alan Stern
    Cc: Ryan Mallon
    Cc: Lennert Buytenhek
    Cc: Greg Kroah-Hartman
    Cc: Olof Johansson
    Cc: Russell King
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     

13 Sep, 2013

1 commit

  • Pull ARM SoC fixes from Olof Johansson:
    "A small batch of fixes that have trickled in over the last week of the
    merge window.

    Also included are few small devicetree updates for sunxi, since it
    enables me to use one of their newer boards (cubieboard2) for
    additional test coverage. The support for that SoC is new for 3.12,
    so there's no exposure to new regressions due to it"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: dts: sun7i: olinuxino-micro: Enable the EMAC
    ARM: dts: sun7i: cubieboard2: Enable the EMAC
    ARM: dts: sun7i: Add the muxing options for the EMAC
    ARM: dts: sun7i: Enable the Ethernet in the A20
    i2c: davinci: Fix bad dev_get_platdata() conversion
    ARM: vexpress: allow dcscb and tc2_pm in a combined ARMv6+v7 build
    ARM: shmobile: lager: Do not use register_type field of struct sh_eth_plat_data
    ARM: pxa: ssp: Check return values from phandle lookups
    ARM: PCI: versatile: Fix SMAP register offsets
    ARM: PCI: versatile: Fix PCI I/O
    ARM: PCI: versatile: Fix map_irq function to match hardware
    ARM: ep93xx: Don't use modem interface on the second UART
    ARM: shmobile: r8a7779: Update early timer initialisation order

    Linus Torvalds
     

11 Sep, 2013

2 commits

  • From Ryan Mallon, a fix for ep93xx.

    * tag 'ep93xx-fixes-for-3.12' of git://github.com/RyanMallon/linux-ep93xx:
    ARM: ep93xx: Don't use modem interface on the second UART

    Signed-off-by: Olof Johansson

    Olof Johansson
     
  • Pull MMC updates from Chris Ball:
    "MMC highlights for 3.12:

    Core:
    - Support Allocation Units 8MB-64MB in SD3.0, previous max was 4MB.
    - The slot-gpio helper can now handle GPIO debouncing card-detect.
    - Read supported voltages from DT "voltage-ranges" property.

    Drivers:
    - dw_mmc: Add support for ARC architecture, and support exynos5420.
    - mmc_spi: Support CD/RO GPIOs.
    - sh_mobile_sdhi: Add compatibility for more Renesas SoCs.
    - sh_mmcif: Add DT support for DMA channels"

    * tag 'mmc-updates-for-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (50 commits)
    Revert "mmc: tmio-mmc: Remove .set_pwr() callback from platform data"
    mmc: dw_mmc: Add support for ARC
    mmc: sdhci-s3c: initialize host->quirks2 for using quirks2
    mmc: sdhci-s3c: fix the wrong register value, when clock is disabled
    mmc: esdhc: add support to get voltage from device-tree
    mmc: sdhci: get voltage from sdhc host
    mmc: core: parse voltage from device-tree
    mmc: omap_hsmmc: use the generic config for omap2plus devices
    mmc: omap_hsmmc: clear status flags before starting a new command
    mmc: dw_mmc: exynos: Add a new compatible string for exynos5420
    mmc: sh_mmcif: revision-specific CLK_CTRL2 handling
    mmc: sh_mmcif: revision-specific Command Completion Signal handling
    mmc: sh_mmcif: add support for Device Tree DMA bindings
    mmc: sh_mmcif: move header include from header into .c
    mmc: SDHI: add DT compatibility strings for further SoCs
    mmc: dw_mmc-pci: enable bus-mastering mode
    mmc: dw_mmc-pci: get resources from a proper BAR
    mmc: tmio-mmc: Remove .set_pwr() callback from platform data
    mmc: tmio-mmc: Remove .get_cd() callback from platform data
    mmc: sh_mobile_sdhi: Remove .set_pwr() callback from platform data
    ...

    Linus Torvalds
     

07 Sep, 2013

1 commit

  • Pull ARM SoC cleanups from Olof Johansson:
    "This branch contains code cleanups, moves and removals for 3.12.

    There's a large number of various cleanups, and a nice net removal of
    13500 lines of code.

    Highlights worth mentioning are:

    - A series of patches from Stephen Boyd removing the ARM local timer
    API.
    - Move of Qualcomm MSM IOMMU code to drivers/iommu.
    - Samsung PWM driver cleanups from Tomasz Figa, removing legacy PWM
    driver and switching over to the drivers/pwm one.
    - Removal of some unusued auto-generated headers for OMAP2+ (PRM/CM).

    There's also a move of a header file out of include/linux/i2c/ to
    platform_data, where it really belongs. It touches mostly ARM
    platform code for include changes so we took it through our tree"

    * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (83 commits)
    ARM: OMAP2+: Add back the define for AM33XX_RST_GLOBAL_WARM_SW_MASK
    gpio: (gpio-pca953x) move header to linux/platform_data/
    arm: zynq: hotplug: Remove unreachable code
    ARM: SAMSUNG: Remove unnecessary exynos4_default_sdhci*()
    tegra: simplify use of devm_ioremap_resource
    ARM: SAMSUNG: Remove plat/regs-timer.h header
    ARM: SAMSUNG: Remove remaining uses of plat/regs-timer.h header
    ARM: SAMSUNG: Remove pwm-clock infrastructure
    ARM: SAMSUNG: Remove old PWM timer platform devices
    pwm: Remove superseded pwm-samsung-legacy driver
    ARM: SAMSUNG: Modify board files to use new PWM platform device
    ARM: SAMSUNG: Rework private data handling in dev-backlight
    pwm: Add new pwm-samsung driver
    ARM: mach-mvebu: remove redundant DT parsing and validation
    ARM: msm: Only compile io.c on platforms that use it
    iommu/msm: Move mach includes to iommu directory
    ARM: msm: Remove devices-iommu.c
    ARM: msm: Move mach/board.h contents to common.h
    ARM: msm: Migrate msm_timer to CLOCKSOURCE_OF_DECLARE
    ARM: msm: Remove TMR and TMR0 static mappings
    ...

    Linus Torvalds
     

03 Sep, 2013

1 commit


30 Aug, 2013

1 commit


26 Aug, 2013

3 commits

  • The generic option DEBUG_LL_UART_PL01X is now used to select the UART
    type for the kernel low-level debugging on the ep93xx platform. This
    enables two config options to provide the physical and virtual base
    address of the debug UART.

    Use the generic options instead of providing platform specific options
    to select the debug UART.

    UART1 is selected with: DEBUG_UART_PHYS = 0x808c0000
    DEBUG_UART_VIRT = 0xfedc0000

    UART2 is selected with: DEBUG_UART_PHYS = 0x808d0000
    DEBUG_UART_VIRT = 0xfedd0000

    UART3 is selected with: DEBUG_UART_PHYS = 0x808e0000
    DEBUG_UART_VIRT = 0xfede0000

    The selected UART must already be initialized by the bootloader. If it
    isn't setup nothing will appear (which might be desired).

    Signed-off-by: H Hartley Sweeten
    Cc: Ryan Mallon
    Signed-off-by: Russell King

    Hartley Sweeten
     
  • Now that the PL01X debug include can mostly stand alone without
    requiring platforms to provide any macros, move it into the debug
    directory so it can be directly included. This allows us to get rid of
    a lot of debug-macros include files.

    The autodetect case for Versatile Express and the ux500 are left alone;
    these are more complicated implementations.

    Acked-by: Rob Herring
    Acked-by: Ryan Mallon
    Signed-off-by: Russell King

    Russell King
     
  • Move the definition of the UART register addresses out of the platform
    specific header files into the Kconfig files.

    Acked-by: Ryan Mallon
    Signed-off-by: Russell King

    Russell King
     

25 Aug, 2013

1 commit


10 Jul, 2013

1 commit

  • 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
    Cc: Russell King
    Cc: Russ Anderson
    Cc: Robin Holt
    Cc: H. Peter Anvin
    Cc: Guan Xuetao
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robin Holt