mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-24 23:53:04 +00:00
Create new fdt boardsetup command, fix bug parsing [] form of set values.
Previously ft_board_setup() was called by fdt_chosen() which was not really correctly structured. This splits ft_board_setup() out by creating a new fdt boardsetup command. Fix a bug when parsing fdt set command values which have the square bracket form [00 11 22 33] - the length was updated incorrectly in when parsing that form. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
This commit is contained in:
parent
6f35ded9e8
commit
fd61e55dd8
2 changed files with 21 additions and 25 deletions
|
@ -32,10 +32,6 @@
|
|||
#include <libfdt.h>
|
||||
#include <fdt_support.h>
|
||||
|
||||
#ifdef CONFIG_OF_BOARD_SETUP
|
||||
void ft_board_setup(void *blob, bd_t *bd);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Global data (for the gd->bd)
|
||||
*/
|
||||
|
@ -62,17 +58,6 @@ int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force)
|
|||
return err;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF_BOARD_SETUP
|
||||
/*
|
||||
* ft_board_setup() sets various board-specific properties to
|
||||
* the proper values.
|
||||
*
|
||||
* STRICTLY SPEAKING, this is out of place, but it isn't clear
|
||||
* where a better place would be.
|
||||
*/
|
||||
ft_board_setup(fdt, bd);
|
||||
#endif
|
||||
|
||||
if (initrd_start && initrd_end) {
|
||||
struct fdt_reserve_entry re;
|
||||
int used;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue