1. 10 Sep, 2014 1 commit
    • Simon Glass's avatar
      dm: Make driver model available before board_init() · 9fb02491
      Simon Glass authored
      For some boards board_init() will change GPIOs, so we need to have driver
      model available before then. Adjust the board init to arrange this, but
      enable it for driver model only, just to be safe.
      
      This does create additional #ifdef logic, but it is safer than trying to
      make a pervasive change which may cause some boards to break.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      9fb02491
  2. 23 Jul, 2014 2 commits
    • Simon Glass's avatar
      stdio: Provide functions to add/remove devices using stdio_dev · d97143a6
      Simon Glass authored
      The current functions for adding and removing devices require a device name.
      This is not convenient for driver model, which wants to store a pointer to
      the relevant device. Add new functions which provide this feature and adjust
      the old ones to call these.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d97143a6
    • 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
  3. 13 Aug, 2013 1 commit
  4. 24 Jul, 2013 1 commit
  5. 23 Jul, 2013 2 commits
  6. 04 Feb, 2013 1 commit
  7. 11 Dec, 2012 1 commit
  8. 30 Nov, 2012 1 commit
    • Vadim Bendebury's avatar
      x86: Add CBMEM console driver for coreboot · 98ab435f
      Vadim Bendebury authored
      This patch builds upon the recently introduced CBMEM console
      feature of coreboot.
      
      CBMEM console uses a memry area allocated by coreboot to store
      the console output. The memory area has a certain structure,
      which allows to determine where the buffer is, the buffer size
      and the location of the pointer in the buffer. This allows
      different phases of the firmware (rom based coreboot, ram based
      coreboot, u-boot after relocation with this change) to keep
      adding text to the same buffer.
      
      Note that this patch introduces a new console driver and adds the
      driver to the list of drivers to be used for console output, i.e.
      it engages only after u-boot relocates. Usiong CBMEM console for
      capturing the pre-relocation console output will be done under a
      separate change.
      
      >From Linux, run the cbmem.py utility (which is a part of the coreboot
      package) to see the output, e.g.:
      
      vvvvvvvvvvvvvvvvv
      SCSI:  AHCI 0001.0300 32 slots 6 ports ? Gbps 0xf impl SATA mode
      flags: 64bit ilck stag led pmp pio
      ...
      Magic signature found
      Kernel command line: "cros_secure  quiet loglevel=1 console=tty2...
      ^^^^^^^^^^^^^^^^^
      
      Note that the entire u-boot output fits into the buffer only if
      the coreboot log level is reduced from the most verbose. Ether
      the buffer size will have to be increased, or the coreboot
      verbosity permanently reduced.
      Signed-off-by: default avatarVadim Bendebury <vbendeb@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      98ab435f
  9. 15 Oct, 2012 1 commit
  10. 04 Sep, 2011 1 commit
  11. 09 Dec, 2010 1 commit
  12. 28 Nov, 2010 1 commit
  13. 29 Oct, 2010 1 commit
  14. 23 Sep, 2010 1 commit
  15. 03 Oct, 2009 2 commits
    • Peter Tyser's avatar
      arm/microblaze/nios/nios2/sh: Remove relocation fixups · 0630535e
      Peter Tyser authored
      These architectures don't need relocation fixups, so reduce their
      codesize a bit by defining CONFIG_RELOC_FIXUP_WORKS.
      
      Also remove the reloc_off field from their global data structures
      as it is no longer needed.
      
      Note that the location of the standalone application jump table pointer
      in the global data structure is affected by this change, breaking
      execution of standalone applications compiled for previous versions of
      U-Boot. We will therefore increment XF_VERSION in the next commit,
      which also touches this area.
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      0630535e
    • Peter Tyser's avatar
      Conditionally perform common relocation fixups · 521af04d
      Peter Tyser authored
      Add #ifdefs where necessary to not perform relocation fixups.  This
      allows boards/architectures which support relocation to trim a decent
      chunk of code.
      
      Note that this patch doesn't add #ifdefs to architecture-specific code
      which does not support relocation.
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      521af04d
  16. 17 Jul, 2009 1 commit
    • Jean-Christophe PLAGNIOL-VILLARD's avatar
      stdio/device: rework function naming convention · 52cb4d4f
      Jean-Christophe PLAGNIOL-VILLARD authored
      So far the console API uses the following naming convention:
      
      	======Extract======
      	typedef struct device_t;
      
      	int	device_register (device_t * dev);
      	int	devices_init (void);
      	int	device_deregister(char *devname);
      	struct list_head* device_get_list(void);
      	device_t* device_get_by_name(char* name);
      	device_t* device_clone(device_t *dev);
      	=======
      
      which is too generic and confusing.
      
      Instead of using device_XX and device_t we change this
      into stdio_XX and stdio_dev
      
      This will also allow to add later a generic device mechanism in order
      to have support for multiple devices and driver instances.
      Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      
      Edited commit message.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      52cb4d4f
  17. 22 Feb, 2009 1 commit
  18. 28 Jan, 2009 1 commit
  19. 18 Oct, 2008 1 commit
  20. 05 Sep, 2008 1 commit
    • Stefan Roese's avatar
      devices: Use list_add_tail() instead of list_add() to register a device · 3e3c026e
      Stefan Roese authored
      This patch fixes a problem spotted on Glacier/Canyonlands (and most
      likely lots of other board ports), that no serial output was seen
      after console initialization in console_init_r(). This is because the
      last added console device was used instead of the first added.
      
      This patch fixes this problem by using list_add_tail() instead of
      list_add() to register a device. This way the first added console
      is used again.
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      3e3c026e
  21. 01 Sep, 2008 1 commit
  22. 31 Aug, 2008 1 commit
  23. 14 Jul, 2008 1 commit
  24. 31 Mar, 2006 1 commit
  25. 02 Aug, 2004 1 commit
  26. 01 Aug, 2004 1 commit
    • wdenk's avatar
      * Code cleanup · 281e00a3
      wdenk authored
      * Patch by Sascha Hauer, 28 Jun:
        - add generic support for Motorola i.MX architecture
        - add support for mx1ads, mx1fs2 and scb9328 boards
      
      * Patches by Marc Leeman, 23 Jul 2004:
        - Add define for the PCI/Memory Buffer Configuration Register
        - corrected comments in cpu/mpc824x/cpu_init.c
      
      * Add support for multiple serial interfaces
        (for example to allow modem dial-in / dial-out)
      281e00a3
  27. 14 Mar, 2004 1 commit
  28. 12 Mar, 2004 1 commit
  29. 18 Sep, 2003 2 commits
    • wdenk's avatar
      Work on TRAB's auto_update feature. · 80369866
      wdenk authored
      Cleanup for submitted patches.
      80369866
    • wdenk's avatar
      * Patches by Anders Larsen, 17 Sep 2003: · 5f535fe1
      wdenk authored
        - fix spelling errors
        - set GD_FLG_DEVINIT flag only after device function pointers
          are valid
        - Allow CFG_ALT_MEMTEST on systems where address zero isn't
          writeable
        - enable 3.rd UART (ST-UART) on PXA(XScale) CPUs
        - trigger watchdog while waiting in serial driver
      5f535fe1
  30. 22 Jun, 2003 1 commit
    • wdenk's avatar
      * Patch by Rune Torgersen, 4 Jun 2003: · 3595ac49
      wdenk authored
        add large memory support for MPC8266ADS board
      
      * Patch by Richard Woodruff, 19 June 03:
        - Enabled standard u-boot device abstraction for ARM
        - Enabled console device for ARM
        - Initilized bi_baudrate for ARM
      
      * Patch by Bill Hargen, 23 Apr 2003:
        fix byte order for 824x I2C addresses (write op)
      3595ac49
  31. 03 Jun, 2003 1 commit
    • wdenk's avatar
      * Patches by Udi Finkelstein, 2 June 2003: · 682011ff
      wdenk authored
        - Added support for custom keyboards, initialized by defining a
          board-specific drv_keyboard_init as well as defining CONFIG_KEYBOARD .
        - Added support for the RBC823 board.
        - cpu/mpc8xx/lcd.c now automatically calculates the
          Horizontal Pixel Count field.
      
      * Fix alignment problem in BOOTP (dhcp_leasetime option)
        [pointed out by Nicolas Lacressonnire, 2 Jun 2003]
      
      * Patch by Mark Rakes, 14 May 2003:
        add support for Intel e1000 gig cards.
      
      * Patch by Nye Liu, 3 Jun 2003:
        fix critical typo in MAMR definition (include/mpc8xx.h)
      
      * Fix requirement to align U-Boot image on 16 kB boundaries on PPC.
      
      * Patch by Klaus Heydeck, 2 Jun 2003
        Minor changes for KUP4K configuration
      682011ff
  32. 20 Apr, 2003 1 commit
    • wdenk's avatar
      * Make sure Block Lock Bits get cleared in R360MPI flash driver · d791b1dc
      wdenk authored
      * MPC823 LCD driver: Fill color map backwards, to allow for steady
        display when Linux takes over
      
      * Patch by Erwin Rol, 27 Feb 2003:
        Add support for RTEMS (this time for real).
      
      * Add support for "bmp info" and "bmp display" commands to load
        bitmap images; this can be used (for example in a "preboot"
        command) to display a splash screen very quickly after poweron.
      
      * Add support for 133 MHz clock on INCA-IP board
      d791b1dc
  33. 03 Dec, 2002 1 commit
  34. 10 Nov, 2002 1 commit
    • wdenk's avatar
      * Vince Husovsky, 7 Nov 2002: · 7f6c2cbc
      wdenk authored
        Add "-n" to linker options to get rid of "Not enough room for
        program headers" problem
      
      * Patch by David Mller, 05 Nov 2002
        Rename CONFIG_PLL_INPUT_FREQ to CONFIG_SYS_CLK_FREQ
        so we can use an already existing name
      
      * Patch by Pierre Aubert, 05 Nov 2002
        Hardware related improvements in FDC boot code
      
      * Patch by Holger Schurig, 5 Nov 2002:
        Make the PXA really change it's frequency
      
      * Patch by Pierre Aubert, 05 Nov 2002
        Add support for slave serial Spartan 2 FPGAs
      
      * Fix uninitialized memory (MAC address) in 8xx SCC/FEC ethernet
        drivers
      7f6c2cbc
  35. 05 Nov, 2002 1 commit
  36. 18 Sep, 2002 1 commit