Skip to content
Snippets Groups Projects
  1. Oct 10, 2014
  2. Oct 08, 2014
  3. Oct 07, 2014
  4. Oct 06, 2014
    • Tom Rini's avatar
      8a6b088a
    • Tom Rini's avatar
      Merge branch 'topic/arm/socfpga-20141006' of git://git.denx.de/u-boot-socfpga · 04de09f8
      Tom Rini authored
      
      Fix a trivial conflict in dw_mmc.c after talking with Marek.
      
      Conflicts:
      	drivers/mmc/dw_mmc.c
      
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      04de09f8
    • Eric Nelson's avatar
      usb: gadget: fastboot: terminate commands with NULL · e2140588
      Eric Nelson authored
      
      Without NULL termination, various commands will read past the
      end of input. In particular, this was noticed with error()
      calls in cb_getvar and simple_strtoul() in cb_download.
      
      Since the download callback happens elsewhere, the 4k buffer
      should always be sufficient to handle command arguments.
      
      Signed-off-by: default avatarEric Nelson <eric.nelson@boundarydevices.com>
      e2140588
    • Daniel Mack's avatar
      usb: musb-new: core: set MUSB_POWER_HSENAB in MUSB_POWER for host mode · 16b61d13
      Daniel Mack authored
      
      This bit allows the MUSB controller to negotiate for high-speed mode when
      the device is reset by the hub. If unset, Babble errors occur with
      high-speed mass storage devices right after the first packet. This condition
      is not caught by the interrupt handles in U-Boot, so no recovery is done,
      and the USB communication is stuck.
      
      To fix this, set the bit unconditionally, not only for
      CONFIG_USB_GADGET_DUALSPEED but also for host-only modes.
      
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      16b61d13
    • Marek Vasut's avatar
      arm: socfpga: Use CMD_FS_GENERIC · 2f210639
      Marek Vasut authored
      
      Enable and use the CONFIG_CMD_FS_GENERIC to avoid hard-coding the
      filesystem type into the environment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      2f210639
    • Pavel Machek's avatar
      arm: socfpga: Split SoCFPGA configuration · 5095ee08
      Pavel Machek authored
      
      Split the SoCFPGA configuration into SoC-specific part which is
      common for all boards (socfpga_cyclone5_common.h) and a board
      specific part. There is currently only one board, which is the
      generic SoCFPGA board (socfpga_cyclone5.h), but there are more
      to come.
      
      This is necessary due to various features of the boards, which
      unfortunatelly cannot be autodetected.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      5095ee08
    • Marek Vasut's avatar
      arm: socfpga: Clean up SoCFPGA configuration · 47f9b4e1
      Marek Vasut authored
      
      Reorganize and cleanup the configuration file for SoCFPGA. There
      is no functional change after this cleanup. This was necessary,
      since the file was a wild mess and it was impossible to make sense
      of it's content, let alone change something without breaking some
      other thing. This patch puts the contents on par with regular U-Boot
      standards.
      
      Also remove unused preprocessor symbols CONFIG_SINGLE_BOOTOADER
      and CONFIG_USE_IRQ, which is undefined by default. Finally, do
      logical reordering of the defines in the file so it's much more
      readable. The reordering was also necessary for the splitting
      as the initial one was messy.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      47f9b4e1
    • Marek Vasut's avatar
      arm: socfpga: Add command to control HPS-FPGA bridges · 7249fafb
      Marek Vasut authored
      
      Add command to enable and disable the bridges between HPS and FPGA.
      
      This patch does have a checkpatch issue with the assembler portion,
      checkpatch correctly complains that there should be no whitespace
      before quoted newline. I do not agree that fixing this specific
      checkpatch issue will improve the readability, thus this one is not
      addressed.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Wolfgang Denk <wd@denx.de>
      7249fafb
    • Marek Vasut's avatar
      arm: socfpga: Move cache_enable to CPU code · 4ab333b7
      Marek Vasut authored
      
      Move icache_enable() and dcache_enable() function calls from
      board code into the CPU code and into the enable_caches()
      function. This is how the cache enabling code was designed
      to work.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      4ab333b7
    • Chin Liang See's avatar
      arm: socfpga: Enable SDMMC boot for SOCFPGA U-Boot · 97ce274d
      Chin Liang See authored
      
      Enable the SDMMC boot as default boot for SOCFPGA U-Boot dev kit.
      Enable the bootz command as zImage is used instead uImage.
      
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      97ce274d
    • Chin Liang See's avatar
      arm: socfpga: Enable DWMMC for SOCFPGA · ddcbed04
      Chin Liang See authored
      
      Enable the DesignWare MMC controller driver support
      for SOCFPGA Cyclone5 dev kit
      
      Signed-off-by: default avatarChin Liang See <clsee@altera.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Pavel Machek <pavel@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      ddcbed04
    • Pavel Machek's avatar
      arm: socfpga: nic301: Add NIC-301 configuration code · 13e81d45
      Pavel Machek authored
      
      Add code which configures the AMBA NIC-301 and the SCU on the SoCFPGA .
      The code sets the access permissions for the CPU to the AMBA slaves such
      that the CPU can access them in both secure and non-secure mode.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      13e81d45
    • Marek Vasut's avatar
      arm: socfpga: pl310: Map SDRAM to 0x0 · 60d804c2
      Marek Vasut authored
      
      Configure the PL310 address filter to make sure DRAM is mapped to 0x0.
      This code also configures the "remap" register of NIC-301 and sets the
      required 'mpuzero' bit.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      60d804c2
    • Marek Vasut's avatar
      arm: socfpga: nic301: Add NIC-301 GPV register file · 7056efcc
      Marek Vasut authored
      
      Add register definition for the NIC-301 used on SoCFPGA.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      7056efcc
    • Marek Vasut's avatar
      arm: socfpga: scu: Add SCU register file · 181d3638
      Marek Vasut authored
      
      Add the Snoop Control Unit register definition file.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      181d3638
    • Marek Vasut's avatar
      arm: socfpga: cache: Enable PL310 L2 cache · b5e9b296
      Marek Vasut authored
      
      Enable the PL310 L2 cache controller support for the SoCFPGA.
      With the cache related issues resolved, this is safe to be done.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      b5e9b296
    • Marek Vasut's avatar
      arm: socfpga: cache: Enable D-Cache · 40e7bcde
      Marek Vasut authored
      
      The code is now fixed to the point where we can safely enable
      the L1 data cache. Enable the D-Cache and set it as write-alloc.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      40e7bcde
    • Marek Vasut's avatar
      arm: socfpga: cache: Define cacheline size · 9ca2116c
      Marek Vasut authored
      
      The Cortex-A9 has 32-byte long L1 cachelines. Define this value.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      9ca2116c
    • Marek Vasut's avatar
      arm: socfpga: sysmgr: Add FPGA bits into system manager · 807abb18
      Marek Vasut authored
      
      Add missing system manager bits from Altera U-Boot to make the code
      comparable. These are the bits which depend on the FPGA manager.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      807abb18
    • Marek Vasut's avatar
      arm: socfpga: reset: Add function to reset FPGA bridges · abb25f4e
      Marek Vasut authored
      
      Add function to enable and disable FPGA bridges. This code is used
      by the FPGA manager to disable the bridges before programming the
      FPGA and will later be also used by the initialization code for the
      chip to put the chip into well defined state during startup.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      abb25f4e
    • Pavel Machek's avatar
      arm: socfpga: fpga: Add SoCFPGA FPGA programming interface · 230fe9b2
      Pavel Machek authored
      
      Add code necessary to program the FPGA part of SoCFPGA from U-Boot
      with an RBF blob. This patch also integrates the code into the
      FPGA driver framework in U-Boot so it can be used via the 'fpga'
      command.
      
      Signed-off-by: default avatarPavel Machek <pavel@denx.de>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      
      V2: Move the not-CPU specific stuff into drivers/fpga/ and base
          this on the cleaned up altera FPGA support.
      230fe9b2
    • Marek Vasut's avatar
      arm: socfpga: board: Align checkboard() output · 604364e4
      Marek Vasut authored
      
      Cosmetic change to the checkboard() function output. Align the
      output with the rest of initial output produced by U-Boot.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      604364e4
Loading