Commit 6a3550e1 authored by Jimmy Zheng's avatar Jimmy Zheng Committed by Carles Cufi
Browse files

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: default avatarJimmy Zheng <jimmyzhe@andestech.com>
parent 6658b9c0
Loading
Loading
Loading
Loading
+1 −0
Changes for samples/drivers/mbox/boards/adp_xc7k_ae350.conf: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_RV_BOOT_HART=0
CONFIG_MP_MAX_NUM_CPUS=1
+6 −15
Changes for samples/drivers/mbox/boards/adp_xc7k_ae350.overlay: 6 added lines, 15 removed lines.
Original line number Diff line number Diff line
/*
 * 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>;
};
+2 −0
Changes for samples/drivers/mbox/remote/boards/adp_xc7k_ae350.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
CONFIG_RV_BOOT_HART=1
CONFIG_MP_MAX_NUM_CPUS=1
+10 −3
Changes for samples/drivers/mbox/remote/boards/adp_xc7k_ae350.overlay: 10 added lines, 3 removed lines.
Original line number Diff line number Diff line
/*
 * 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>;
};