Commit 49a6270
baremetalconfig_xlnx: fix clocks single-cell offset; optional prop first int
baremetalconfig_xlnx: fix clock cell indexing and optional CMake ints
Clocks:
- With no clock-names, use offset 0 when clocks has a single phandle cell
(avoids out-of-range access and spurious warnings on IPs like MDM).
- On out-of-range offset, return value[0]; warn only when multiple cells exist.
Fixes incorrect use of value[1] when only one cell is present.
Optional driver metadata (DRIVER_OPTPROP_*):
- Take node[prop].value[0]; if it is a string, parse the first comma-separated
token as int (e.g. "0 , 1 , 0" -> first value only).
Signed-off-by: Harish Babu Pamarthi <HarishBabu.Pamarthi@amd.com>1 parent 0f0b55b commit 49a6270
1 file changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| |||
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
251 | 252 | | |
252 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
| |||
259 | 266 | | |
260 | 267 | | |
261 | 268 | | |
262 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
263 | 272 | | |
264 | | - | |
| 273 | + | |
265 | 274 | | |
266 | 275 | | |
267 | 276 | | |
| |||
414 | 423 | | |
415 | 424 | | |
416 | 425 | | |
417 | | - | |
| 426 | + | |
418 | 427 | | |
419 | 428 | | |
420 | 429 | | |
| |||
788 | 797 | | |
789 | 798 | | |
790 | 799 | | |
791 | | - | |
792 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
793 | 803 | | |
794 | 804 | | |
795 | 805 | | |
| |||
0 commit comments