1. 06 6月, 2017 3 次提交
    • S
      bootstage: Fix up code style and comments · cbcd6970
      Simon Glass 提交于
      There are several code style and comment nits. Fix them and also remove
      the comment about passing bootstage to the kernel being TBD. This is
      already supported.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      cbcd6970
    • S
      bootstage: Convert to use malloc() · b383d6c0
      Simon Glass 提交于
      At present bootstage uses the data section of the image to store its
      information. There are a few problems with this:
      
      - It does not work on all boards (e.g. those which run from flash before
      relocation)
      - Allocated strings still point back to the pre-relocation data after
      relocation
      
      Now that U-Boot has a pre-relocation malloc() we can use this instead,
      with a pointer to the data in global_data. Update bootstage to do this and
      set up an init routine to allocate the memory.
      
      Now that we have a real init function, we can drop the fake 'reset' record
      and add a normal one instead.
      
      Note that part of the problem with allocated strings remains. They are
      reallocated but this will only work where pre-relocation memory is
      accessible after relocation.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b383d6c0
    • S
      bootstage: Require timer_get_boot_us() to be defined · c87dc38d
      Simon Glass 提交于
      At present we provide a default version of this function for use by
      bootstage. However it uses the system timer and therefore likely requires
      driver model. This makes it impossible to time driver-model init.
      
      Drop the function and require boards to provide their own. Add a sandbox
      version also. There is a default implememtation in lib/time.c for boards
      which use CONFIG_SYS_TIMER_COUNTER.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      c87dc38d
  2. 10 6月, 2016 1 次提交
  3. 24 5月, 2016 1 次提交
  4. 28 5月, 2015 1 次提交
  5. 15 5月, 2015 1 次提交
  6. 19 4月, 2015 1 次提交
  7. 07 2月, 2015 2 次提交
  8. 22 10月, 2014 1 次提交
  9. 16 8月, 2013 1 次提交
  10. 24 7月, 2013 1 次提交
  11. 05 6月, 2013 2 次提交
  12. 15 5月, 2013 1 次提交
  13. 14 5月, 2013 3 次提交
  14. 03 10月, 2012 5 次提交
  15. 02 10月, 2012 1 次提交
  16. 11 4月, 2012 1 次提交
  17. 19 3月, 2012 11 次提交