Skip to content
Snippets Groups Projects
  1. Nov 30, 2017
    • Marek Vasut's avatar
      fdtdec: Support parsing multiple /memory nodes · 942ee093
      Marek Vasut authored
      
      It is legal to have multiple /memory nodes in a device tree . Currently,
      fdtdec_setup_memory_size() only supports parsing the first node . This
      patch extends the function such that if a particular /memory node does
      no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
      allows for more DRAM banks, the code moves on to the next memory node
      and checks it's "reg"s. This makes it possible to handle both systems
      with single memory node with multiple entries and systems with multiple
      memory nodes with single entry.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Simon Glass <sjg@chromium.org>
      942ee093
    • Marek Vasut's avatar
      MAINTAINERS: Add myself as RCar/RMobile comaintainer · 9db60e25
      Marek Vasut authored
      
      To help out with the RCar/RMobile upstreaming, I'm adding myself
      as the RCar/RMobile maintainer.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      9db60e25
  2. Nov 29, 2017
  3. Nov 28, 2017
    • Tom Rini's avatar
      Merge git://git.denx.de/u-boot-mips · fcc8250c
      Tom Rini authored
      fcc8250c
    • Tom Rini's avatar
      Merge git://git.denx.de/u-boot-uniphier · 74a48184
      Tom Rini authored
      74a48184
    • Paul Burton's avatar
      boston: Add u-boot.mcs make target · caead80a
      Paul Burton authored
      
      U-Boot is generally flashed to a MIPS Boston development board by means
      of a .mcs file which Xilinx Vivado software can write to the flash
      present on the board. As such we'd generally want to produce an mcs file
      when building U-Boot to target the Boston board. Introduce a make target
      for u-boot.mcs which generates it using the srec_cat tool available from
      the SRecord project, and build it by default when srec_cat is present.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      caead80a
    • Paul Burton's avatar
      boston: Set CONFIG_SYS_LOAD_ADDR to 0x88000000 · fabcffe9
      Paul Burton authored
      
      Generally we load Linux kernels on Boston boards in the form of FIT
      images containing a compressed kernel binary. Linux is linked at
      0x80100000 and so we need to decompress the kernel binary to that
      address, however this is our default load address which means that
      unless explicitly avoided we hit a decompression error as the
      uncompressed kernel binary overwrites its compressed version from the
      FIT image.
      
      Avoid this by adjusting CONFIG_SYS_LOAD_ADDR to 0x88000000 (or
      0xffffffff88000000 for MIPS64 builds) which avoids the address overlap
      between compressed & uncompressed kernel binaries.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      fabcffe9
    • Paul Burton's avatar
      MIPS: Break out of cache loops for unimplemented caches · cc4f3643
      Paul Burton authored
      
      If we run on a CPU which doesn't implement a particular cache then we
      would previously get stuck in an infinite loop, executing a cache op on
      the first "line" of the missing cache & then incrementing the address by
      0. This was being avoided for the L2 caches, but not for the L1s. Fix
      this by generalising the check for a zero line size & avoiding the cache
      op loop when this is the case.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      cc4f3643
    • Paul Burton's avatar
      MIPS: Clear instruction hazards in flush_cache() · d8b32697
      Paul Burton authored
      
      When writing code, for example during relocation, we ensure that the
      icache has a coherent view of the new instructions with a call to
      flush_cache(). This handles the bulk of the work to ensure the new
      instructions will execute as expected, however it does not ensure that
      the CPU pipeline doesn't already contain instructions taken from a stale
      view of the affected memory. This could theoretically be a problem for
      relocation, but in practice typically isn't because we sync caches for
      enough code after the entry point of the newly written code that by the
      time the CPU pipeline might possibly fetch any of it we'll have long ago
      written it back & invalidated any stale icache entries. This is however
      a problem for shorter regions of code.
      
      In preparation for later patches which write shorter segments of code,
      ensure any instruction hazards are cleared by flush_cache() by
      introducing & using a new instruction_hazard_barrier() function which
      makes use of the jr.hb instruction to clear the hazard.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      d8b32697
    • Paul Burton's avatar
      MIPS: Ensure cache ops complete in cache maintenance functions · 219c2db3
      Paul Burton authored
      
      A typical use of cache maintenance functions is to force writeback of
      data which a device is about to read using DMA - for example a
      descriptor or command structure. Such users of cache maintenance
      functions require that operations on the cache have completed before
      they proceed to instruct a device to read memory. This requires that we
      place a completion barrier (ie. sync instruction) between the cache ops
      and whatever write informs the device to perform DMA.
      
      Whilst strictly speaking this isn't all users of the cache maintenance
      functions & we could instead place the barriers in the drivers that
      require them, it would be much more invasive to do so than to just have
      the barrier be the default by placing it in the cache functions
      themselves. The cost is low enough that it shouldn't matter to us in any
      rare cases that we use the cache functions when not performing DMA.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      219c2db3
    • Paul Burton's avatar
      Update Paul Burton's email address · c5bf161f
      Paul Burton authored
      
      MIPS is no longer a part of Imagination Technologies, and as such my
      @imgtec.com email address will soon cease to function. This patch
      updates occurrances of it with my new @mips.com email address, and adds
      an entry in .mailmap such that git (& tools such as get_maintainer.pl
      when examining history) will use the new address.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      c5bf161f
    • Paul Burton's avatar
      MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds · 73780b01
      Paul Burton authored
      
      The u-boot.lds linker script for MIPS defines a PTR_COUNT_SHIFT macro to
      2 or 3 for 32 bit or 64 bit builds respectively. This macro is never
      actually used though, so remove the dead code.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      73780b01
    • Paul Burton's avatar
      boston: Remove unused label in lowlevel_display · 64f733d3
      Paul Burton authored
      
      The lowlevel_display() function includes a "1:" label which is never
      used. Remove it.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      64f733d3
    • Paul Burton's avatar
      boston: Drop unused return value · 555a6529
      Paul Burton authored
      
      The boston lowlevel_init() function zeroes the return register v0,
      despite the function not being expected to return a value & that value
      never being used.
      
      Remove the redundant assignment to v0.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      555a6529
    • Masahiro Yamada's avatar
      ARM: uniphier: remove unused NAND CONFIG options · a27bcbf8
      Masahiro Yamada authored
      
      The Denali NAND driver does not use these options any more.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      a27bcbf8
    • Masahiro Yamada's avatar
    • Masahiro Yamada's avatar
    • Masahiro Yamada's avatar
      ARM: uniphier: remove XIRQ pin settings · 10c62f41
      Masahiro Yamada authored
      
      The XIRQ pins are now set up on the Linux side by the GPIO hogging.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      10c62f41
    • Masahiro Yamada's avatar
      ARM: uniphier: remove IRQ settings · eadd95a9
      Masahiro Yamada authored
      
      This work-around has been here in U-Boot because the AIDET and GPIO
      drivers were missing in the upstream Linux.  Both are now available
      in Linus' tree:
        - drivers/irqchip/irq-uniphier-aidet.c
        - drivers/gpio/gpio-uniphier.c
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      eadd95a9
    • Masahiro Yamada's avatar
      ARM: uniphier: set CONFIG_LOGLEVEL to 6 · 53c149c3
      Masahiro Yamada authored
      
      Print out KERN_NOTICE or higher level log messages.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      53c149c3
Loading