-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platforms/imx8mp-verdin): add platform
Signed-off-by: David Cerdeira <[email protected]>
- Loading branch information
1 parent
e1e8d00
commit 654bc44
Showing
5 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,38 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) Bao Project and Contributors. All rights reserved. | ||
*/ | ||
|
||
#include <platform.h> | ||
|
||
struct platform platform = { | ||
.cpu_num = 4, | ||
.region_num = 1, | ||
.regions = (struct mem_region[]) { | ||
{ | ||
.base = 0x40000000, | ||
.size = 0x80000000, // 2 GiB | ||
}, | ||
}, | ||
|
||
.console = { | ||
.base = 0x30880000, | ||
}, | ||
|
||
.arch = { | ||
|
||
.clusters = { | ||
.num = 1, | ||
.core_num = (size_t[]) {4} | ||
}, | ||
|
||
.gic = { | ||
.gicd_addr = 0x38800000, | ||
.gicr_addr = 0x38880000, | ||
.gicc_addr = 0x31000000, | ||
.gicv_addr = 0x31010000, | ||
.gich_addr = 0x31020000, | ||
.maintenance_id = 25 | ||
}, | ||
} | ||
}; |
This file contains 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 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) Bao Project and Contributors. All rights reserved. | ||
*/ | ||
|
||
#ifndef __PLAT_PLATFORM_H__ | ||
#define __PLAT_PLATFORM_H__ | ||
|
||
#include <drivers/imx_uart.h> | ||
|
||
#endif |
This file contains 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,18 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) Bao Project and Contributors. All rights reserved. | ||
*/ | ||
|
||
#ifndef __PLAT_PSCI_H__ | ||
#define __PLAT_PSCI_H__ | ||
|
||
#define PSCI_POWER_STATE_LVL_0 0x0000000 | ||
#define PSCI_POWER_STATE_LVL_1 0x1000000 | ||
#define PSCI_POWER_STATE_LVL_2 0x2000000 | ||
#define PSCI_STATE_TYPE_STANDBY 0x00000 | ||
#define PSCI_STATE_TYPE_BIT (1UL << 16) | ||
#define PSCI_STATE_TYPE_POWERDOWN PSCI_STATE_TYPE_BIT | ||
|
||
#define PLAT_PSCI_POWERDOWN_NOT_SUPPORTED | ||
|
||
#endif // __PLAT_PSCI_H__ |
This file contains 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,4 @@ | ||
## SPDX-License-Identifier: Apache-2.0 | ||
## Copyright (c) Bao Project and Contributors. All rights reserved. | ||
|
||
boards-objs-y+=desc.o |
This file contains 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,18 @@ | ||
## SPDX-License-Identifier: Apache-2.0 | ||
## Copyright (c) Bao Project and Contributors. All rights reserved. | ||
|
||
# Architecture definition | ||
ARCH:=armv8 | ||
# CPU definition | ||
CPU:=cortex-a53 | ||
|
||
GIC_VERSION:=GICV3 | ||
|
||
drivers = imx_uart | ||
|
||
platform_description:=desc.c | ||
|
||
platform-cppflags = | ||
platform-cflags = -mcpu=$(CPU) | ||
platform-asflags = | ||
platform-ldflags = |