Skip to content
Snippets Groups Projects
  1. Jan 20, 2016
  2. Jan 19, 2016
  3. Jan 14, 2016
    • Phil Sutter's avatar
      mvebu: Support Synology DS414 · aefb8f4c
      Phil Sutter authored
      
      This adds support for the MV78230 based DS414 NAS by Synology. The
      relevant bits have been extracted from the 'synogpl-5004-armadaxp'
      package Synology kindly published, garnished with a fair amount of
      trial-and-error.
      
      Sadly, support is far from perfect. The major parts I have failed in
      are SATA and XHCI support. Details about these and some other things
      follow:
      
      Device Tree
      -----------
      
      The device tree file armada-xp-synology-ds414.dts has been copied from
      Linux and enhanced by recent U-Boot specific changes to
      armada-xp-gp.dts.
      
      SATA Support
      ------------
      
      There is a Marvell 88SX7042 controller attached to PCIe which is
      supported by Linux's sata_mv driver but sadly not U-Boot's sata_mv.
      I'm not sure if extending the latter to support PCI devices is worth the
      effort at all. Porting sata_mv from Linux exceeded my brain's
      capacities. :(
      
      XHCI Support
      ------------
      
      There is an EtronTech EJ168A XHCI controller attached to PCIe which
      drives the two rear USB3 ports. After a bit of playing around I managed
      to get it recognized by xhci-pci, but never was able to access any
      devices attached to it. Enabling it in ds414 board config shows that it
      does not respond to commands for whatever reason. The (somewhat) bright
      side to it is that it is not even supported in Synology's customized
      U-Boot, but that also means nowhere to steal the relevant bits from.
      
      EHCI Support
      ------------
      
      This seems functional after issuing 'usb start'. At least it detects USB
      storage devices, and IIRC reading from them was OK. OTOH Linux fails to
      register the controller if 'usb start' wasn't given before in U-Boot.
      
      According to Synology sources, this board seems to support USB device
      (gadget?) mode. Though I didn't play around with it.
      
      PCIe Support
      ------------
      
      This is fine, but trying to gate the clocks of unused lanes will hang
      PCI enum. In addition to that, pci_mvebu seems not to support DM_PCI.
      
      DDR3 Training
      -------------
      
      Marvell/Synology uses eight PUPs instead of four. Does not look like
      this is meant to be customized in mainline U-Boot at all. OTOH I have
      no idea what a "PUP" actually is.
      
      PEX Init
      --------
      
      Synology uses different values than mainline U-Boot with this patch:
      pex_max_unit_get returns 2, pex_max_if_get returns 7 and
      max_serdes_lines is set to 7. Not changing this seems to not have an
      impact, although I'm not entirely sure it does not cause issues I am not
      aware of.
      
      Static Environment
      ------------------
      
      This allows to boot stock Synology firmware at least. In order to be a
      little more flexible when it comes to booting custom kernels, do not
      only load zImage partition, but also rd.gz into memory. This way it is
      possible to use about 7MB for kernel with piggyback initramfs.
      
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      aefb8f4c
    • Stefan Roese's avatar
      arm: mvebu: Remove SYS_MALLOC_CLEAR_ON_INIT from DB-MV784MP-GP AXP board · e5f0a640
      Stefan Roese authored
      
      By removing CONFIG_SYS_MALLOC_CLEAR_ON_INIT, the bootup time is a bit
      faster.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      e5f0a640
    • Stefan Roese's avatar
      arm: mvebu: Add SolidRun ClearFog Armada 38x initial support · 0299c90f
      Stefan Roese authored
      This patch adds basic support for the SolidRun ClearFog Armada 38x based
      board to mainline U-Boot. Supported interfaces / devices are:
      - DDR3
      - UART
      - MMC
      - Ethernet port 0 (connected to dedicated PHY)
      - I2C
      
      The included DT source was taken from Russell King's ftp server:
      http://www.home.arm.linux.org.uk/~rmk/clearfog/
      
      
      
      With only minor modifications, like the addition of some aliases and the
      "u-boot,dm-pre-reloc" property.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Rabeeh Khoury <rabeeh@solid-run.com>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      0299c90f
    • Stefan Roese's avatar
      arm: mvebu: Add armada-xp-maxbcm.dts for maxbcm board · 18c1272f
      Stefan Roese authored
      
      This is needed for the upcoming ethernet DM conversion of the maxbcm
      board. The configuration of the PHY is then extracted from the DT
      instead of using the defines from the config header.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      18c1272f
    • Stefan Roese's avatar
      arm: mvebu: Add DM and OF_CONTROL support to SPL · 6451223a
      Stefan Roese authored
      
      This patch adds full DM support to the SPL on MVEBU. Currently
      only serial is supported. Other drivers will follow.
      
      This patch also adds the necessary config values for the DEBUG UART
      to the MVEBU defconfig files. This came in handy while implementing
      this DM support.
      
      Additionally, the mvebu specific SPL linker script is removed and
      this common one is used instead:
      
         arch/arm/cpu/u-boot-spl.lds
      
      This common linker script already handles all special cases. No need
      to reinvent the wheel for MVEBU here.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Cc: Simon Glass <sjg@chromium.org>
      6451223a
    • Marco Schuster's avatar
      Re-enable setexpr on Raspberry Pi · 247be79a
      Marco Schuster authored
      
      This patch re-enables the setexpr command, I don't really understand
      why it got excluded in the first place.
      
      setexpr can be used e.g. to implement failed-boot-counters and
      failovers to rescue firmware.
      
      Signed-off-by: default avatarMarco Schuster <m.schuster91@googlemail.com>
      247be79a
    • Vladimir Zapolskiy's avatar
      arm: lpc32xx: switch SPL builds to driver model · 1222305b
      Vladimir Zapolskiy authored
      
      For NXP LPC32xx boards the change enables SPL_DM option, this allows
      to use any driver model UART driver in SPL images, hence a restriction
      on HSUART in SPL image is removed and well as definitions for non-DM
      NS16550 driver, its DM version is used instead.
      
      Because SPL_DM requires malloc(), enable CONFIG_SPL_SYS_MALLOC_SIMPLE
      for LPC32xx boards.
      
      The change adds about 5KB to the resulting SPL image (for devkit3250
      board SPL image is increased from 10672 to 15608 bytes).
      
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      1222305b
    • Vladimir Zapolskiy's avatar
      arm: lpc32xx: switch serial console to driver model · d25ba89e
      Vladimir Zapolskiy authored
      
      On NXP LPC32xx platform for non-SPL builds the change adds
      standard (NS16550) and high-speed UARTs to driver model.
      Due to specific of DM NS16550 device description UART clock can not be
      got in runtime and by default it is set to 13MHz, if board PERIPH_CLK
      is different, this should be specified in board configuration file.
      
      For SPL builds HSUARTs are disabled and non-DM NS16550 driver is
      compiled, if needed.
      
      The change also updates default configs of devkit3250 and work_92105
      boards to reflect updates in platform files.
      
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d25ba89e
  4. Jan 13, 2016
  5. Jan 12, 2016
  6. Jan 08, 2016
  7. Dec 27, 2015
  8. Dec 22, 2015
  9. Dec 21, 2015
  10. Dec 20, 2015
    • Marek Vasut's avatar
      arm: socfpga: socrates: Probe DWC2 UDC from OF instead of hard-coded data · b5a5d2bd
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      b5a5d2bd
    • Marek Vasut's avatar
      arm: socfpga: sockit: Probe DWC2 UDC from OF instead of hard-coded data · 225217da
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      225217da
    • Marek Vasut's avatar
      arm: socfpga: mcvevk: Probe DWC2 UDC from OF instead of hard-coded data · 9368aa6a
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      9368aa6a
    • Marek Vasut's avatar
      arm: socfpga: de0_nano: Probe DWC2 UDC from OF instead of hard-coded data · 5b5226a8
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      5b5226a8
    • Marek Vasut's avatar
      arm: socfpga: cyclone5-socdk: Probe DWC2 UDC from OF instead of hard-coded data · c90ada94
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      c90ada94
    • Marek Vasut's avatar
      arm: socfpga: arria5-socdk: Probe DWC2 UDC from OF instead of hard-coded data · 70311e69
      Marek Vasut authored
      
      This patch adds the necessary OF alias for the UDC node, which let's
      the code locate the DWC2 UDC base address in OF instead of hard-coding
      it into the U-Boot binary. The code is adjusted to use the address from
      OF instead of the hard-coded one. Finally, the hard-coded address is
      removed and USB DM support is enabled.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      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>
      70311e69
  11. Dec 19, 2015
  12. Dec 18, 2015
Loading