2016-10-19 05:43:40 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Wind River Systems, Inc.
|
arch: arc: refactor the soc part of em_starterkit
The original em7d, em9d and em11d are different configurations of
em_starterkit. They have the same peripherals, e.g. uart, spi, gpio
, ddr. The differences of them are in arc core configurations, interrupt
number assignment.
So em7d, em9d and em11d can be viewed in the same SoC family or SoC
series.
Referring other arch's implementation, this commit merges em7d, em9d
and em11d into the same SoC, named snps_emsk. This will eliminate
unnecessary duplication and make it easier for future maintainment.
Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
2018-04-28 10:10:15 +08:00
|
|
|
# Copyright (c) 2018 Synopsys, Inc. All rights reserved.
|
2016-10-19 05:43:40 +08:00
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-10-19 05:43:40 +08:00
|
|
|
#
|
|
|
|
|
arch: arc: refactor the soc part of em_starterkit
The original em7d, em9d and em11d are different configurations of
em_starterkit. They have the same peripherals, e.g. uart, spi, gpio
, ddr. The differences of them are in arc core configurations, interrupt
number assignment.
So em7d, em9d and em11d can be viewed in the same SoC family or SoC
series.
Referring other arch's implementation, this commit merges em7d, em9d
and em11d into the same SoC, named snps_emsk. This will eliminate
unnecessary duplication and make it easier for future maintainment.
Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
2018-04-28 10:10:15 +08:00
|
|
|
if SOC_EMSK_EM7D
|
2016-10-19 05:43:40 +08:00
|
|
|
|
arch: arc: refactor the soc part of em_starterkit
The original em7d, em9d and em11d are different configurations of
em_starterkit. They have the same peripherals, e.g. uart, spi, gpio
, ddr. The differences of them are in arc core configurations, interrupt
number assignment.
So em7d, em9d and em11d can be viewed in the same SoC family or SoC
series.
Referring other arch's implementation, this commit merges em7d, em9d
and em11d into the same SoC, named snps_emsk. This will eliminate
unnecessary duplication and make it easier for future maintainment.
Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
2018-04-28 10:10:15 +08:00
|
|
|
config CPU_EM4_DMIPS
|
|
|
|
def_bool y
|
2016-10-19 05:43:40 +08:00
|
|
|
|
|
|
|
config NUM_IRQ_PRIO_LEVELS
|
|
|
|
# This processor supports 4 priority levels:
|
|
|
|
# 0 for Fast Interrupts (FIRQs) and 1-3 for Regular Interrupts (IRQs).
|
2017-07-11 10:39:54 +08:00
|
|
|
default 4
|
2016-10-19 05:43:40 +08:00
|
|
|
|
|
|
|
config NUM_IRQS
|
|
|
|
# must be > the highest interrupt number used
|
2017-06-15 16:32:01 +08:00
|
|
|
default 38 if BOARD_EM_STARTERKIT_R23
|
|
|
|
default 36 if BOARD_EM_STARTERKIT_R22
|
2016-10-19 05:43:40 +08:00
|
|
|
|
2017-11-29 17:31:55 +08:00
|
|
|
config ARC_MPU_VER
|
|
|
|
default 3 if BOARD_EM_STARTERKIT_R23
|
|
|
|
default 2 if BOARD_EM_STARTERKIT_R22
|
|
|
|
|
2016-10-19 05:43:40 +08:00
|
|
|
config RGF_NUM_BANKS
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
2017-06-15 16:32:01 +08:00
|
|
|
default 25000000 if BOARD_EM_STARTERKIT_R23
|
|
|
|
default 30000000 if BOARD_EM_STARTERKIT_R22
|
2016-10-19 05:43:40 +08:00
|
|
|
|
|
|
|
config HARVARD
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2017-11-29 17:31:55 +08:00
|
|
|
|
|
|
|
config ARC_FIRQ
|
2018-11-14 00:15:49 +08:00
|
|
|
default n if BOARD_EM_STARTERKIT_R23
|
|
|
|
default y if BOARD_EM_STARTERKIT_R22
|
2016-10-19 05:43:40 +08:00
|
|
|
|
2016-11-05 05:48:23 +08:00
|
|
|
config CACHE_FLUSHING
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2016-11-05 05:48:23 +08:00
|
|
|
|
2018-02-01 16:36:47 +08:00
|
|
|
if (ARC_MPU_VER = 2)
|
|
|
|
|
|
|
|
config MAIN_STACK_SIZE
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
config IDLE_STACK_SIZE
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
if ZTEST
|
|
|
|
|
|
|
|
config ZTEST_STACKSIZE
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
endif # ZTEST
|
|
|
|
|
|
|
|
endif # ARC_MPU_VER
|
|
|
|
|
arch: arc: refactor the soc part of em_starterkit
The original em7d, em9d and em11d are different configurations of
em_starterkit. They have the same peripherals, e.g. uart, spi, gpio
, ddr. The differences of them are in arc core configurations, interrupt
number assignment.
So em7d, em9d and em11d can be viewed in the same SoC family or SoC
series.
Referring other arch's implementation, this commit merges em7d, em9d
and em11d into the same SoC, named snps_emsk. This will eliminate
unnecessary duplication and make it easier for future maintainment.
Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
2018-04-28 10:10:15 +08:00
|
|
|
endif #SOC_EMSK_EM7D
|