-
Notifications
You must be signed in to change notification settings - Fork 99
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6d2e72a
libplatsupport: fix FDT macros for expressions
Ivan-Velickovic b7f5e61
libplatsupport: fix FDT translation of 'reg'
Ivan-Velickovic 4185108
trivial: fix libplatsupport CMake style
midnightveil 5fd42d3
Add support for BCM2712/Raspberry Pi 5B
Ivan-Velickovic 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 | ||
| }; |
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.