This method is supposed to return the contents of an entry. However at present there is no check that it actually does. Also some implementations do not return 'True' to indicate success, as required. Add a check for things working as expected, and correct the implementations. This requires some additional test cases to cover things which were missed originally. Add these at the same time. Signed-off-by: Simon Glass <sjg@chromium.org>lime2-spi
parent
adc5701134
commit
736bb0aec8
@ -0,0 +1,14 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
|
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
binman { |
||||
_testing { |
||||
return-unknown-contents; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,36 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
|
||||
/dts-v1/; |
||||
|
||||
/ { |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
binman { |
||||
sort-by-pos; |
||||
end-at-4gb; |
||||
size = <0x200>; |
||||
u-boot-spl-with-ucode-ptr { |
||||
}; |
||||
|
||||
/* |
||||
* Microcode goes before the DTB which contains it, so binman |
||||
* will need to obtain the contents of the next section before |
||||
* obtaining the contents of this one. |
||||
*/ |
||||
u-boot-ucode { |
||||
}; |
||||
|
||||
u-boot-dtb-with-ucode { |
||||
}; |
||||
}; |
||||
|
||||
microcode { |
||||
update@0 { |
||||
data = <0x12345678 0x12345679>; |
||||
}; |
||||
update@1 { |
||||
data = <0xabcd0000 0x78235609>; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue