Skip to content

Commit a4cc1f0

Browse files
Wayne Rennashif
authored andcommitted
boards: iotdk: add mpu and fpu configuration
* iotdk supports fpu and mpu * iotdk supports fast irq * a fix in device tree Signed-off-by: Wayne Ren <[email protected]>
1 parent 85348ad commit a4cc1f0

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

boards/arc/iotdk/iotdk_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ CONFIG_ARCV2_TIMER=y
1212
CONFIG_CONSOLE=y
1313
CONFIG_UART_CONSOLE=y
1414
CONFIG_SERIAL=y
15-
CONFIG_UART_INTERRUPT_DRIVEN=y
15+
CONFIG_UART_INTERRUPT_DRIVEN=y
16+
CONFIG_ARC_MPU_ENABLE=y

dts/arc/arc_iot.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
compatible = "snps,designware-spi";
246246
#address-cells = <1>;
247247
#size-cells = <0>;
248-
reg = <0x80010100 0x100>;
248+
reg = <0x80010200 0x100>;
249249
interrupts = <78 2>, <79 2>, <80 2>;
250250
interrupt-names = "err-int", "rx-avail", "tx-req";
251251
interrupt-parent = <&intc>;

soc/arc/snps_arc_iot/Kconfig.defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ config NUM_IRQ_PRIO_LEVELS
1919
# 0 for Fast Interrupts (FIRQs) and 1-3 for Regular Interrupts (IRQs).
2020
default 4
2121

22+
config ARC_MPU_VER
23+
default 2
24+
2225
config NUM_IRQS
2326
# must be > the highest interrupt number used
2427
default 95
@@ -32,6 +35,9 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
3235
config HARVARD
3336
def_bool y
3437

38+
config ARC_FIRQ
39+
default y
40+
3541
if SERIAL
3642

3743
config UART_NS16550

soc/arc/snps_arc_iot/Kconfig.soc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77

88
config SOC_ARC_IOT
99
bool "Synopsys ARC IoT SoC"
10+
select CPU_HAS_MPU
11+
select CPU_HAS_FPU

0 commit comments

Comments
 (0)