Skip to content
Snippets Groups Projects
  1. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  2. Apr 27, 2018
  3. Apr 09, 2018
    • Alex Kiernan's avatar
      net: Move enetaddr env access code to env config instead of net config · 9925f1db
      Alex Kiernan authored
      
      In order that we can use eth_env_* even when CONFIG_NET isn't set, move
      these functions to environment code from net code.
      
      This fixes failures such as:
      
        board/ti/am335x/built-in.o: In function `board_late_init':
        board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr'
        u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'
      
      which caters for use cases such as:
      
      commit f411b5cc ("board: am335x: Always set eth/eth1addr environment
      variable")
      
      when Ethernet is required in Linux, but not U-Boot.
      
      Signed-off-by: default avatarAlex Kiernan <alex.kiernan@gmail.com>
      9925f1db
  4. Feb 22, 2018
  5. Feb 15, 2018
  6. Jan 12, 2018
    • Christopher Spinrath's avatar
      ARM: imx: cm_fx6: export board and soc info to env · dbeaa1d1
      Christopher Spinrath authored
      
      Like many other i.MX6 based boards, there are multiple variants of
      the cm-fx6 module featuring different SoC variants. Furthermore, the
      module can be paired with multiple baseboards.
      
      At the same time modern distribution like Fedora require U-Boot to
      select a proper devicetree which depends on the SoC variant and the
      baseboard.
      
      Thus, export the SoC variant and the actual board to the environment
      following the conventions of other i.MX6 devices (e.g. the NXP boards)
      such that the environment can select a devicetree file to load.
      
      For now, we only know for sure that the cm-fx6 module and the SB-fx6m
      baseboard amount to a Utilite Computer variant (depending on the SoC).
      Further combinations may be added in the future; e.g. CompuLab's
      evaluation board once someone can verify the identification string
      stored in its eeprom.
      
      Signed-off-by: default avatarChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      dbeaa1d1
  7. Dec 29, 2017
  8. Nov 26, 2017
    • Philipp Tomsich's avatar
      usb: hub: identify the hub-device to usb_hub_reset_devices · 883946e8
      Philipp Tomsich authored
      
      When usb_hub_reset_devices is called, it should be passed both an
      indicator which hub it should operate on and what port number (local
      to that hub) should be reset.
      
      Previously, the usb_hub.c code did not include such context and
      always started resets from port number 1, performing multiple
      reset-requests for the same devices:
      
             /*
              * Reset any devices that may be in a bad state when applying
              * the power.  This is a __weak function.  Resetting of the devices
              * should occur in the board file of the device.
              */
             for (i = 0; i < dev->maxchild; i++)
                    usb_hub_reset_devices(i + 1);
      
      This adds an additional 'hub' parameter to usb_hub_reset_devices
      that provides the context to fully qualify the port-number in.
      
      Existing implementations are changed to accept and ignore the new
      parameter.
      
      Signed-off-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Tested-by: default avatarJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
      883946e8
  9. Oct 21, 2017
  10. Oct 12, 2017
  11. Sep 18, 2017
  12. Sep 15, 2017
    • Suman Anna's avatar
      arm: am57xx: cl-som-am57x: Use new pinctrl macros · 101d2171
      Suman Anna authored
      
      Commit 6ae4c3ef ("ARM: DRA7: Add pinctrl register definitions")
      has added new macros for pinmux configuration in line with the
      kernel definitions. Fixup the current pinctrl data for the CompuLab
      CL-SOM-AM57x board to use these new macros to facilitate the removal
      of the old macros.
      
      NOTE:
      The PEN and PDIS macro values used previously were actually defined
      inversely, a value of 1 in bit position 16 actually means that the
      internal pullup/pulldown is disabled and not enabled as inferred by
      PEN. So, previous pinmux config data such as (PDIS | PTU) is confusing
      as it actually was meant for enabling internal pullup. The data is
      fixed up only to be equivalent to the previous data.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      101d2171
  13. Aug 17, 2017
  14. Aug 16, 2017
  15. Aug 09, 2017
  16. Jul 12, 2017
    • Stefano Babic's avatar
      imx: reorganize IMX code as other SOCs · 552a848e
      Stefano Babic authored
      
      Change is consistent with other SOCs and it is in preparation
      for adding SOMs. SOC's related files are moved from cpu/ to
      mach-imx/<SOC>.
      
      This change is also coherent with the structure in kernel.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      
      CC: Fabio Estevam <fabio.estevam@nxp.com>
      CC: Akshay Bhat <akshaybhat@timesys.com>
      CC: Ken Lin <Ken.Lin@advantech.com.tw>
      CC: Marek Vasut <marek.vasut@gmail.com>
      CC: Heiko Schocher <hs@denx.de>
      CC: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
      CC: Christian Gmeiner <christian.gmeiner@gmail.com>
      CC: Stefan Roese <sr@denx.de>
      CC: Patrick Bruenn <p.bruenn@beckhoff.com>
      CC: Troy Kisky <troy.kisky@boundarydevices.com>
      CC: Nikita Kiryanov <nikita@compulab.co.il>
      CC: Otavio Salvador <otavio@ossystems.com.br>
      CC: "Eric Bénard" <eric@eukrea.com>
      CC: Jagan Teki <jagan@amarulasolutions.com>
      CC: Ye Li <ye.li@nxp.com>
      CC: Peng Fan <peng.fan@nxp.com>
      CC: Adrian Alonso <adrian.alonso@nxp.com>
      CC: Alison Wang <b18965@freescale.com>
      CC: Tim Harvey <tharvey@gateworks.com>
      CC: Martin Donnelly <martin.donnelly@ge.com>
      CC: Marcin Niestroj <m.niestroj@grinn-global.com>
      CC: Lukasz Majewski <lukma@denx.de>
      CC: Adam Ford <aford173@gmail.com>
      CC: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
      CC: Boris Brezillon <boris.brezillon@free-electrons.com>
      CC: Soeren Moch <smoch@web.de>
      CC: Richard Hu <richard.hu@technexion.com>
      CC: Wig Cheng <wig.cheng@technexion.com>
      CC: Vanessa Maegima <vanessa.maegima@nxp.com>
      CC: Max Krummenacher <max.krummenacher@toradex.com>
      CC: Stefan Agner <stefan.agner@toradex.com>
      CC: Markus Niebel <Markus.Niebel@tq-group.com>
      CC: Breno Lima <breno.lima@nxp.com>
      CC: Francesco Montefoschi <francesco.montefoschi@udoo.org>
      CC: Jaehoon Chung <jh80.chung@samsung.com>
      CC: Scott Wood <oss@buserror.net>
      CC: Joe Hershberger <joe.hershberger@ni.com>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Simon Glass <sjg@chromium.org>
      CC: "Andrew F. Davis" <afd@ti.com>
      CC: "Łukasz Majewski" <l.majewski@samsung.com>
      CC: Patrice Chotard <patrice.chotard@st.com>
      CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      CC: Hans de Goede <hdegoede@redhat.com>
      CC: Masahiro Yamada <yamada.masahiro@socionext.com>
      CC: Stephen Warren <swarren@nvidia.com>
      CC: Andre Przywara <andre.przywara@arm.com>
      CC: "Álvaro Fernández Rojas" <noltari@gmail.com>
      CC: York Sun <york.sun@nxp.com>
      CC: Xiaoliang Yang <xiaoliang.yang@nxp.com>
      CC: Chen-Yu Tsai <wens@csie.org>
      CC: George McCollister <george.mccollister@gmail.com>
      CC: Sven Ebenfeld <sven.ebenfeld@gmail.com>
      CC: Filip Brozovic <fbrozovic@gmail.com>
      CC: Petr Kulhavy <brain@jikos.cz>
      CC: Eric Nelson <eric@nelint.com>
      CC: Bai Ping <ping.bai@nxp.com>
      CC: Anson Huang <Anson.Huang@nxp.com>
      CC: Sanchayan Maity <maitysanchayan@gmail.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Patrick Delaunay <patrick.delaunay@st.com>
      CC: Gary Bisson <gary.bisson@boundarydevices.com>
      CC: Alexander Graf <agraf@suse.de>
      CC: u-boot@lists.denx.de
      Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      552a848e
  17. Jun 05, 2017
  18. May 15, 2017
  19. May 08, 2017
    • Uri Mashiach's avatar
      arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks · 4acfe1ae
      Uri Mashiach authored
      
      Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
      during board_usb_exit to enable and disable clocks respectively.
      
      Modifications:
      * Enable USB clocks in the OMAP version of the function
        board_usb_init.
      * Disable USB clocks in the OMAP version of the function
        board_usb_cleanup.
      
      Cc: Marek Vasut <marex@denx.de>
      Signed-off-by: default avatarUri Mashiach <uri.mashiach@compulab.co.il>
      Reviewed-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      4acfe1ae
    • Uri Mashiach's avatar
      usb: host: xhci-omap: fix double weak board_usb_init functions · 1a9a5f7a
      Uri Mashiach authored
      
      A weak version of the function board_usb_init is implemented in:
      common/usb.c
      drivers/usb/host/xhci-omap.c
      
      To fix the double implementations:
      * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c
        normal (not weak).
      * The function board_usb_init in drivers/usb/host/xhci-omap.c calls to
        the weak function omap_xhci_board_usb_init.
      * Rename board version of the function board_usb_init to
        omap_xhci_board_usb_init.
        Done only for boards that defines CONFIG_USB_XHCI_OMAP.
      
      To achieve the same flexibility with the function board_usb_cleanup:
      * Add a normal (not weak) implementation of the function
        board_usb_cleanup in drivers/usb/host/xhci-omap.c
      * The function board_usb_cleanup in drivers/usb/host/xhci-omap.c calls
        to the weak function omap_xhci_board_usb_cleanup.
      * Rename board version of the function board_usb_cleanup to
        omap_xhci_board_usb_cleanup.
        Done only for boards that defines CONFIG_USB_XHCI_OMAP.
      
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: default avatarUri Mashiach <uri.mashiach@compulab.co.il>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
      1a9a5f7a
  20. Apr 05, 2017
  21. Mar 20, 2017
  22. Jan 24, 2017
    • Uri Mashiach's avatar
      arm: am57xx: cl-som-am57x: fix Ethernet · 9b6ef528
      Uri Mashiach authored
      
      The module is continuously rebooting with the following message:
      Net:   data abort
      pc : [<fff77f42>]          lr : [<fff6e32b>]
      reloc pc : [<80816f42>]    lr : [<8080d32b>]
      sp : fdf5ce48  ip : fdf5d79c     fp : 00000017
      r10: 8083cd58  r9 : fdf5cef0     r8 : fdf5d5d0
      r7 : 48485000  r6 : 400000ff     r5 : fdf5d6e0  r4 : fdf5d618
      r3 : fdf5d5b4  r2 : fdf5d5d0     r1 : 643a3631  r0 : fdf5d6e0
      Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
      Resetting CPU ...
      
      Modifications:
      * Enable Ethernet configuration in the SPL.
      * Update PINMUX of PHY enable GPIO.
      
      Signed-off-by: default avatarUri Mashiach <uri.mashiach@compulab.co.il>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      9b6ef528
  23. Jan 21, 2017
    • Uri Mashiach's avatar
      status_led: Kconfig migration · 2d8d190c
      Uri Mashiach authored
      
      Move all of the status LED feature to drivers/led/Kconfig.
      The LED status definitions were moved from the board configuration
      files to the defconfig files.
      
      TBD: Move all of the definitions in the include/status_led.h to the
      relevant board's defconfig files.
      
      Tested boards: CL-SOM-AM57x, CM-T335
      
      Signed-off-by: default avatarUri Mashiach <uri.mashiach@compulab.co.il>
      2d8d190c
  24. Jan 02, 2017
  25. Oct 13, 2016
  26. Sep 23, 2016
  27. Sep 06, 2016
    • Fabio Estevam's avatar
      mx6: ddr: Allow changing REFSEL and REFR fields · edf00937
      Fabio Estevam authored
      
      Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
      REFR fields of the MDREF register as 1 and 7, respectively for
      DDR3 and 0 and 3 for LPDDR2.
      
      Looking at the MDREF initialization done via DCD we see that
      boards do need to initialize these fields differently:
      
      $ git grep 0x021b0020 board/
      board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
      board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x00000800 /* MMDC0_MDREF */
      board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
      board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4      0x021b0020 0x00005800
      board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
      board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x00001800
      board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00000800
      board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x00000800
      board/warp/imximage.cfg:DATA 4 0x021b0020 0x00001800
      
      So introduce a mechanism for users to be able to configure
      REFSEL and REFR fields as needed.
      
      Keep all the mx6 SPL users in their current REF_SEL and REFR values,
      so no functional changes for the existing users.
      
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarEric Nelson <eric@nelint.com>
      edf00937
    • Christopher Spinrath's avatar
      ARM: board: cm_fx6: fix mtd partition fixup · f8de60bd
      Christopher Spinrath authored
      
      ft_board_setup may return early in the case that the board revision
      cannot be obtained. In that case it is assumed that no revision
      specific correction in the fdt is neccessary. But the mtd partitions
      will not be fixed up either altough they are not revision specific.
      
      Move the call to fdt_fixup_mtdparts in front of the revision specific
      part to ensure that the partitions are fixed up even if the board
      revision cannot be obtained.
      
      While on it, fix a spelling mistake in a comment introduced by the
      same commit.
      
      Fixes: 62d6bac6 ("ARM: board: cm_fx6: fixup mtd partitions in the fdt")
      Signed-off-by: default avatarChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      Reviewed-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      f8de60bd
  28. Jul 19, 2016
  29. Jul 12, 2016
  30. May 20, 2016
Loading