1. 20 Dec, 2016 1 commit
    • Nathan Rossi's avatar
      fdt: add memory bank decoding functions for board setup · 623f6019
      Nathan Rossi authored
      Add two functions for use by board implementations to decode the memory
      banks of the /memory node so as to populate the global data with
      ram_size and board info for memory banks.
      
      The fdtdec_setup_memory_size() function decodes the first memory bank
      and sets up the gd->ram_size with the size of the memory bank. This
      function should be called from the boards dram_init().
      
      The fdtdec_setup_memory_banksize() function decode the memory banks
      (up to the CONFIG_NR_DRAM_BANKS) and populates the base address and size
      into the gd->bd->bi_dram array of banks. This function should be called
      from the boards dram_init_banksize().
      Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Michal Simek <monstr@monstr.eu>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      623f6019
  2. 14 Sep, 2016 1 commit
  3. 12 Aug, 2016 1 commit
  4. 25 Jul, 2016 1 commit
  5. 11 Jul, 2016 3 commits
  6. 05 Jul, 2016 1 commit
  7. 31 May, 2016 1 commit
    • Stephen Warren's avatar
      mmc: tegra: add basic Tegra186 support · 39f63332
      Stephen Warren authored
      Tegra186's MMC controller needs to be explicitly identified. Add another
      compatible value for it.
      
      Tegra186 will use an entirely different clock/reset control mechanism to
      existing chips, and will use standard clock/reset APIs rather than the
      existing Tegra-specific custom APIs. The driver support for that isn't
      ready yet, so simply disable all clock/reset usage if compiling for
      Tegra186. This must happen at compile time rather than run-time since the
      custom APIs won't even be compiled in on Tegra186. In the long term, the
      plan would be to convert the existing custom APIs to standard APIs and get
      rid of the ifdefs completely.
      
      The system's main eMMC will work without any clock/reset support, since
      the firmware will have already initialized the controller in order to
      load U-Boot. Hence the driver is useful even in this apparently crippled
      state.
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
      39f63332
  8. 06 May, 2016 1 commit
  9. 17 Mar, 2016 2 commits
  10. 16 Feb, 2016 1 commit
  11. 06 Feb, 2016 1 commit
  12. 24 Jan, 2016 1 commit
  13. 21 Jan, 2016 1 commit
  14. 13 Jan, 2016 1 commit
  15. 12 Jan, 2016 1 commit
    • Simon Glass's avatar
      dm: serial: Convert ns16550 driver to use driver model PCI API · fcc0a877
      Simon Glass authored
      Use the driver model version of the function to find the BAR. This updates
      the fdtdec function, of which ns16550 is the only user.
      
      The fdtdec_get_pci_bdf() function is dropped for several reasons:
      - with driver model we should use 'struct udevice *' rather than passing the
         device tree offset explicitly
      - there are no other users in the tree
      - the function parses for information which is already available in the PCI
      device structure (specifically struct pci_child_platdata which is available
      at dev_get_parent_platdata(dev)
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
      fcc0a877
  16. 20 Dec, 2015 1 commit
    • Marek Vasut's avatar
      arm: socfpga: Allow DWC2 UDC probing from OF · ef4b01b2
      Marek Vasut authored
      The USB gadget framework does not support DM yet, so add this bit
      to let DWC2 UDC probe from OF on platforms which support it.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Lukasz Majewski <l.majewski@majess.pl>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      ef4b01b2
  17. 01 Dec, 2015 1 commit
  18. 20 Nov, 2015 1 commit
  19. 12 Nov, 2015 1 commit
  20. 05 Nov, 2015 1 commit
    • Chin Liang See's avatar
      lib, fdt: Adding fdtdec_get_uint function · bfa3e55b
      Chin Liang See authored
      Adding fdtdec_get_uint function which is the
      unsigned version for fdtdec_get_int
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Dinh Nguyen <dinh.linux@gmail.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Vikas Manocha <vikas.manocha@st.com>
      Cc: Jagannadh Teki <jteki@openedev.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      bfa3e55b
  21. 04 Nov, 2015 1 commit
  22. 15 Sep, 2015 1 commit
    • Stephen Warren's avatar
      fdt: add new fdt address parsing functions · 02464e38
      Stephen Warren authored
      fdtdec_get_addr_size() hard-codes the number of cells used to represent
      an address or size in DT. This is incorrect in many cases depending on
      the DT binding for a particular node or property (e.g. it is incorrect
      for the "reg" property). In most cases, DT parsing code must use the
      properties #address-cells and #size-cells to parse addres properties.
      
      This change splits up the implementation of fdtdec_get_addr_size() so
      that the core logic can be used for both hard-coded and non-hard-coded
      cases. Various wrapper functions are implemented that support cases
      where hard-coded cell counts should or should not be used, and where
      the client does and doesn't know the parent node ID that contains the
      properties #address-cells and #size-cells.
      
      dev_get_addr() is updated to use the new functions.
      
      Core functionality in fdtdec_get_addr_size_fixed() is widely tested via
      fdtdec_get_addr_size(). I tested fdtdec_get_addr_size_auto_noparent() and
      dev_get_addr() by manually modifying the Tegra I2C driver to invoke them.
      
      Much of the core implementation of fdtdec_get_addr_size_fixed(),
      fdtdec_get_addr_size_auto_parent(), and
      fdtdec_get_addr_size_auto_noparent() comes from Thierry Reding's
      previous commit "fdt: Fix fdtdec_get_addr_size() for 64-bit".
      Based-on-work-by: default avatarThierry Reding <treding@nvidia.com>
      Cc: Thierry Reding <treding@nvidia.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Michal Suchanek <hramrach@gmail.com>
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Dropped #define DEBUG at the top of fdtdec.c:
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      02464e38
  23. 04 Sep, 2015 1 commit
    • Marek Vasut's avatar
      mmc: dw_mmc: Probe the MMC from OF · 129adf5b
      Marek Vasut authored
      Rework the driver to probe the MMC controller from Device Tree
      and make it mandatory. There is no longer support for probing
      from the ancient qts-generated header files.
      
      This patch now also removes previous temporary workaround.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Cc: Tom Rini <trini@konsulko.com>
      129adf5b
  24. 31 Aug, 2015 1 commit
  25. 18 Aug, 2015 3 commits
  26. 14 Aug, 2015 1 commit
  27. 08 Aug, 2015 1 commit
    • Marek Vasut's avatar
      arm: socfpga: misc: Reset ethernet from OF · 6ab00db2
      Marek Vasut authored
      Reset the GMAC ethernets based on the "resets" OF node instead of ad-hoc
      hardcoded values in the U-Boot code. Since we don't have a proper reset
      framework in place yet, we have to do this slightly ad-hoc parsing of the
      OF tree instead.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      6ab00db2
  28. 06 Aug, 2015 4 commits
  29. 28 Jul, 2015 1 commit
  30. 11 Jun, 2015 2 commits
  31. 04 Jun, 2015 1 commit