1. 12 Dec, 2018 8 commits
    • Arnd Bergmann's avatar
      ARM: pxa: avoid section mismatch warning · 88af3209
      Arnd Bergmann authored
      WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the function littleton_init_lcd() to the function .init.text:pxa_set_fb_info()
      The function littleton_init_lcd() references
      the function __init pxa_set_fb_info().
      This is often because littleton_init_lcd lacks a __init
      annotation or the annotation of pxa_set_fb_info is wrong.
      
      WARNING: vmlinux.o(.text+0xf824): Section mismatch in reference from the function zeus_register_ohci() to the function .init.text:pxa_set_ohci_info()
      The function zeus_register_ohci() references
      the function __init pxa_set_ohci_info().
      This is often because zeus_register_ohci lacks a __init
      annotation or the annotation of pxa_set_ohci_info is wrong.
      
      WARNING: vmlinux.o(.text+0xf95c): Section mismatch in reference from the function cm_x300_init_u2d() to the function .init.text:pxa3xx_set_u2d_info()
      The function cm_x300_init_u2d() references
      the function __init pxa3xx_set_u2d_info().
      This is often because cm_x300_init_u2d lacks a __init
      annotation or the annotation of pxa3xx_set_u2d_info is wrong.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      88af3209
    • Arnd Bergmann's avatar
      ARM: mmp: fix pxa168_device_usb_phy use on aspenite · 5d3e11c4
      Arnd Bergmann authored
      This one ended up in the wrong header file, causing a build failure
      on at least one platform:
      
      arch/arm/mach-mmp/aspenite.c: In function 'common_init':
      arch/arm/mach-mmp/aspenite.c:260:28: error: 'pxa168_device_usb_phy' undeclared (first use in this function); did you mean 'pxa168_device_ssp5'?
      
      We can just include both the pxa168.h and pxa910.h headers to make
      that work, which gets us to the next failure:
      
      arch/arm/mach-mmp/aspenite.o: In function `common_init':
      aspenite.c:(.init.text+0x1c0): undefined reference to `pxa168_device_usb_phy'
      
      This is solved by using the matching ifdef check around the
      USB device registration, enabling them only when either USB
      host or gadget mode are enabled.
      
      Fixes: a225daf7 ("ARM: mmp: add a pxa-usb-phy device")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      5d3e11c4
    • Arnd Bergmann's avatar
      ARM: mmp: fix timer_init calls · 12d3a30d
      Arnd Bergmann authored
      The change to passing the timer frequency as a function argument
      was a good idea, but caused a build failure for one user that
      was missed in the update:
      
      arch/arm/mach-mmp/time.c: In function 'mmp_dt_init_timer':
      arch/arm/mach-mmp/time.c:242:2: error: implicit declaration of function 'timer_init'; did you mean 'hrtimer_init'? [-Werror=implicit-function-declaration]
      
      Change that as well to fix the build error, and rename the
      function to put it into a proper namespace and make it clearer
      what is actually going on.
      
      I saw that the high 6500000 HZ frequency was previously only
      set with CONFIG_MMP2, but is now also used with MMP (pxa910),
      so I'm changing that back here. Please make sure that the
      frequencies are all correct now.
      
      Fixes: f36797ee ("ARM: mmp/mmp2: dt: enable the clock")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      12d3a30d
    • Olof Johansson's avatar
      Merge tag 'imx-soc-4.21' of... · c8730395
      Olof Johansson authored
      Merge tag 'imx-soc-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/soc
      
      i.MX SoC changes for 4.21:
       - An improvement on i.MX debugging options that only defines
         DEBUG_IMX_UART_PORT if needed, so that the option will not be present
         in the kernel config when DEBUG_LL is disabled.
       - Adds the necessary platform support for i.MX7ULP SoC and configures
         power mode to Partial Stop mode 3 with system/bus clock enabled.
         Otherwise the default STOP mode will gate off system/bus clock when
         WFI gets executed on i.MX7ULP.
       - A fix from Arnd on SOC_IMX7ULP option dependency.
      
      * tag 'imx-soc-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        ARM: imx: fix dependencies on imx7ulp
        ARM: imx: add initial support for imx7ulp
        ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      c8730395
    • Olof Johansson's avatar
      Merge tag 'samsung-soc-4.21' of... · 3aab5403
      Olof Johansson authored
      Merge tag 'samsung-soc-4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/soc
      
      Samsung mach/soc changes for v4.21
      
      Just cleanups of: legacy way of setting external wakeup interrupts, old
      power management debugging functions and duplicated secondary startup
      initialization.
      
      * tag 'samsung-soc-4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
        ARM: exynos: Remove secondary startup initialization from smp_prepare_cpus
        ARM: samsung: Limit SAMSUNG_PM_DEBUG config option to non-Exynos platforms
        ARM: exynos: Remove no longer needed s3c_pm_check_*() calls
        ARM: exynos: Remove legacy setting of external wakeup interrupts
        ARM: s5pv210: Remove legacy setting of external wakeup interrupts
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      3aab5403
    • Olof Johansson's avatar
      Merge tag 'sunxi-core-for-4.21' of... · abd488c0
      Olof Johansson authored
      Merge tag 'sunxi-core-for-4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into next/soc
      
      Allwinner core changes for 4.21
      
      A few patches to enable a new Allwinner SoC based on an armv5 CPU.
      
      * tag 'sunxi-core-for-4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        dt-bindings: watchdog: Add Allwinner ARMv5 F1C100s wdt
        ARM: sunxi: add Allwinner ARMv5 SoCs
        dt-bindings: arm: Add new Allwinner ARMv5 F1C100s SoC
        ARM: Check ARCH_MULTI_V7 to differentiate ARMv5/v7 Allwinner SoCs
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      abd488c0
    • Olof Johansson's avatar
      Merge tag 'davinci-for-v4.21/soc' of... · 767ae017
      Olof Johansson authored
      Merge tag 'davinci-for-v4.21/soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci into next/soc
      
      DaVinci SoC updates for v4.21
      -----------------------------
      
      This set of patches moves DaVinci one step closer to
      not relying on at24 platform data by relying on nvmem
      cell lookups instead.
      
      Once other dependencies are merged, for v4.22, plan is
      to merge another series of patches removing at24
      platform data.
      
      * tag 'davinci-for-v4.21/soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
        ARM: davinci: da850-evm: remove unnecessary include
        ARM: davinci: dm850-evm: use cell nvmem lookup for mac address
        ARM: davinci: mityomapl138: use cell nvmem lookup for mac address
        ARM: davinci: da830-evm: use cell nvmem lookup for mac address
        ARM: davinci: dm646x-evm: use cell nvmem lookup for mac address
        ARM: davinci: dm644x-evm: use cell nvmem lookup for mac address
        ARM: davinci: dm365-evm: use cell nvmem lookup for mac address
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      767ae017
    • Olof Johansson's avatar
      Merge tag 'renesas-soc-for-v4.21' of... · 50ba3700
      Olof Johansson authored
      Merge tag 'renesas-soc-for-v4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/soc
      
      Renesas ARM Based SoC Updates for v4.21
      
      * pm-rmobile driver
        - Move to drivers/soc/renesas/
        - Clean up struct rmobile_pm_domain
      * Renesas SoC Kconfig Symbols
        - Move symbols for ARM and SoCs to drivers/soc/renesas/
        - Hide ARCH_RZN1 to improve consistency
      * SH-Mobile AG5 (sh73a0) SoC: Remove obsolete inclusion of <asm/smp_twd.h>
      * Restrict TWD and SCU to Renesas ARM based SoCs where they are present
      * Enable GPIOLIB on Renesas arm64 based SoCs to allow GPIO driver selection
      
      * tag 'renesas-soc-for-v4.21' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
        ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/
        ARM: shmobile: R-Mobile: Clean up struct rmobile_pm_domain
        ARM: shmobile: Move SoC Kconfig symbols to drivers/soc/renesas/
        arm64: renesas: Move SoC Kconfig symbols to drivers/soc/renesas/
        ARM: shmobile: Hide ARCH_RZN1 to improve consistency
        ARM: shmobile: sh73a0: Remove obsolete inclusion of <asm/smp_twd.h>
        ARM: shmobile: Restrict TWD support to SoCs that have it
        ARM: shmobile: Restrict SCU support to SoCs that have it
        arm64: renesas: Enable GPIOLIB to allow GPIO driver selection
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      50ba3700
  2. 11 Dec, 2018 1 commit
    • Arnd Bergmann's avatar
      ARM: imx: fix dependencies on imx7ulp · 167e6370
      Arnd Bergmann authored
      The i.MX7D configuration was reworked, but that change did
      not get propagated into the newly added i.MX7ULP, which now
      produces a Kconfig warning:
      
      WARNING: unmet direct dependencies detected for HAVE_ARM_ARCH_TIMER
        Depends on [n]: CPU_V7 [=n]
        Selected by [y]:
        - SOC_IMX7ULP [=y] && ARCH_MXC [=y] && (ARCH_MULTI_V7 [=n] || ARM_SINGLE_ARMV7M [=y])
      
      Change it to work the same way as i.MX7D.
      
      Fixes: 1a1f919e ("ARM: imx: Provide support for NXP i.MX7D Cortex-M4")
      Fixes: de70d0e9 ("ARM: imx: add initial support for imx7ulp")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      167e6370
  3. 10 Dec, 2018 2 commits
    • A.s. Dong's avatar
      ARM: imx: add initial support for imx7ulp · de70d0e9
      A.s. Dong authored
      The i.MX 7ULP family of processors features NXP's advanced implementation
      of the Arm Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D
      Graphics Processing Units (GPUs).
      
      This patch aims to add an initial support for imx7ulp. Note that we need
      configure power mode to Partial Stop mode 3 with system/bus clock enabled
      first as the default enabled STOP mode will gate off system/bus clock when
      execute WFI in MX7ULP SoC.
      
      And there's still no MXC_CPU_IMX7ULP IDs read from register as ULP has no
      anatop as before. So we encode one with 0xff in reverse order in case new
      ones will be in the future.
      
      Cc: Shawn Guo <shawnguo@kernel.org>
      Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      de70d0e9
    • Uwe Kleine-König's avatar
      ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed · 7c41ea57
      Uwe Kleine-König authored
      If debugging on i.MX is enabled DEBUG_IMX_UART_PORT defines which UART
      is used for the debug output. If however debugging is off don't only
      hide the then unused config item but drop it completely by using a
      dependency instead of a conditional prompt.
      
      This fixes DEBUG_IMX_UART_PORT being present in the kernel config even
      if DEBUG_LL is disabled.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      7c41ea57
  4. 06 Dec, 2018 7 commits
  5. 05 Dec, 2018 1 commit
  6. 03 Dec, 2018 4 commits
  7. 30 Nov, 2018 8 commits
  8. 28 Nov, 2018 3 commits
  9. 27 Nov, 2018 1 commit
  10. 19 Nov, 2018 3 commits
    • Geert Uytterhoeven's avatar
      ARM: OMAP2+: timer: Remove obsolete inclusion of <asm/smp_twd.h> · b7645533
      Geert Uytterhoeven authored
      As of commit d1dabab2 ("ARM: OMAP2+: Clean up
      omap4_local_timer_init"), this header file is no longer used.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      b7645533
    • Nathan Chancellor's avatar
      ARM: OMAP2+: prm44xx: Fix section annotation on omap44xx_prm_enable_io_wakeup · 7d3b37b1
      Nathan Chancellor authored
      When building the kernel with Clang, the following section mismatch
      warning appears:
      
      WARNING: vmlinux.o(.text+0x38b3c): Section mismatch in reference from
      the function omap44xx_prm_late_init() to the function
      .init.text:omap44xx_prm_enable_io_wakeup()
      The function omap44xx_prm_late_init() references
      the function __init omap44xx_prm_enable_io_wakeup().
      This is often because omap44xx_prm_late_init lacks a __init
      annotation or the annotation of omap44xx_prm_enable_io_wakeup is wrong.
      
      Remove the __init annotation from omap44xx_prm_enable_io_wakeup so there
      is no more mismatch.
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      7d3b37b1
    • Nathan Chancellor's avatar
      ARM: OMAP2+: hwmod: Fix some section annotations · c10b26ab
      Nathan Chancellor authored
      When building the kernel with Clang, the following section mismatch
      warnings appears:
      
      WARNING: vmlinux.o(.text+0x2d398): Section mismatch in reference from
      the function _setup() to the function .init.text:_setup_iclk_autoidle()
      The function _setup() references
      the function __init _setup_iclk_autoidle().
      This is often because _setup lacks a __init
      annotation or the annotation of _setup_iclk_autoidle is wrong.
      
      WARNING: vmlinux.o(.text+0x2d3a0): Section mismatch in reference from
      the function _setup() to the function .init.text:_setup_reset()
      The function _setup() references
      the function __init _setup_reset().
      This is often because _setup lacks a __init
      annotation or the annotation of _setup_reset is wrong.
      
      WARNING: vmlinux.o(.text+0x2d408): Section mismatch in reference from
      the function _setup() to the function .init.text:_setup_postsetup()
      The function _setup() references
      the function __init _setup_postsetup().
      This is often because _setup lacks a __init
      annotation or the annotation of _setup_postsetup is wrong.
      
      _setup is used in omap_hwmod_allocate_module, which isn't marked __init
      and looks like it shouldn't be, meaning to fix these warnings, those
      functions must be moved out of the init section, which this patch does.
      Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      c10b26ab
  11. 18 Nov, 2018 2 commits