[PATCH 0/2] Refactor aarch64/raspberrypi4b BSP

Utkarsh Verma utkarsh at bitbanged.com
Mon Aug 7 05:05:51 UTC 2023


Forgot to add that these changes are there on my GitHub fork on the "
rpi4b-refactor <https://github.com/UtkarshVerma/rtems/tree/rpi4b-refactor>"
branch. Please have a look at it and let me know what could be improved.

On Mon, Aug 7, 2023 at 10:19 AM Utkarsh Verma <utkarsh at bitbanged.com> wrote:

> This patch refactors the Raspberry Pi 4B BSP with the following changes:
>
> - Build spec organization
> - IWYU(include what you use) includes
> - Self contained sources and headers
> - More specific MMU mapping
> - A basic API to allow extending this BSP to other variants of the RPi
>   family
>
> Utkarsh Verma (2):
>   bsps/aarch64/raspberrypi: Refactor code base
>   bsps/aarch64/raspberrypi: Refactor code base
>
>  .gitignore                                    |   4 +
>  bsps/aarch64/raspberrypi/console/console.c    |  41 +-
>  bsps/aarch64/raspberrypi/include/bsp.h        |  33 +-
>  .../aarch64/raspberrypi/include/bsp/bcm2711.h |  98 ++++
>  bsps/aarch64/raspberrypi/include/bsp/irq.h    |  96 ++--
>  .../raspberrypi/include/bsp/raspberrypi.h     | 471 ------------------
>  .../include/bsp/start/bspstartmmu.h           |  45 ++
>  bsps/aarch64/raspberrypi/include/tm27.h       |   5 +-
>  bsps/aarch64/raspberrypi/start/bspstart.c     |  18 +-
>  .../aarch64/raspberrypi/start/bspstarthooks.c |  28 +-
>  bsps/aarch64/raspberrypi/start/bspstartmmu.c  |  66 +--
>  spec/build/bsps/aarch64/raspberrypi/abi.yml   |  37 +-
>  spec/build/bsps/aarch64/raspberrypi/bsp4b.yml |  23 +
>  .../aarch64/raspberrypi/bspraspberrypi4.yml   |  72 ---
>  spec/build/bsps/aarch64/raspberrypi/grp.yml   |  49 ++
>  spec/build/bsps/aarch64/raspberrypi/grp4b.yml |  26 +
>  .../{linkercmds.yml => linkcmds.yml}          |  25 +-
>  spec/build/bsps/aarch64/raspberrypi/obj.yml   |  50 ++
>  .../aarch64/raspberrypi/objconsolepl011.yml   |  24 +
>  .../aarch64/raspberrypi/optclockpl011freq.yml |  23 +
>  .../aarch64/raspberrypi/optconsolebaud.yml    |  23 +
>  21 files changed, 528 insertions(+), 729 deletions(-)
>  create mode 100644 bsps/aarch64/raspberrypi/include/bsp/bcm2711.h
>  delete mode 100644 bsps/aarch64/raspberrypi/include/bsp/raspberrypi.h
>  create mode 100644
> bsps/aarch64/raspberrypi/include/bsp/start/bspstartmmu.h
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/bsp4b.yml
>  delete mode 100644 spec/build/bsps/aarch64/raspberrypi/bspraspberrypi4.yml
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/grp.yml
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/grp4b.yml
>  rename spec/build/bsps/aarch64/raspberrypi/{linkercmds.yml =>
> linkcmds.yml} (90%)
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/obj.yml
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/objconsolepl011.yml
>  create mode 100644
> spec/build/bsps/aarch64/raspberrypi/optclockpl011freq.yml
>  create mode 100644 spec/build/bsps/aarch64/raspberrypi/optconsolebaud.yml
>
> --
> 2.41.0
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230807/0ac76a13/attachment-0001.htm>


More information about the devel mailing list