Skip to content
Snippets Groups Projects
  1. Sep 20, 2016
  2. Jun 04, 2016
  3. Jan 25, 2016
  4. Nov 10, 2015
  5. May 12, 2015
  6. May 04, 2015
  7. Sep 13, 2014
  8. Jul 30, 2014
  9. Jul 23, 2014
    • Simon Glass's avatar
      stdio: Pass device pointer to stdio methods · 709ea543
      Simon Glass authored
      
      At present stdio device functions do not get any clue as to which stdio
      device is being acted on. Some implementations go to great lengths to work
      around this, such as defining a whole separate set of functions for each
      possible device.
      
      For driver model we need to associate a stdio_dev with a device. It doesn't
      seem possible to continue with this work-around approach.
      
      Instead, add a stdio_dev pointer to each of the stdio member functions.
      
      Note: The serial drivers have the same problem, but it is not strictly
      necessary to fix that to get driver model running. Also, if we convert
      serial over to driver model the problem will go away.
      
      Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.
      
      22: stdio: Pass device pointer to stdio methods
             arm: (for 2/2 boards)  all +244.0  bss -4.0  text +248.0
         powerpc: (for 1/1 boards)  all +428.0  text +428.0
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarMarek Vasut <marex@denx.de>
      709ea543
  10. Feb 21, 2014
  11. Dec 13, 2013
  12. Nov 17, 2013
  13. Oct 31, 2013
    • Masahiro Yamada's avatar
      powerpc: convert makefiles to Kbuild style · 06c14117
      Masahiro Yamada authored
      
      Note:
      arch/powerpc/cpu/mpc8260/Makefile is originally like follows:
      
          ---<snip>---
          START   = start.o kgdb.o
          COBJS   = traps.o serial_smc.o serial_scc.o cpu.o cpu_init.o speed.o \
          ---<snip>---
          COBJS-$(CONFIG_ETHER_ON_SCC) = ether_scc.o
          ---<snip>---
          $(LIB): $(OBJS)
                  $(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)
      
      The link rule `$(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)'
      is weird.
      kbdg.o is not included in $(OBJS) but linked into $(LIB)
      and $(LIB) is not dependent on kgdb.o.
      (Broken dependency tracking)
      
      So,
          START   = start.o kgdb.o
      shoud have been
          START   = start.o
          SOBJS   = kgdb.o
      
      That is why this commit adds kgdb.o to obj-y, not to extra-y.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      06c14117
  14. Jul 24, 2013
  15. May 02, 2013
  16. Apr 28, 2013
  17. Mar 15, 2013
    • Simon Glass's avatar
      Replace __bss_end__ with __bss_end · 3929fb0a
      Simon Glass authored
      
      Note this is a tree-wide change affecting multiple architectures.
      
      At present we use __bss_start, but mostly __bss_end__. This seems
      inconsistent and in a number of places __bss_end is used instead.
      
      Change to use __bss_end for the BSS end symbol throughout U-Boot. This
      makes it possible to use the asm-generic/sections.h file on all
      archs.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      3929fb0a
  18. Mar 12, 2013
    • Albert ARIBAUD's avatar
      Refactor linker-generated arrays · ef123c52
      Albert ARIBAUD authored
      
      Refactor linker-generated array code so that symbols
      which were previously linker-generated are now compiler-
      generated. This causes relocation records of type
      R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
      code which uses LGA able to run before relocation as
      well as after.
      
      Note: this affects more than ARM targets, as linker-
      lists span possibly all target architectures, notably
      PowerPC.
      
      Conflicts:
      	arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
      	arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
      	arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
      	board/ait/cam_enc_4xx/u-boot-spl.lds
      	board/davinci/da8xxevm/u-boot-spl-da850evm.lds
      	board/davinci/da8xxevm/u-boot-spl-hawk.lds
      	board/vpac270/u-boot-spl.lds
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      ef123c52
  19. Mar 09, 2013
  20. Feb 04, 2013
  21. Nov 04, 2012
    • Kim Phillips's avatar
      arch/powerpc/lib/board.c, *traps.c: sparse fixes · 20051f2a
      Kim Phillips authored
      
      traps.c:*:1: warning: symbol 'print_backtrace' was not declared. Should it be static?
      traps.c:93:1: warning: symbol '_exception' was not declared. Should it be static?
      board.c:166:6: warning: symbol '__board_add_ram_info' was not declared. Should it be static?
      board.c:174:5: warning: symbol '__board_flash_wp_on' was not declared. Should it be static?
      board.c:187:6: warning: symbol '__cpu_secondary_init_r' was not declared. Should it be static?
      board.c:265:12: warning: symbol 'init_sequence' was not declared. Should it be static?
      board.c:348:5: warning: symbol '__fixup_cpu' was not declared. Should it be static?
      board.c:405:53: warning: Using plain integer as NULL pointer
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      20051f2a
  22. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  23. Oct 15, 2012
    • Marek Vasut's avatar
      serial: Remove CONFIG_SERIAL_MULTI from serial drivers · a3827250
      Marek Vasut authored
      
      Remove the support for not-CONFIG_SERIAL_MULTI part from serial
      port drivers and some board files. Since CONFIG_SERIAL_MULTI is
      now enabled by default, that part is a dead code. Remove it.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      a3827250
    • Marek Vasut's avatar
      serial: mpc512x: Move serial registration from serial_initialize() · 918327c8
      Marek Vasut authored
      
      Move the registration of serialN_device ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented mpc512x_serial_initialize() function, which is
      implemented inside of the mpc512x serial driver allows encapsulation
      of serialN_device within the mpc512x serial driver itself.
      
      Also, remove the exports of serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the mpx512x serial driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      918327c8
    • Marek Vasut's avatar
      serial: Properly spell out the structure member names of serial_driver · 90bad891
      Marek Vasut authored
      
      Properly spell out the whole structure member names when an initialized
      varible is instantiated from the struct serial_driver. In case the
      structure definition for struct serial_driver undergoes reordering,
      there will be no impact on variables defined based on this structure.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: C Nauman <cnauman@diagraph.com>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Michal Simek <monstr@monstr.eu>
      90bad891
  24. Jun 07, 2012
    • Marek Vasut's avatar
      MPC8xxx: Define cache ops for USB · 25315683
      Marek Vasut authored
      
      This patch conditionally defines flush_dcache_range() and
      invalidate_dcache_range() on MPC8xxx, to avoid EHCI complaining,
      resulting in the following output:
      
      $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- ./MAKEALL MPC8572DS
      Configuring for MPC8572DS board...
      make: *** [u-boot] Error 1
      powerpc-linux-gnu-size: './u-boot': No such file
      e1000.c: In function ‘e1000_initialize’:
      e1000.c:5264:13: warning: assignment from incompatible pointer type [enabled by default]
      tsec.c: In function ‘tsec_initialize’:
      tsec.c:638:12: warning: assignment from incompatible pointer type [enabled by default]
      drivers/usb/host/libusb_host.o: In function `ehci_td_buffer':
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:186: undefined reference to `flush_dcache_range'
      drivers/usb/host/libusb_host.o: In function `ehci_submit_async':
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:346: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:348: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:349: undefined reference to `flush_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:372: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:374: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:376: undefined reference to `invalidate_dcache_range'
      /home/marex/U-Boot/u-boot-imx/drivers/usb/host/ehci-hcd.c:386: undefined reference to `invalidate_dcache_range'
      make: *** [u-boot] Error 1
      
      --------------------- SUMMARY ----------------------------
      Boards compiled: 1
      Boards with errors: 1 ( MPC8572DS )
      ----------------------------------------------------------
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      25315683
  25. Nov 16, 2011
  26. Oct 27, 2011
  27. Aug 04, 2011
    • Timur Tabi's avatar
      video: Add SHARP LQ084S3LG01 LCD support on P1022DS · 3b4a2263
      Timur Tabi authored
      
      The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board.
      This device only supports 800x600 resolution, so if that resolution is selected,
      assume that this is the device.  The device is attached to the LVDS port
      on the P1022DS board.
      
      The existing 800x600 entry (for the PDM360NG board) is actually 800x480,
      so we fix that.  To support two different 800x resolutions, the Y-resolution
      is now passed to fsl_diu_init() and both values are used to pick the proper
      fb_videomode structure.
      
      The data for the 800x600 video mode is originally from Jiang Yutang.
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarJiang Yutang <b14898@freescale.com>
      3b4a2263
  28. Jul 28, 2011
  29. Jul 26, 2011
    • Mike Frysinger's avatar
      serial: drop useless ctlr field · 1c9a5606
      Mike Frysinger authored
      
      The multi serial support has a "ctlr" field which almost no one uses,
      but everyone is forced to set to useless strings.  So punt it.
      
      Funny enough, the only code that actually reads this field (the mpc8xx
      driver) has a typo where it meant to look for the SCC driver.  Fix it
      while converting the check to use the name field.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Heiko Schocher <hs@denx.de>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Tom Rix <Tom.Rix@windriver.com>
      CC: Minkyu Kang <mk7.kang@samsung.com>
      CC: Craig Nauman <cnauman@diagraph.com>
      CC: Marek Vasut <marek.vasut@gmail.com>
      CC: Prafulla Wadaskar <prafulla@marvell.com>
      CC: Mahavir Jain <mjain@marvell.com>
      1c9a5606
    • Mike Frysinger's avatar
      serial: push default_serial_console to drivers · 6c768ca7
      Mike Frysinger authored
      
      Rather than sticking arch/board/driver specific logic in the common
      serial code, push it all out to the respective drivers.  The serial
      drivers declare these funcs weak so that boards can still override
      things with their own definition.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Heiko Schocher <hs@denx.de>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Tom Rix <Tom.Rix@windriver.com>
      CC: Minkyu Kang <mk7.kang@samsung.com>
      CC: Craig Nauman <cnauman@diagraph.com>
      CC: Prafulla Wadaskar <prafulla@marvell.com>
      CC: Mahavir Jain <mjain@marvell.com>
      Tested-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
      6c768ca7
Loading