Skip to content
Snippets Groups Projects
  1. Oct 11, 2009
  2. Sep 04, 2009
  3. Jul 20, 2009
  4. Jul 17, 2009
    • 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
  5. Jun 12, 2009
    • Stefan Roese's avatar
      lib_arch/board.c: Move malloc initialization before flash_init() · c790b04d
      Stefan Roese authored
      
      This patch moves the malloc initialization before calling flash_init().
      Upcoming changes to the NOR FLASH common CFI driver with optional
      MTD infrastructure and MTD concatenation support will call malloc().
      And nothing really speaks against enabling malloc just a little earlier
      in the boot stage. Some architectures already enable malloc before
      calling flash_init() so they don't need any changes here.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Scott McNutt <smcnutt@psyent.com>
      Cc: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      Cc: John Rigby <jcrigby@gmail.com>
      c790b04d
  6. May 16, 2009
  7. Apr 04, 2009
  8. Mar 20, 2009
    • Mike Frysinger's avatar
      lib_*/board.c: do not initialize bi_enet*addr in global data · 19b5b533
      Mike Frysinger authored
      
      Since everyone is using the environment for mac address storage, there is
      no point in seeding the global data.
      
      The arches that are converted here:
      	i386
      	m68k
      	microblaze
      	mips
      	nios
      	nios2
      	sh
      	sparc
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      CC: Ben Warren <biggerbadderben@gmail.com>
      CC: Daniel Hellstrom <daniel@gaisler.com>
      CC: Michal Simek <monstr@seznam.cz>
      CC: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      CC: Scott McNutt <smcnutt@psyent.com>
      CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      19b5b533
  9. Dec 10, 2008
  10. Dec 06, 2008
  11. Oct 28, 2008
    • Kumar Gala's avatar
      bootm: Add subcommands · 49c3a861
      Kumar Gala authored
      
      Add the ability to break the steps of the bootm command into several
      subcommands: start, loados, ramdisk, fdt, bdt, cmdline, prep, go.
      
      This allows us to do things like manipulate device trees before
      they are passed to a booting kernel or setup memory for a secondary
      core in multicore situations.
      
      Not all OS types support all subcommands (currently only start, loados,
      ramdisk, fdt, and go are supported).
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      49c3a861
  12. Oct 18, 2008
  13. Sep 10, 2008
  14. Sep 09, 2008
  15. Aug 26, 2008
  16. Aug 11, 2008
  17. Jul 14, 2008
  18. Jul 13, 2008
  19. Jul 08, 2008
  20. Jun 05, 2008
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Fix CP0 count register usage and timer routines · a55d4817
      Shinya Kuribayashi authored
      
      MIPS port has two problems in timer routines. One is now we assume CFG_HZ
      equals to CP0 counter frequency, but this is wrong. CFG_HZ has to be 1000
      in the U-Boot system.
      
      The other is we don't have a proper time management counter like timestamp
      other ARCHs have. We need the 32-bit millisecond clock counter.
      
      This patch introduces timestamp and CYCLES_PER_JIFFY. timestamp is a
      32-bit non-overflowing CFG_HZ counter, and CYCLES_PER_JIFFY is the number
      of calculated CP0 counter cycles in a CFG_HZ.
      
      STRATEGY:
      
      * Fix improper CFG_HZ value to have 1000
      
      * Use CFG_MIPS_TIMER_FREQ for timer counter frequency, instead.
      
      * timer_init: initialize timestamp and set up the first timer expiration.
        Note that we don't need to initialize CP0 count/compare registers here
        as they have been already zeroed out on the system reset. Leave them as
        they are.
      
      * get_timer: calculate how many timestamps have been passed, then return
        base-relative timestamp. Make sure we can easily count missed timestamps
        regardless of CP0 count/compare value.
      
      * get_ticks: return the current timestamp, that is get_timer(0).
      
      Most parts are from good old Linux v2.6.16 kernel.
      
      v2:
      - Remove FIXME comments as they turned out to be trivial.
      - Use CP0 compare register as a global variable for expirelo.
      - Kill a global variable 'cycles_per_jiffy'. Use #define CYCLES_PER_JIFFY
        instead.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      a55d4817
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Fix udelay · 199e4f65
      Shinya Kuribayashi authored
      
      What we have to do is just to wait for given micro-seconds. No need to
      take into account current time, get_timer and CFG_HZ.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      199e4f65
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Replace CP0 access functions with existing macros · c7e38e41
      Shinya Kuribayashi authored
      
      We already have many pre-defined CP0 access macros in <asm/mipsregs.h>.
      This patch replaces mips_{compare,count}_set and mips_count_get with
      existing macros.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      c7e38e41
  21. May 29, 2008
  22. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  23. Apr 18, 2008
  24. Mar 12, 2008
  25. Feb 29, 2008
  26. Feb 27, 2008
Loading