1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-08 10:19:17 +01:00
Files
u-boot-megous/cmd
Hannes Schmelzer 9620d87259 cmd/fdt: support single value replacement within an array
With this commit we can modify single values within an array of a dts
property.

This is useful if we have for example a pwm-backlight where we want to
modifiy the pwm frequency per u-boot script.

The pwm is described in dts like this:

backlight {
	pwms = <0x0000002b 0x00000000 0x004c4b40>;
};

For changing the frequency, here the 3rd parameter, we simply type:

fdt set /backlight pwms <? ? 0x1E8480>;

For doing all this we:
- backup the property content into our 'SCRATCHPAD'
- only modify the array-cell if the new content doesn't start with '?'

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-06-09 13:45:34 -06:00
..
2017-02-08 15:56:28 -05:00
2017-04-12 13:28:27 -04:00
2016-03-22 12:16:08 -04:00
2016-09-09 15:53:14 -04:00
2016-05-02 18:37:09 -04:00
2016-04-18 17:11:36 -04:00
2017-03-17 14:15:10 -04:00
2017-01-20 09:15:24 -05:00
2017-03-28 06:27:54 +02:00
2017-01-21 15:12:33 -05:00
2017-02-08 15:56:28 -05:00
2016-01-25 10:39:43 -05:00
2016-09-01 20:08:48 -05:00
2016-12-27 11:24:18 -05:00
2016-10-06 20:57:42 -04:00
2017-06-02 10:16:46 -06:00
2017-05-22 12:45:27 -04:00
2016-09-07 08:49:02 -04:00
2017-04-05 13:52:01 -04:00
2016-03-27 09:12:55 -04:00
2017-03-26 13:22:58 -06:00
2016-02-26 08:53:10 -07:00