Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards: cleanup and update the default config of arc boards #9604

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion arch/arc/defconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CONFIG_ARC=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
18 changes: 9 additions & 9 deletions boards/arc/em_starterkit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if BOARD_EM_STARTERKIT
config BOARD
default "em_starterkit"

config CPU_ARCEM4
def_bool y

if GPIO

config GPIO_DW
Expand Down Expand Up @@ -47,22 +50,19 @@ endif # I2C_DW

endif # I2C

if UART_NS16550

config UART_NS16550_PORT_0
def_bool n
if SERIAL

config UART_NS16550_PORT_1
config UART_NS16550
def_bool y

endif # UART_NS16550
endif # SERIAL

if UART_CONSOLE

config UART_CONSOLE_ON_DEV_NAME
default "UART_1"
config UART_NS16550_PORT_1
def_bool y

endif
endif # UART_CONSOLE

if SPI

Expand Down
6 changes: 0 additions & 6 deletions boards/arc/em_starterkit/em_starterkit_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NS16550=y
CONFIG_UART_NS16550_PORT_1=y
CONFIG_UART_NS16550_PORT_0=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
6 changes: 0 additions & 6 deletions boards/arc/em_starterkit/em_starterkit_em11d_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NS16550=y
CONFIG_UART_NS16550_PORT_1=y
CONFIG_UART_NS16550_PORT_0=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
6 changes: 0 additions & 6 deletions boards/arc/em_starterkit/em_starterkit_em7d_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NS16550=y
CONFIG_UART_NS16550_PORT_1=y
CONFIG_UART_NS16550_PORT_0=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
CONFIG_ARC_MPU_ENABLE=y
6 changes: 0 additions & 6 deletions boards/arc/em_starterkit/em_starterkit_em7d_v22_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NS16550=y
CONFIG_UART_NS16550_PORT_1=y
CONFIG_UART_NS16550_PORT_0=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
CONFIG_ARC_MPU_ENABLE=y
14 changes: 14 additions & 0 deletions boards/arc/nsim_em/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,18 @@ if BOARD_NSIM_EM
config BOARD
default "nsim_em"

config CPU_ARCEM4
def_bool y

if SERIAL

config UART_NSIM
def_bool y

config UART_NSIM_PORT_0_BASE_ADDR
default 0xf0000000

endif # SERIAL


endif # BOARD_NSIM_EM
5 changes: 0 additions & 5 deletions boards/arc/nsim_em/nsim_em_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NSIM=y
CONFIG_UART_NSIM_PORT_0_BASE_ADDR=0xf0000000
5 changes: 0 additions & 5 deletions boards/arc/nsim_em/nsim_sem_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_CPU_ARCEM4=y
CONFIG_CPU_ARCV2=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_NSIM=y
CONFIG_UART_NSIM_PORT_0_BASE_ADDR=0xf0000000