RTEMS | aarch64/raspberrypi: Add FDT support (!243)
Ning Yang (@yangn0)
gitlab at rtems.org
Fri Sep 27 05:49:54 UTC 2024
Ning Yang commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/243#note_112625
My test app is as follows, it works fine.
```c
rtems_task Init(
rtems_task_argument ignored)
{
puts("hello");
const void *fdt;
int node;
int len;
const uint32_t *val;
fdt = bsp_fdt_get();
node = fdt_node_offset_by_compatible(fdt, -1, "brcm,bcm2835-sdhci");
printf("%d\n", node);
val = fdt_getprop(fdt, node, "reg", &len);
printf("%lX %lX\n", fdt32_to_cpu(val[0]), len);
puts("end");
rtems_shutdown_executive(0);
}
```
output:
```
hello
20748
7E300000 8
end
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/243#note_112625
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240927/38bbb229/attachment.htm>
More information about the bugs
mailing list