Commit 3fb70c67 authored by Joseph Liu's avatar Joseph Liu Committed by Henrik Brix Andersen
Browse files

soc: arm: add nuvoton npcm400 support



Add initial support for nuvoton npcm400, which is a chip
family of Satellite Management Controller(SMC).

Add ecst python scripts to append the header used by ROM Code

Signed-off-by: default avatarTyrone Ting <kfting@nuvoton.com>
Signed-off-by: default avatarJames Chiang <cpchiang1@nuvoton.com>
Signed-off-by: default avatarJoseph Liu <kwliu@nuvoton.com>
parent 3d384f5d
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Nuvoton Technology Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <arm/armv7-m.dtsi>

/ {
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu0: cpu@0 {
			device_type = "cpu";
			compatible = "arm,cortex-m4";
			reg = <0>;
		};
	};
};

&nvic {
	arm,num-irq-priority-bits = <3>;
};
+28 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Nuvoton Technology Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/* Device tree declarations of npcm soc family */
#include "npcm.dtsi"

/ {
	soc {

		mdc: mdc@4000c000 {
			compatible = "syscon";
			reg = <0x4000c000 0xa>;
			reg-io-width = <1>;
		};

		mdc_header: mdc@4000c00a {
			compatible = "syscon";
			reg = <0x4000c00a 0x4>;
			reg-io-width = <2>;
		};
	};

	soc-if {
	};
};
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Nuvoton Technology Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/* Device tree declarations of npcm soc family */
#include <mem.h>
#include "npcm/npcm4.dtsi"

/ {
	flash0: flash@80000 {
		reg = <0x00080000 DT_SIZE_M(1)>;
	};

	sram0: memory@10008000 {
		compatible = "mmio-sram";
		reg = <0x10008000 DT_SIZE_K(764)>;
	};

	soc {
	};
};
+4 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(common)
add_subdirectory(${SOC_SERIES})
+9 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 Nuvoton Technology Corporation.
#
# SPDX-License-Identifier: Apache-2.0

if SOC_FAMILY_NPCM

rsource "*/Kconfig"

endif # SOC_FAMILY_NPCM
Loading