summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare v2018.11-rc1v2018.11-rc1Tom Rini2018-10-011-2/+2
| | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* MAINTAINERS: at91: update entry for at91 boardsEugen Hristev2018-10-0110-10/+10
| | | | | | Updated the maintainership for the at91 boards. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
* Merge git://git.denx.de/u-boot-dmTom Rini2018-09-3097-199/+3211
|\
| * dm: test: Add "/firmware" node scan testRajan Vaja2018-09-297-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | Add a test which verifies that all subnodes under "/firmware" nodes are scanned. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> Added 'imply FIRMWARE' to sandbox Kconfig to fix test failures, fixed ordering of lines in arch/sandbox/dts/test.dts and test/dm/Makefile, updated #if condition in drivers/firmware/firmware-uclass.c: Signed-off-by: Simon Glass <sjg@chromium.org>
| * firmware: Add FIRMWARE config prompt stringRajan Vaja2018-09-291-1/+1
| | | | | | | | | | | | | | | | | | There is no prompt string for FIRMWARE config. Without this, FIRMWARE config cannot be enabled through menuconfing or config file. Fix this by adding prompt summary. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * sandbox: Add an explanation of the sandbox variantsSimon Glass2018-09-291-0/+24
| | | | | | | | | | | | | | There are quite a few builds of sandbox now. Add information about these to the README. Signed-off-by: Simon Glass <sjg@chromium.org>
| * buildman: Avoid hanging when the config changesSimon Glass2018-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Something has changed in the last several month such that when buildman builds U-Boot incrementally and a new CONFIG option has been added to the Kconfig, the build hanges waiting for input: Test new config (NEW_CONFIG) [N/y/?] (NEW) Since binamn does not connect the build's stdin to anything this waits on stdin to the build thread, which never comes. Eventually I suspect all the threads end up in this state and the build does not progress. Fix this by passing /dev/null as input to the build. That way, if there is a new CONFIG, the build will stop (and fail): Test new config (NEW_CONFIG) [N/y/?] (NEW) Error in reading or end of file. Signed-off-by: Simon Glass <sjg@chromium.org>
| * include/dm.h: Remove duplicated include directiveLiviu Dudau2018-09-291-1/+0
| | | | | | | | | | | | | | | | | | | | Remove duplicated inclusion of dm/ofnode.h Signed-off-by: Liviu Dudau <liviu.dudau@foss.arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Drop period at end of commit subject: Signed-off-by: Simon Glass <sjg@chromium.org>
| * include/clk.h: Fix the name of the clock uclass in commentLiviu Dudau2018-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | The comment references a structure name that doesn't exist. Use the name of the actual uclass. Signed-off-by: Liviu Dudau <liviu.dudau@foss.arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Drop period at end of commit subject: Signed-off-by: Simon Glass <sjg@chromium.org>
| * fdt: fdtdec_setup_memory_banksize() use livetreeJens Wiklander2018-09-291-23/+21
| | | | | | | | | | | | | | Converts fdtdec_setup_memory_banksize() to use ofnode functions instead. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
| * cmd: clk: Add trivial implementation of clock dump for DMMarek Vasut2018-09-291-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add trivial implementation of the clk dump in case DM is enabled. This implementation just iterates over all the clock registered with the CLK uclass and prints their rate. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <chin.liang.see@intel.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
| * test: Add tests for board uclassMario Six2018-09-2912-1/+198
| | | | | | | | | | | | | | Add tests for the new board uclass. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * board: Add gazerbeam driverMario Six2018-09-294-0/+336
| | | | | | | | | | | | | | Add a board driver for the upcoming gdsys Gazerbeam board. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * drivers: Add board uclassMario Six2018-09-297-0/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since there is no canonical "board device" that can be used in board files, it is difficult to use DM function for board initialization in these cases. Hence, add a uclass that implements a simple "board device", which can hold devices not suitable anywhere else in the device tree, and is also able to read encoded information, e.g. hard-wired GPIOs on a GPIO expander, read-only memory ICs, etc. that carry information about the hardware. The devices of this uclass expose methods to read generic data types (integers, strings, booleans) to encode the information provided by the hardware. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * test: Add tests for dev_{enable, disable}_by_pathMario Six2018-09-291-0/+28
| | | | | | | | | | | | | | Add tests for the dev_{enable,disable}_by_path functions. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * core: Add dev_{disable,enable}_by_pathMario Six2018-09-292-0/+94
| | | | | | | | | | | | | | We cannot use device structures to disable devices, since getting them with the API functions would bind and activate the device, which would fail if the underlying device does not exist. Reviewed-by: Simon Glass <sjg@chromium.org>
| * test: Add tests for DT-manipulation functionsMario Six2018-09-291-0/+54
| | | | | | | | | | | | | | | | Add tests for the ofnode_set_enabled, ofnode_write_string, and ofnode_write_property functions. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * core: Add functions to set properties in live-treeMario Six2018-09-292-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | Implement a set of functions to manipulate properties in a live device tree: * ofnode_write_prop() to set generic properties of a node * ofnode_write_string() to set string properties of a node * ofnode_set_enabled() to either enable or disable a node Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * binman: Allow writing a map file when something goes wrongSimon Glass2018-09-294-8/+46
| | | | | | | | | | | | | | | | | | | | | | When we get a problem like overlapping regions it is sometimes hard to figure what what is going on. At present we don't write the map file in this case. However the file does provide useful information. Catch any packing errors and write a map file (if enabled with -m) to aid debugging. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support ELF files for U-Boot and SPLSimon Glass2018-09-296-0/+130
| | | | | | | | | | | | | | For sandbox we want to put ELF files in the image since that is what we need to execute. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Correct fmap output on x86Simon Glass2018-09-298-16/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | Normally x86 platforms use the end-at-4gb option. This currently produces an FMAP with positions which have a large offset. The use of end-at-4gb is a useful convenience within binman, but we don't really want to export a map with these offsets. Fix this by subtracting the 'skip at start' parameter. Also put the code which convers names to fmap format, for clarity. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Record the parent section of each sectionSimon Glass2018-09-293-4/+9
| | | | | | | | | | | | | | | | | | | | At present sections have no record of their parent so it is not possible to traverse up the tree to the root and figure out the position of a section within the image. Change the constructor to record this information. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support x86 microcode in TPLSimon Glass2018-09-299-21/+151
| | | | | | | | | | | | | | | | When TPL is used on x86 we may want to program the microcode (at least for the first CPU) early in boot. Add support for this by refactoring the existing code to be more generic. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support hashing entriesSimon Glass2018-09-299-0/+143
| | | | | | | | | | | | | | | | Sometimesi it us useful to be able to verify the content of entries with a hash. Add an easy way to do this in binman. The hash information can be retrieved from the device tree at run time. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Mention section attributes in docsSimon Glass2018-09-291-2/+2
| | | | | | | | | | | | | | Images and sections have the same attributes, since an image is mostly just a top-level section. Update the docs to explain this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support expanding entriesSimon Glass2018-09-298-2/+136
| | | | | | | | | | | | | | It is useful to have entries which can grow automatically to fill available space. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support adding filesSimon Glass2018-09-2917-0/+225
| | | | | | | | | | | | | | | | | | | | | | | | In some cases it is useful to add a group of files to the image and be able to access them at run-time. Of course it is possible to generate the binman config file with a set of blobs each with a filename. But for convenience, add an entry type which can do this. Add required support (for adding nodes and string properties) into the state module. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Allow zero-size sectionsSimon Glass2018-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | At present if there is only a zero-size entry in a section this is reported as an error, e.g.: Offset 0x0 (0) is outside the section starting at 0x0 (0) Adjust the logic in CheckEntries() to avoid this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support compressed entriesSimon Glass2018-09-296-9/+106
| | | | | | | | | | | | | | | | Add support for compressing blob entries. This can help reduce image sizes for many types of data. It requires that the firmware be able to decompress the data at run-time. Signed-off-by: Simon Glass <sjg@chromium.org>
| * patman: Detect missing tools and report themSimon Glass2018-09-281-1/+28
| | | | | | | | | | | | | | | | | | | | When tools are needed but not present, at present we just get an error which can be confusing for the user. Try to be helpful by reporting the tool as missing and suggesting a possible remedy. Also update the Run() method to support this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support updating all device tree filesSimon Glass2018-09-2813-21/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Binman currently supports updating the main device tree with things like the position of each entry. Extend this support to SPL and TPL as well, since they may need (a subset of) this information. Also adjust DTB output files to have a .out extension since this seems clearer than having a .dtb extension with 'out' in the name somwhere. Also add a few missing comments and update the DT setup code to use ReadFile and WriteFile(). Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Allow control of whether a fake DT is usedSimon Glass2018-09-284-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | We use a fake device tree in tests most of the time since tests don't normally care about the actual data. For example, for U-Boot proper we use U_BOOT_DTB_DATA which is just a four-character string. This makes testing the image output against an expected value very easy. However in some cases, such as when the test wants to check that the DT output containing particular nodes, we do actually need the real DT. Add support for this, along with a command-line option to select 'test mode'. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Obtain the list of device trees from the configSimon Glass2018-09-285-3/+46
| | | | | | | | | | | | | | | | We always have a device tree for U-Boot proper. But we may also have one for SPL and TPL. Add a new Entry method to find out what DTs an entry has, and use that list when updating DTs. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Centralise device-tree updates within binmanSimon Glass2018-09-283-8/+44
| | | | | | | | | | | | | | | | | | | | | | At present we have a few calls to device-tree functions in binman and plan to add more as we add new entry types which need to report their results. It makes sense to put this code in a central place so that we can make sure all device trees are updated. At present we only have U-Boot proper, but plan to add SPL and TPL too. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Move state logic into the state moduleSimon Glass2018-09-282-8/+56
| | | | | | | | | | | | | | Rather than reaching into this module from control, move the code that needs this info into state. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Move state information into a new moduleSimon Glass2018-09-285-48/+95
| | | | | | | | | | | | | | | | | | | | | | | | At present the control module has state information in it, since it is the primary user of this. But it is a bit odd to have entries and other modules importing control to obtain this information. It seems better to have a dedicated state module, which control can use as well. Create a new module using code from control and update other modules to use it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Add an entry method for getting the default filenameSimon Glass2018-09-282-0/+8
| | | | | | | | | | | | | | | | Various entry implementations provide a way to obtain the default filename for an entry. But at present there is no base-class implementation for this function. Add one so that the API is defined. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Add a way to create an Fdt object from a data blockSimon Glass2018-09-282-0/+22
| | | | | | | | | | | | | | Support creating an Fdt object without having to write the data to a file first. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Add methods for adding and updating propertiesSimon Glass2018-09-282-0/+113
| | | | | | | | | | | | | | Add a few more functions which allow creating and modifying property values. If only we could do this so easily in the real world. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Support adding new nodesSimon Glass2018-09-282-0/+28
| | | | | | | | | | | | Add a way to add new nodes and sync them back to the blob. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Fixed endianness in Prop.GetEmpty()Simon Glass2018-09-281-1/+1
| | | | | | | | | | | | This should be big endian, since that is what device tree uses. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Allow syncing of the device tree back to a fileSimon Glass2018-09-283-10/+91
| | | | | | | | | | | | | | | | | | | | | | At present we require the caller to manually update the device tree using individual calls to libfdt functions. This is not ideal. It would be better if we could make changes using the Python structure and then call a Sync() function to write them back. Add this feature to the Fdt class. Update binman and the tests to match. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Support building a selection of imagesSimon Glass2018-09-283-1/+29
| | | | | | | | | | | | | | | | | | Sometimes it is useful to build only a subset of the images provided by the binman configuration. Add a -i option for this. It can be given multiple times to build several images. If the option is not given, all images are built. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Tidy up the vblock entrySimon Glass2018-09-285-4/+43
| | | | | | | | | | | | | | | | | | | | | | At present if there are two vblock entries an image their contents are written to the same file in the output directory. This prevents checking the contents of each separately. Fix this by adding part of the entry path to the filename, and add some missing comments. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Add x86 support for starting TPLSimon Glass2018-09-284-1/+70
| | | | | | | | | | | | | | | | Sometimes we want to include TPL for x86 platforms, such as when we want to select between different SPL images (e.g. for Chrome OS verified boot). Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Generate an error when text is not providedSimon Glass2018-09-282-0/+10
| | | | | | | | | | | | | | | | When the value of a text entry is not provided an execption is generated talking about a None type. This is confusing. Add a more explanatory error and a test for this case. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Allow 'fill' entry to have a size of 0Simon Glass2018-09-283-1/+21
| | | | | | | | | | | | The check for this should be for None, not 0. Fix it and add a test. Signed-off-by: Simon Glass <sjg@chromium.org>
| * binman: Move 'special properties' docs to README.entriesSimon Glass2018-09-283-12/+7
| | | | | | | | | | | | | | This information should be in the entry it relates to, not in the main README. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * fdt: Add Python support for adding/removing nodesSimon Glass2018-09-281-6/+28
| | | | | | | | | | | | | | | | | | Pull this support from these upstream commits: bfbfab0 pylibfdt: Add a means to add and delete notes 9005f41 pylibfdt: Allow delprop() to return errors Signed-off-by: Simon Glass <sjg@chromium.org>
* | MAINTAINERS: Update some entries for missed boardsTom Rini2018-09-303-1/+3
| | | | | | | | Signed-off-by: Tom Rini <trini@konsulko.com>