27 Feb, 2019

1 commit

  • This patch adds fixed-factor clock driver which derives clock
    rate by dividing (div) and multiplying (mult) fixed factors
    to a parent clock.

    Signed-off-by: Atish Patra
    Signed-off-by: Anup Patel
    Reviewed-by: Simon Glass

    Anup Patel
     

20 Feb, 2019

4 commits

  • When testing the sound system we don't need the hear the beeps. The
    testing works by checking the data that would be emitted. Add a
    device-tree property to silence the sound, and enable it for testing.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • Some audio codecs such as Intel HDA do not need to use digital data to
    play sounds, but instead have a way to emit beeps. Add this interface as
    an option. If the beep interface is not supported, then the sound uclass
    falls back to the I2S interface.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • This uclass currently has no tests. Add a sandbox driver and some simple
    tests to provide basic coverage.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    [bmeng: Use "sandbox,pch" for the compatible string, for consistency]
    Signed-off-by: Bin Meng

    Simon Glass
     
  • This struct is getting larger and in some cases is being used for things
    which would be better put into a driver. For example hwspinlock is not
    used outside of sandbox_hwspinlock.c.

    Add a note to encourage people to put things elsewhere.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

16 Jan, 2019

1 commit


15 Jan, 2019

4 commits


14 Dec, 2018

8 commits


10 Dec, 2018

1 commit


07 Dec, 2018

3 commits


05 Dec, 2018

5 commits


30 Nov, 2018

5 commits


26 Nov, 2018

7 commits

  • There is some basic informaton that SPL normally wants to pass through to
    U-Boot, such as the SDRAM size and bank information.

    Mkae use of the new bloblist structure for this. Add a new 'handoff' blob
    which is set up in SPL and passed to U-Boot proper. Also adda test for
    sandbox_spl that checks that this works correctly and a new 'sb' command
    to show the information passed from SPL.

    Reviewed-by: Tom Rini
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Most architectures use jump_to_image_no_args() to jump from SPL to U-Boot.
    At present sandbox is special in that it jumps in its
    spl_board_load_image() call. This is not strictly correct, and means that
    sandbox misses out some parts of board_init_r(), just as calling
    bloblist_finish(), for example.

    Change spl_board_load_image() to just identify the filename to boot, and
    implement jump_to_image_no_args() to actually jump to it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The current method of starting U-Boot from U-Boot adds arguments to pass
    the memory file through, so that memory is preserved. This is fine for a
    single call, but if we call from TPL -> SPL -> U-Boot the arguments build
    up and we have several memory files in the argument list.

    Adjust the implementation to filter out arguments that we want to replace
    with new ones. Also print a useful error if the exec() call fails.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present sandbox calls malloc() from various places in the OS layer and
    this results in calls to U-Boot's malloc() implementation. It is better to
    use the on in the OS layer, since it does not mix allocations with the
    main U-Boot code.

    Fix this by replacing calls with malloc() to os_malloc(), etc.

    Signed-off-by: Simon Glass
    Reviewed-by: Joe Hershberger

    Simon Glass
     
  • At present os_jump_to_image() jumps to a given image, and this is written
    to a file. But it is useful to be able to jump to a file also.

    To avoid duplicating code, split out the implementation of
    os_jump_to_image() into a new function that jumps to a file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The old 'sb' command was deprecated in 2015 and replaced with 'host'. It
    is useful to be able to access some internal sandbox state, particularly
    for testing.

    Resurrect the old command and provide a way to print some basic state
    information (currently just the arguments to sandbox).

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present we don't have a test that of-platdata can be accessed in SPL.
    Add this in as a command-line option to SPL.

    Signed-off-by: Simon Glass

    Simon Glass
     

21 Nov, 2018

1 commit