1. 17 9月, 2016 5 次提交
  2. 07 9月, 2016 5 次提交
    • M
      ARM: armv7: move ARMV7_PSCI_NR_CPUS to Kconfig · 15446988
      Masahiro Yamada 提交于
      Move this option to Kconfig and set its default value to 4; this
      increases the number of supported CPUs for some boards.
      
      It consumes 1KB memory per CPU for PSCI stack, but it should not
      be a big deal, given the amount of memory used for the modern OSes.
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      15446988
    • M
      ARM: armv7: move CONFIG_ARMV7_PSCI to Kconfig · 217f92bb
      Masahiro Yamada 提交于
      Add ARCH_SUPPORT_PSCI as a non-configurable option that platforms
      can select.  Then, move CONFIG_ARMV7_PSCI, which is automatically
      enabled if both ARMV7_NONSEC and ARCH_SUPPORT_PSCI are enabled.
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      217f92bb
    • M
      ARM: armv7: guard memory reserve for PSCI with #ifdef CONFIG_ARMV7_PSCI · 5a3aae68
      Masahiro Yamada 提交于
      If CONFIG_ARMV7_NONSEC is enabled, the linker script requires
      CONFIG_ARMV7_PSCI_NR_CPUS regardless of CONFIG_ARMV7_PSCI.
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      5a3aae68
    • F
      mx6: ddr: Allow changing REFSEL and REFR fields · edf00937
      Fabio Estevam 提交于
      Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
      REFR fields of the MDREF register as 1 and 7, respectively for
      DDR3 and 0 and 3 for LPDDR2.
      
      Looking at the MDREF initialization done via DCD we see that
      boards do need to initialize these fields differently:
      
      $ git grep 0x021b0020 board/
      board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
      board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x00000800 /* MMDC0_MDREF */
      board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
      board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4      0x021b0020 0x00005800
      board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x00001800
      board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00000800
      board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x00000800
      board/warp/imximage.cfg:DATA 4 0x021b0020 0x00001800
      
      So introduce a mechanism for users to be able to configure
      REFSEL and REFR fields as needed.
      
      Keep all the mx6 SPL users in their current REF_SEL and REFR values,
      so no functional changes for the existing users.
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: NEric Nelson <eric@nelint.com>
      edf00937
    • A
      arm: imx: Add support for Advantech DMS-BA16 board · ff383220
      Akshay Bhat 提交于
      Add support for Advantech DMS-BA16 board. The board is based on Advantech
      BA16 module which has a i.MX6D processor. The board supports:
       - FEC Ethernet
       - USB Ports
       - SDHC and MMC boot
       - SPI NOR
       - LVDS and HDMI display
      
      Basic information about the module:
       - Module manufacturer: Advantech
       - CPU: Freescale ARM Cortex-A9 i.MX6D
       - SPECS:
           Up to 2GB Onboard DDR3 Memory;
           Up to 16GB Onboard eMMC NAND Flash
           Supports OpenGL ES 2.0 and OpenVG 1.1
           HDMI, 24-bit LVDS
           1x UART, 2x I2C, 8x GPIO,
           4x Host USB 2.0 port, 1x USB OTG port,
           1x micro SD (SDHC),1x SDIO, 1x SATA II,
           1x 10/100/1000 Mbps Ethernet, 1x PCIe X1 Gen2
      Signed-off-by: NAkshay Bhat <akshay.bhat@timesys.com>
      Cc: u-boot@lists.denx.de
      Cc: sbabic@denx.de
      ff383220
  3. 27 8月, 2016 1 次提交
    • T
      ARM: Move SYS_CACHELINE_SIZE over to Kconfig · 067716ba
      Tom Rini 提交于
      This series moves the CONFIG_SYS_CACHELINE_SIZE.  First, in nearly all
      cases we are mirroring the values used by the Linux Kernel here.  Also,
      so long as (and in this case, it is true) we implement flushes in hunks
      that are no larger than the smallest implementation (and given that we
      mirror the Linux Kernel, again we are fine) it is OK to align higher.
      The biggest changes here are that we always use 64 bytes for CPU_V7 even
      if for example the underlying core is only 32 bytes (this mirrors
      Linux).  Second, we say ARM64 uses 64 bytes not 128 (as found in the
      Linux Kernel) as we do not need multi-platform support (to this degree)
      and only the Cavium ThunderX 88xx series has a use for such large
      alignment.
      
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Prafulla Wadaskar <prafulla@marvell.com>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nagendra T S <nagendra@mistralsolutions.com>
      Cc: Vaibhav Hiremath <hvaibhav@ti.com>
      Acked-by: NLokesh Vutla <lokeshvutla@ti.com>
      Cc: Steve Rae <steve.rae@raedomain.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Nikita Kiryanov <nikita@compulab.co.il>
      Cc: Stefan Agner <stefan.agner@toradex.com>
      Acked-by: NHeiko Schocher <hs@denx.de>
      Cc: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
      Cc: Peter Griffin <peter.griffin@linaro.org>
      Acked-by: NPaul Kocialkowski <contact@paulk.fr>
      Cc: Anatolij Gustschin <agust@denx.de>
      Acked-by: N"Pali Rohár" <pali.rohar@gmail.com>
      Cc: Adam Ford <aford173@gmail.com>
      Cc: Steve Sakoman <sakoman@gmail.com>
      Cc: Grazvydas Ignotas <notasas@gmail.com>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Robert Baldyga <r.baldyga@samsung.com>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Thomas Weber <weber@corscience.de>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: David Feng <fenghua@phytium.com.cn>
      Cc: Alison Wang <b18965@freescale.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@nxp.com>
      Cc: Mingkai Hu <mingkai.hu@nxp.com>
      Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
      Cc: Aneesh Bansal <aneesh.bansal@freescale.com>
      Cc: Saksham Jain <saksham.jain@nxp.com>
      Cc: Qianyu Gong <qianyu.gong@nxp.com>
      Cc: Wang Dongsheng <dongsheng.wang@nxp.com>
      Cc: Alex Porosanu <alexandru.porosanu@freescale.com>
      Cc: Hongbo Zhang <hongbo.zhang@nxp.com>
      Cc: tang yuantian <Yuantian.Tang@freescale.com>
      Cc: Rajesh Bhagat <rajesh.bhagat@nxp.com>
      Cc: Josh Wu <josh.wu@atmel.com>
      Cc: Bo Shen <voice.shen@atmel.com>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: Hannes Schmelzer <oe5hpm@oevsv.at>
      Cc: Thomas Chou <thomas@wytron.com.tw>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Sam Protsenko <semen.protsenko@linaro.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Christophe Ricard <christophe-h.ricard@st.com>
      Cc: Anand Moon <linux.amoon@gmail.com>
      Cc: Beniamino Galvani <b.galvani@gmail.com>
      Cc: Carlo Caione <carlo@endlessm.com>
      Cc: huang lin <hl@rock-chips.com>
      Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
      Cc: Xu Ziyuan <xzy.xu@rock-chips.com>
      Cc: "jk.kernel@gmail.com" <jk.kernel@gmail.com>
      Cc: "Ariel D'Alessandro" <ariel@vanguardiasur.com.ar>
      Cc: Kever Yang <kever.yang@rock-chips.com>
      Cc: Samuel Egli <samuel.egli@siemens.com>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Ian Campbell <ijc@hellion.org.uk>
      Cc: Siarhei Siamashka <siarhei.siamashka@gmail.com>
      Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
      Cc: Andre Przywara <andre.przywara@arm.com>
      Cc: Bernhard Nortmann <bernhard.nortmann@web.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Whitten <ben.whitten@gmail.com>
      Cc: Tom Warren <twarren@nvidia.com>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Sekhar Nori <nsekhar@ti.com>
      Cc: Vitaly Andrianov <vitalya@ti.com>
      Cc: "Andrew F. Davis" <afd@ti.com>
      Cc: Murali Karicheri <m-karicheri2@ti.com>
      Cc: Carlos Hernandez <ceh@ti.com>
      Cc: Ladislav Michl <ladis@linux-mips.org>
      Cc: Ash Charles <ashcharles@gmail.com>
      Cc: Mugunthan V N <mugunthanvnm@ti.com>
      Cc: Daniel Allred <d-allred@ti.com>
      Cc: Gong Qianyu <Qianyu.Gong@freescale.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Acked-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NChin Liang See <clsee@altera.com>
      Tested-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NPaul Kocialkowski <contact@paulk.fr>
      067716ba
  4. 21 8月, 2016 2 次提交
  5. 17 8月, 2016 1 次提交
  6. 12 8月, 2016 2 次提交
  7. 06 8月, 2016 2 次提交
  8. 05 8月, 2016 3 次提交
    • T
      omap3: Move to select SUPPORT_SPL for all · a2ea62e8
      Tom Rini 提交于
      In reality all omap3 platforms support SPL so move the select for this
      up a level.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      a2ea62e8
    • M
      treewide: move CONFIG_PHYS_64BIT to Kconfig · bb6b142f
      Masahiro Yamada 提交于
      We need to ensure that CONFIG_PHYS_64BIT is configured via Kconfig so
      that it is always available to the build system.  Otherwise we can run
      into cases where we have inconsistent sizes of certain attributes.
      
      Ravi Babu reported offset mismatch of struct dwc3 across files since
      commit 95ebc253 ("types.h: move and redefine resource_size_t").
      Since the commit, resource_addr_t points to phys_addr_t, whose size
      is dependent on CONFIG_PHYS_64BIT for ARM architecture.
      
      I tried my best to use "select" where possible (for example, ARMv8
      architecture) because I think this kind of option is generally user-
      unconfigurable.  However, I see some of PowerPC boards have 36BIT
      defconfigs as well as 32BIT ones.  I moved CONFIG_PHYS_64BIT to the
      defconfigs for such boards.
      
      CONFIG_36BIT is no longer referenced, so all of the defines were
      removed from CONFIG_SYS_EXTRA_OPTIONS.
      
      Fixes: 95ebc253 ("types.h: move and redefine resource_size_t")
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reported-by: NRavi Babu <ravibabu@ti.com>
      Acked-by: NStefan Roese <sr@denx.de>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NYork Sun <york.sun@nxp.com>
      bb6b142f
    • T
      ARM: Rework and correct barrier definitions · a78cd861
      Tom Rini 提交于
      As part of testing booting Linux kernels on Rockchip devices, it was
      discovered by Ziyuan Xu and Sandy Patterson that we had multiple and for
      some cases incomplete isb definitions.  This was causing a failure to
      boot of the Linux kernel.
      
      In order to solve this problem as well as cover any corner cases that we
      may also have had a number of changes are made in order to consolidate
      things.  First, <asm/barriers.h> now becomes the source of isb/dsb/dmb
      definitions.  This however introduces another complexity.  Due to
      needing to build SPL for 32bit tegra with -march=armv4 we need to borrow
      the __LINUX_ARM_ARCH__ logic from the Linux Kernel in a more complete
      form.  Move this from arch/arm/lib/Makefile to arch/arm/Makefile and add
      a comment about it.  Now that we can always know what the target CPU is
      capable off we can get always do the correct thing for the barrier.  The
      final part of this is that need to be consistent everywhere and call
      isb()/dsb()/dmb() and NOT call ISB/DSB/DMB in some cases and the
      function names in others.
      Reviewed-by: NStephen Warren <swarren@nvidia.com>
      Tested-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NZiyuan Xu <xzy.xu@rock-chips.com>
      Acked-by: NSandy Patterson <apatterson@sightlogix.com>
      Reported-by: NZiyuan Xu <xzy.xu@rock-chips.com>
      Reported-by: NSandy Patterson <apatterson@sightlogix.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      a78cd861
  9. 03 8月, 2016 1 次提交
  10. 30 7月, 2016 1 次提交
  11. 28 7月, 2016 2 次提交
  12. 27 7月, 2016 7 次提交
  13. 26 7月, 2016 2 次提交
    • R
      ARM: am33xx: Always inhibit init/refresh during DDR phy init · 335b4e53
      Russ Dill 提交于
      A couple of commits have modified the am33xx/am437x ddr2/ddr3
      initialization path to fix certain issues, but have had the side effect
      of causing L3 noc errors during initialization. The two commits are:
      
      69b918 "am33xx,ddr3: fix ddr3 sdram configuration"
      fc46ba "arm: am437x: Enable hardware leveling for EMIF"
      
      The EMIF_REG_INITREF_DIS_MASK bit still needs to be set for all
      platforms. This delays initialization and refresh until a later stage.
      The 500us timer can be programmed for platforms that require it
      and for platforms that don't require it. It is currently hardcoded
      for 400MHz systems. For systems with a higher memory frequency
      this needs to be a larger value, and for systems with a lower
      memory frequency this can be a lower value. This can be
      considered a separate issue and corrected in a later commit.
      Signed-off-by: NRuss Dill <Russ.Dill@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      335b4e53
    • R
      ARM: am33xx: Fix DDR init delay placement · 3325b065
      Russ Dill 提交于
      The delay needs to be before the write to ref_ctrl register
      which initiates refreshes. An improper initialization sequence
      generates an L3 noc error.
      Signed-off-by: NRuss Dill <Russ.Dill@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      3325b065
  14. 23 7月, 2016 5 次提交
  15. 22 7月, 2016 1 次提交