Skip to content
Snippets Groups Projects
  1. Dec 16, 2016
  2. Dec 12, 2016
    • Konstantin Porotchkin's avatar
      arm64: mvebu: Add L3 cache flush functionality to A8K family · b58385df
      Konstantin Porotchkin authored
      
      Add missing L3 cache flush functionality which absence prevents
      Linux kernel from normal boot in case the L3 cache is enabled
      by ATF.
      The L3 cache is named the "last level" cache in order to keep
      the terminology similar to the ATF code.
      This cache should not be disabled by u-boot since the Linux
      kernel cannot activate it, so it is activates at ATF stage.
      However the cache flush is required for preventing data corruption
      after disabling the MMU and the data cache before passing control
      to the loaded Linux image.
      
      Signed-off-by: default avatarKonstantin Porotchkin <kostap@marvell.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      b58385df
    • Konstantin Porotchkin's avatar
      arm64: mvebu: Add pin control nodes to A8K family DTS files · f99386c5
      Konstantin Porotchkin authored
      
      Add pin control nodes to APN806, CP-master, CP-slave and
      Armada-7040 and Armada-8040 boards DTS files
      
      Signed-off-by: default avatarKonstantin Porotchkin <kostap@marvell.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      f99386c5
    • Konstantin Porotchkin's avatar
      arm64: mvebu: pinctrl: Add pin control driver for A8K family · 656e6cc8
      Konstantin Porotchkin authored
      
      Add a DM port of Marvell pin control driver.
      The A8K SoC family contains several silicone dies interconnected
      in a single package. Every die is normally equipped with its own
      pin controller unit.
      There are 2 pin controllers in A70x0 SoC and 3 in A80x0 SoC.
      
      Signed-off-by: default avatarKonstantin Porotchkin <kostap@marvell.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      656e6cc8
    • Konstantin Porotchkin's avatar
      arm64: mvebu: Modify the A8K SPI and I2C config in DTS · 5b613d38
      Konstantin Porotchkin authored
      
      Align the Armada-8040-db and Armada-7040-db SPI and I2C
      DTS settings with latest DB settings:
      - 8040-db: disable i2c0 and spi0 on AP (MPPs are reserved for SDIO)
      - 8040-db: disable cps_i2c0 on CP1
      - 8040-db: enable spi1 on CP1 (the new location of the boot flash)
        The spi1 on CP1 is aliased as spi0 since this is the way
        the driver enumerates it.
      
      Signed-off-by: default avatarKonstantin Porotchkin <kostap@marvell.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      5b613d38
  3. Dec 11, 2016
  4. Dec 09, 2016
  5. Dec 08, 2016
    • Michal Simek's avatar
      block: Move ceva driver to DM · 8814c038
      Michal Simek authored
      
      This patch also includes ARM64 zynqmp changes:
      - Remove platform non DM initialization
      - Remove hardcoded sata base address
      
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Series-to: sjg, agraf@suse.de
      Series-cc: uboot
      Series-version: 4
      Series-changes: 2
      - make ceva_init_sata static
      - Move SATA_CEVA to defconfig
      - Initalized max_lun and max_id platdata
      
      Series-changes: 3
      - Extend Kconfig help description
      - sort dm.h
      - Remove SPL undefinition from board file
      - Fix Kconfig dependecies
      8814c038
  6. Dec 06, 2016
    • Bill Randle's avatar
      qts-filter.sh: strip DOS line endings and handle continuation lines · 27211b60
      Bill Randle authored
      
      Some Altera Quartus generated files have long lines that are split with a '\' at
      the end of the line. It also wOn Windows, rites files in DOS format, which can
      confuse some of the processing scripts in this file. This patch solves both issues.
      
      Signed-off-by: default avatarBill Randle <bill.randle@gmail.com>
      Cc: Marek Vasut <marex@denx.de>
      27211b60
    • Marek Vasut's avatar
      ARM: socfpga: Add boot0 hook to prevent SPL corruption · beee6a30
      Marek Vasut authored
      
      Valid Altera SoCFPGA preloader image must contain special data at
      offsets 0x40, 0x44, 0x48 and valid instructions at address 0x4c or
      0x50. These addresses are by default used by U-Boot's vector table
      and a piece of reset handler, thus a valid preloader corrupts those
      addresses slightly. While this works most of the time, this can and
      does prevent the board from rebooting sometimes and triggering this
      issue may even depend on compiler.
      
      The problem is that when SoCFPGA performs warm reset, it checks the
      addresses 0x40..0x4b in SRAM for a valid preloader signature and
      header checksum. If those are found, it jumps to address 0x4c or
      0x50 (this is unclear). These addresses are populated by the first
      few instructions of arch/arm/cpu/armv7/start.S:
      
      ffff0040 <data_abort>:
      ffff0040:       ebfffffe        bl      ffff0040 <data_abort>
      
      ffff0044 <reset>:
      ffff0044:       ea000012        b       ffff0094 <save_boot_params>
      
      ffff0048 <save_boot_params_ret>:
      ffff0048:       e10f0000        mrs     r0, CPSR
      ffff004c:       e200101f        and     r1, r0, #31
      ffff0050:       e331001a        teq     r1, #26
      
      Without this patch, the CPU will enter the code at 0xffff004c or
      0xffff0050 , at which point the value of r0 and r1 registers is
      undefined. Moreover, jumping directly to the preloader entry point
      at address 0xffff0000 will also fail, because address 0xffff004.
      is invalid and contains the preloader magic.
      
      Add BOOT0 hook which reserves the area at offset 0x40..0x5f and
      populates offset 0x50 with jump to the entry point. This way, the
      preloader signature is stored in reserved space and can not corrupt
      the SPL code.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Stefan Roese <sr@denx.de>
      Tested-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
      beee6a30
    • Anatolij Gustschin's avatar
      socfpga: add support for Terasic DE1-SoC board · e9c847c3
      Anatolij Gustschin authored
      
      Add CycloneV based Terasic DE1-SoC board. The board boots
      from SD/MMC. Ethernet and USB host is supported.
      
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      e9c847c3
  7. Dec 05, 2016
    • Yuan Yao's avatar
      armv8: QSPI: Add AHB bus 16MB+ size support · dd2ad2f1
      Yuan Yao authored
      
      The default configuration for QSPI AHB bus can't support 16MB+.
      But some flash on NXP layerscape board are more than 16MB.
      
      Signed-off-by: default avatarYuan Yao <yao.yuan@nxp.com>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      dd2ad2f1
    • Yuan Yao's avatar
      ls1021a: QSPI: update the node for QSPI support · 93a1b7cb
      Yuan Yao authored
      
      Add the name for register space and memory space.
      <0x1550000 0x10000 > is the QSPI register space.
      <0x40000000 0x4000000> is the QSPI memory space.
      
      Signed-off-by: default avatarYuan Yao <yao.yuan@nxp.com>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      93a1b7cb
    • Priyanka Jain's avatar
    • Shengzhou Liu's avatar
      fsl/ddr: Add erratum_a009942_check_cpo and clean related erratum · 02fb2761
      Shengzhou Liu authored
      
      - add additional function erratum_a009942_check_cpo to check if the
        board needs tuning CPO calibration for optimal setting.
      - move ERRATUM_A009942(with revision to check cpo_sample option) from
        fsl_ddr_gen4.c to ctrl_regs.c for reuse on all DDR4/DDR3 parts.
      - move ERRATUM_A008378 from fsl_ddr_gen4.c to ctrl_regs.c
      - remove obsolete ERRATUM_A004934 which is replaced with ERRATUM_A009942.
      
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@nxp.com>
      [YS: Replaced CONFIG_QEMU_E500 with CONFIG_ARCH_QEMU_E500]
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      02fb2761
    • Stefan Roese's avatar
      arm64: mvebu: Restrict memory size to a usable maximum · 059f75d5
      Stefan Roese authored
      
      Not all memory is mapped in the MMU. So we need to restrict the memory
      size so that U-Boot does not try to access it. Also, the internal
      registers are located at 0xf000.0000 - 0xffff.ffff. Currently only 2GiB
      are mapped for system memory. This is what we pass to the U-Boot
      subsystem here.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      059f75d5
    • Stefan Roese's avatar
      arm64: mvebu: Add regions for PCI spaces to the memory map · 6324fdc5
      Stefan Roese authored
      
      To use the PCIe driver, its controller memory and the PCIe regions need
      to get mapped in the MMU. Otherwise these areas can't be accessed.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      6324fdc5
    • Stefan Roese's avatar
      arm64: mvebu: Init COMPHY from the slave-CP on the A8k · d7dd358f
      Stefan Roese authored
      
      The Armada8k implements 2 CPs (communication processors) and the 2nd
      CP also is equipped with a COMPHY controller. This patch now loops
      over all enabled MISC devices (CP110) enabled in the DT to initialize
      all CPs.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      d7dd358f
    • Stefan Roese's avatar
      arm64: mvebu: armada-8040-db.dts: Add I2C and SPI aliases · af4c271c
      Stefan Roese authored
      
      Add I2C and SPI aliases to enable usage in U-Boot. Otherwise U-Boot will
      not be able to use the SPI NOR chip for environment storage and use
      "i2c dev 0" to select this I2C bus.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      af4c271c
    • Stefan Roese's avatar
      arm64: mvebu: armada-8040-db.dts: Add COMPHY configuration · 92fdaf0c
      Stefan Roese authored
      
      This patch adds the COMPHY device tree configuration to the DT file for
      the Marvell DB-88F8040 devel board.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      92fdaf0c
    • Stefan Roese's avatar
      arm64: mvebu: armada-cp110-slave.dtsi: Add COMPHY / UTMI device tree nodes · acbdc8e8
      Stefan Roese authored
      
      This patch adds the COMPHY and UTMI device tree nodes to the cp110-slave
      dtsi file for the Armada 8K.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      acbdc8e8
    • Stefan Roese's avatar
      arm64: mvebu: armada-cp110-master.dtsi: Rename comphy DT node names · a12c92e3
      Stefan Roese authored
      
      Since the cp110 slave also has comphy DT nodes, the names need to be
      renamed to avoid a name clash. Lets use the common naming scheme:
      "cpm_xxx" for master and "cps_xxx" for slave.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      a12c92e3
    • Stefan Roese's avatar
      arm64: mvebu: Add support for the DB-88F8040 Armada 8k devel board · 96816a84
      Stefan Roese authored
      
      This patch adds the necessary files to support the Marvell Armada 8k
      devel board. Most board specfic files are shared with the Armada 7k
      boards under the name "armada-8k*". So only minimal changes are
      necessary to add this basic board support (except the DT files of
      course).
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      96816a84
    • Stefan Roese's avatar
      arm64: mvebu: Add slave CP area to the memory map · 3fef31a3
      Stefan Roese authored
      
      To enable access to the slave CP its memory needs to be added to the
      MMU memory map.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      3fef31a3
    • Stefan Roese's avatar
      arm64: mvebu: Add Armada-80x0 dts/dtsi files · bf2150b9
      Stefan Roese authored
      
      Add the latest version of the DT files from the Linux kernel.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      bf2150b9
    • Stefan Roese's avatar
      arm64: mvebu: Rename db-88f7040 files to armada-8k · 633fa0e7
      Stefan Roese authored
      
      This moves some of the Armada DB-88F7040 board specific files to a more
      generic name: armada-8k. This is in preparation for the Armada-8k
      support which will be added soon. And since both platforms share
      most devices, lets also share most source files to not duplicate
      the code here.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Nadav Haklai <nadavh@marvell.com>
      Cc: Neta Zur Hershkovits <neta@marvell.com>
      Cc: Kostya Porotchkin <kostap@marvell.com>
      Cc: Omri Itach <omrii@marvell.com>
      Cc: Igal Liberman <igall@marvell.com>
      Cc: Haim Boot <hayim@marvell.com>
      Cc: Hanna Hawa <hannah@marvell.com>
      633fa0e7
    • Simon Glass's avatar
      arm: samsung: Convert s5p_goni and smdkc100 to DM_I2C · 08848e9c
      Simon Glass authored
      
      These are the last two samsung boards that don't use DM_I2C. Move them
      over, leaving #ifdefs to allow the maintainer to complete this work.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarHeiko Schocher <hs@denx.de>
      08848e9c
Loading