-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: mbox: fix adp_xc7k/ae350 configuration and overlay
This commit fixes the following issues for adp_xc7k/ae350 1. Incorrect copyright due to copy-paste error 2. Separate RAM region for the host and remote clusters 3. Allocate hart 0 for host and hart 1 for remote cluster 4. Use mbox channel 9, 10 for the sample, leaving channel/irq source 1 ~ 8 for ae350 8-core IPI Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
- Loading branch information
1 parent
6658b9c
commit 6a3550e
Showing
4 changed files
with
19 additions
and
18 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
CONFIG_RV_BOOT_HART=0 | ||
CONFIG_MP_MAX_NUM_CPUS=1 |
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 |
---|---|---|
@@ -1,25 +1,16 @@ | ||
/* | ||
* Copyright (c) 2019 Linaro Limited | ||
* | ||
* Copyright (c) 2022 Andes Technology Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
/* | ||
* shared memory reserved for the inter-processor communication | ||
*/ | ||
zephyr,sram = &sram; | ||
}; | ||
|
||
sram: memory@0 { | ||
compatible = "mmio-sram"; | ||
reg = <0x00000000 0x10000000 >; | ||
}; | ||
|
||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 1>, <&mbox 0>; | ||
mboxes = <&mbox 9>, <&mbox 10>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; | ||
|
||
&dram { | ||
reg = <0x00000000 0x10000000>; | ||
}; |
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,2 @@ | ||
CONFIG_RV_BOOT_HART=1 | ||
CONFIG_MP_MAX_NUM_CPUS=1 |
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 |
---|---|---|
@@ -1,13 +1,20 @@ | ||
/* | ||
* Copyright (c) 2019 Linaro Limited | ||
* | ||
* Copyright (c) 2022 Andes Technology Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 0>, <&mbox 1>; | ||
mboxes = <&mbox 10>, <&mbox 9>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; | ||
|
||
&cpu0 { | ||
status = "disabled"; | ||
}; | ||
|
||
&dram { | ||
reg = <0x10000000 0x10000000>; | ||
}; |