- Mar 04, 2014
-
-
Simon Glass authored
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 <sjg@chromium.org> Signed-off-by:
Marek Vasut <marex@denx.de> Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com> Signed-off-by:
Viktor Křivák <viktor.krivak@gmail.com> Signed-off-by:
Tomas Hlavacek <tmshlvck@gmail.com>
-
Simon Glass authored
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 <sjg@chromium.org> Signed-off-by:
Marek Vasut <marex@denx.de> Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com> Signed-off-by:
Viktor Křivák <viktor.krivak@gmail.com> Signed-off-by:
Tomas Hlavacek <tmshlvck@gmail.com>
-
Simon Glass authored
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 <sjg@chromium.org>
-
Simon Glass authored
Use driver model in sandbox to permit running of driver model unit test. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
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 <sjg@chromium.org>
-
- Feb 19, 2014
-
-
Stephen Warren authored
Since the generic ls command no longer segfaults sandbox, enable it. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jan 09, 2014
-
-
Simon Glass authored
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 <sjg@chromium.org> Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Henrik Nordström authored
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 <henrik@henriknordstrom.net> Signed-off-by:
Simon Glass <sjg@chromium.org> - Removed change to part.c get_device_and_partition() Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Dec 09, 2013
-
-
Mike Frysinger authored
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 <vapier@gentoo.org> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 21, 2013
-
-
Simon Glass authored
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 <sjg@chromium.org> Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Hung-ying Tyan <tyanh@chromium.org>
-
- Nov 08, 2013
-
-
Rob Herring authored
Convert sandbox to use common time functions. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Egbert Eich authored
Signed-off-by:
Egbert Eich <eich@suse.com>
-
- Nov 04, 2013
-
-
Rob Herring authored
Remove platform CONFIG_SYS_HZ definition for configs a-z*. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
The definitions for CONFIG_SYS_PROMPT are varied with little reason other than to display the board name. Over half the definitions are "==> ", so make this the default. The rest of the boards remain unchanged to avoid breaking any external scripts expecting a certain prompt. Signed-off-by:
Rob Herring <rob.herring@calxeda.com> Reviewed-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Sep 03, 2013
-
-
Kees Cook authored
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 <keescook@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Jun 26, 2013
-
-
Simon Glass authored
We want to sign and verify images using sandbox, so enable these options. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Support tracing on sandbox by adding suitable CONFIG options. To enable it, compile U-Boot with FTRACE=1. The timer functions are marked to skip tracing, since these are called from the tracing code itself, and we want to avoid an infinite loop. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 01, 2013
-
-
Simon Glass authored
Enable these options to use FITs on sandbox. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
With sandbox it is tricky to add an FDT to the image at build time (or later) since we build an ELF file, not a plain binary, and the address space of the whole U-Boot is not accessible in the emulated memory map of sandbox. Sandbox can read files directly from the host, though, so add an option to read an FDT from a host file on start-up. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add generic board support for sandbox. and remove the old board init code. Select CONFIG_SYS_GENERIC_BOARD for sandbox now that this is supported. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Mar 04, 2013
-
-
Simon Glass authored
The 'sb' command allows loading files from the host, and listing directories. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@ti.com>
-
Simon Glass authored
These are useful for build-testing code, at least. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Mar 01, 2013
-
-
Simon Glass authored
Enable the hash command and sha1/256 hashing for sandbox. Also use a better address for memory testing (since the existing one is set up for linux host memory space). Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jun 20, 2012
-
-
Tom Rini authored
Exactly one board has defined CONFIG_SYS_PROMPT_HUSH_PS2 to a value different than "> " which is vision2. I have Cc'd the maintainer here as I strongly suspect this is a bug rather than intentional behavior. Cc: Stefano Babic <sbabic@denx.de> Signed-off-by:
Tom Rini <trini@ti.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Mar 12, 2012
-
-
Simon Glass authored
Enable the new GPIO driver for sandbox. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Simon Glass authored
Enable fdt code and safe snprintf() options for sandbox. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Nov 03, 2011
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Oct 17, 2011
-
-
Simon Glass authored
This basic provides required features along with a basic command set. Signed-off-by:
Simon Glass <sjg@chromium.org>
-