-
Notifications
You must be signed in to change notification settings - Fork 95
Add support for BCM2712/Raspberry Pi 5B #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Ivan-Velickovic
wants to merge
3
commits into
seL4:master
Choose a base branch
from
Ivan-Velickovic:bcm2712
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
libplatsupport/plat_include/bcm2712/platsupport/plat/clock.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /* | ||
| * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230) | ||
| * Copyright (C) 2021, Hensoldt Cyber GmbH | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
| #pragma once | ||
|
|
||
| enum clk_id { | ||
| CLK_MASTER, | ||
| /* ----- */ | ||
| NCLOCKS, | ||
| }; | ||
|
|
||
| enum clock_gate { | ||
| NCLKGATES | ||
| }; |
10 changes: 10 additions & 0 deletions
10
libplatsupport/plat_include/bcm2712/platsupport/plat/gpio.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /* | ||
| * Copyright (C) 2021, HENSOLDT Cyber GmbH | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <utils/util.h> | ||
| #include <platsupport/gpio.h> |
11 changes: 11 additions & 0 deletions
11
libplatsupport/plat_include/bcm2712/platsupport/plat/i2c.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* | ||
| * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230) | ||
| * Copyright (C) 2021, Hensoldt Cyber GmbH | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
| #pragma once | ||
|
|
||
| enum i2c_id { | ||
| NI2C | ||
| }; |
12 changes: 12 additions & 0 deletions
12
libplatsupport/plat_include/bcm2712/platsupport/plat/mailbox.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /* | ||
| * Copyright (C) 2021, HENSOLDT Cyber GmbH | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <platsupport/mach/mailbox.h> | ||
|
|
||
| #define MAILBOX_PADDR 0x107c013880 | ||
| #define MAILBOX_SIZE 0x1000 |
34 changes: 34 additions & 0 deletions
34
libplatsupport/plat_include/bcm2712/platsupport/plat/serial.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| /* | ||
| * Copyright 2025, UNSW | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <autoconf.h> | ||
| #include <platsupport/gen_config.h> | ||
|
|
||
| /* Corresponds to the Device Tree node '/soc@107c000000/serial@7d001000' */ | ||
| #define PL011_UART_BASE 0x107d001000 | ||
|
|
||
| #define UART0_OFFSET 0x0 // UART0: PL011 | ||
|
|
||
| #define UART0_PADDR (PL011_UART_BASE) | ||
|
|
||
| #define UART0_IRQ 153 | ||
|
|
||
| #define DEFAULT_SERIAL_PADDR UART0_PADDR | ||
| #define DEFAULT_SERIAL_INTERRUPT UART0_IRQ | ||
|
|
||
| enum chardev_id { | ||
| BCM2xxx_UART0, | ||
|
|
||
| NUM_CHARDEV, | ||
|
|
||
| /* Aliases */ | ||
| PS_SERIAL0 = BCM2xxx_UART0, | ||
|
|
||
| /* Defaults */ | ||
| PS_SERIAL_DEFAULT = BCM2xxx_UART0 | ||
| }; |
19 changes: 19 additions & 0 deletions
19
libplatsupport/plat_include/bcm2712/platsupport/plat/system_timer.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /* | ||
| * Copyright 2025, UNSW | ||
| * | ||
| * SPDX-License-Identifier: BSD-2-Clause | ||
| */ | ||
| #pragma once | ||
|
|
||
| #include <utils/util.h> | ||
|
|
||
| /* | ||
| * The Device Tree by default for BCM2712 will contain the timer IRQs | ||
| * for each channel. Channels 0 and 2 are used by the VideoCore, so | ||
| * we use 1 instead. | ||
| */ | ||
| #define BCM_SYSTEM_TIMER_CHANNEL (1) | ||
| #define BCM_SYSTEM_TIMER_FREQ (MHZ) | ||
| #define BCM_SYSTEM_TIMER_FDT_PATH "/soc@107c000000/timer@7c003000" | ||
| #define BCM_SYSTEM_TIMER_REG_CHOICE (0) | ||
| #define BCM_SYSTEM_TIMER_IRQ_CHOICE (1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.