10 May, 2014

1 commit


23 Mar, 2014

1 commit


18 Mar, 2014

2 commits


05 Mar, 2014

6 commits

  • Convert sandbox over to use driver model GPIOs.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • As an example of how to write a uclass and a driver, provide a demo version
    of each, accessible through the 'demo' command.

    To use these with driver model, define CONFIG_CMD_DEMO and CONFIG_DM_DEMO.

    The two demo drivers are enabled with CONFIG_DM_DEMO_SIMPLE and
    CONFIG_DM_DEMO_SHAPE.

    Signed-off-by: Simon Glass
    Signed-off-by: Marek Vasut
    Signed-off-by: Pavel Herrmann
    Signed-off-by: Viktor Křivák
    Signed-off-by: Tomas Hlavacek

    Simon Glass
     
  • This command is not required for driver model operation, but can be useful
    for testing. It provides simple dumps of internal data structures.

    Signed-off-by: Simon Glass
    Signed-off-by: Marek Vasut
    Signed-off-by: Pavel Herrmann
    Signed-off-by: Viktor Křivák
    Signed-off-by: Tomas Hlavacek

    Simon Glass
     
  • Add some tests of driver model functionality. Coverage includes:

    - basic init
    - binding of drivers to devices using platform_data
    - automatic probing of devices when referenced
    - availability of platform data to devices
    - lifecycle from bind to probe to remove to unbind
    - renumbering within a uclass when devices are probed/removed
    - calling driver-defined operations
    - deactivation of drivers when removed
    - memory leak across creation and destruction of drivers/uclasses
    - uclass init/destroy methods
    - automatic probe/remove of children/parents when needed

    This function is enabled for sandbox, using CONFIG_DM_TEST.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Use driver model in sandbox to permit running of driver model unit test.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE
    option to make it easier to use device tree with sandbox.

    This adjusts the Makefile to build a u-boot.dtb file which can be passed
    to sandbox U-Boot with:

    ./u-boot -d u-boot.dtb

    Signed-off-by: Simon Glass

    Simon Glass
     

19 Feb, 2014

1 commit


09 Jan, 2014

2 commits

  • Add a simple TPM emulator for sandbox. It only supports a small subset of
    TPM operations. However, these are enough to perform common tasks.

    Note this is an initial commit to get this working, but it could use
    cleaning up (for example constants instead of open-coded values).

    Signed-off-by: Simon Glass

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

    Simon Glass
     
  • Provide a way to use any host file or device as a block device in U-Boot.
    This can be used to provide filesystem access within U-Boot to an ext2
    image file on the host, for example.

    The support is plumbed into the filesystem and partition interfaces.

    We don't want to print a message in the driver every time we find a missing
    device. Pass the information back to the caller where a message can be printed
    if desired.

    Signed-off-by: Henrik Nordström
    Signed-off-by: Simon Glass
    - Removed change to part.c get_device_and_partition()

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

    Henrik Nordström
     

10 Dec, 2013

1 commit

  • We want to test SPI flash code in the sandbox, so enable the new drivers and
    the 'sf test' command.

    This command is used to validate the sandbox SPI / SPI flash implementation,
    so enable it.

    Signed-off-by: Mike Frysinger
    Signed-off-by: Simon Glass

    Mike Frysinger
     

22 Nov, 2013

1 commit

  • Sandbox uses an emulated memory map which is quite small. We don't need the
    CONFIG_PHYS_64BIT option since we can address memory with a 32-bit offset
    into our ram_buf.

    Adjust the phys_addr_t and phys_size_t types accordingly.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass
    Reviewed-by: Hung-ying Tyan

    Simon Glass
     

09 Nov, 2013

2 commits


05 Nov, 2013

2 commits


04 Sep, 2013

1 commit

  • This adds the "test_compression" command when building the sandbox. This
    tests the existing compression and decompression routines for simple
    sanity and for buffer overflow conditions.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     

24 Jul, 2013

1 commit


26 Jun, 2013

2 commits


01 May, 2013

3 commits


05 Mar, 2013

2 commits


01 Mar, 2013

1 commit


21 Jun, 2012

1 commit


12 Mar, 2012

2 commits


04 Nov, 2011

1 commit


18 Oct, 2011

1 commit