Skip to content
Permalink
Browse files

board: emsdp: doc update and bug fixes

- update doc for different core configuration.

- fix some bugs in dts related files.

- add dts config and defconfig for different core configuration.

- end files with a newline in boards/arc/emsdp/board.dtsi

- remove unused head in boards/arc/emsdp/doc/index.rst

- ARC_MPU_VER in different core is fixed. so remove some useless code
  for ARC_MPU_VER judgements in Kconfig.defconfig.* files for emsdp

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
  • Loading branch information...
IRISZZW authored and carlescufi committed Aug 5, 2019
1 parent bcba284 commit 80ca3e064e21a7d29967c5987157d52c229aaa72
Showing with 520 additions and 88 deletions.
  1. +0 −2 boards/arc/emsdp/Kconfig.defconfig
  2. +4 −10 boards/arc/emsdp/board.dtsi
  3. +27 −5 boards/arc/emsdp/doc/index.rst
  4. +15 −1 boards/arc/emsdp/emsdp.dts
  5. +1 −0 boards/arc/emsdp/emsdp_defconfig
  6. +44 −0 boards/arc/emsdp/emsdp_em4.dts
  7. +12 −0 boards/arc/emsdp/emsdp_em4.yaml
  8. +19 −0 boards/arc/emsdp/emsdp_em4_defconfig
  9. +44 −0 boards/arc/emsdp/emsdp_em5d.dts
  10. +12 −0 boards/arc/emsdp/emsdp_em5d.yaml
  11. +19 −0 boards/arc/emsdp/emsdp_em5d_defconfig
  12. +44 −0 boards/arc/emsdp/emsdp_em6.dts
  13. +12 −0 boards/arc/emsdp/emsdp_em6.yaml
  14. +19 −0 boards/arc/emsdp/emsdp_em6_defconfig
  15. +44 −0 boards/arc/emsdp/emsdp_em7d.dts
  16. +12 −0 boards/arc/emsdp/emsdp_em7d.yaml
  17. +19 −0 boards/arc/emsdp/emsdp_em7d_defconfig
  18. +44 −0 boards/arc/emsdp/emsdp_em7d_esp.dts
  19. +12 −0 boards/arc/emsdp/emsdp_em7d_esp.yaml
  20. +19 −0 boards/arc/emsdp/emsdp_em7d_esp_defconfig
  21. +44 −0 boards/arc/emsdp/emsdp_em9d.dts
  22. +12 −0 boards/arc/emsdp/emsdp_em9d.yaml
  23. +19 −0 boards/arc/emsdp/emsdp_em9d_defconfig
  24. +1 −3 dts/arc/emsdp.dtsi
  25. +0 −3 soc/arc/snps_emsdp/CMakeLists.txt
  26. +0 −3 soc/arc/snps_emsdp/Kconfig.defconfig
  27. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em11d
  28. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em4
  29. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em5d
  30. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em6
  31. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em7d
  32. +3 −17 soc/arc/snps_emsdp/Kconfig.defconfig.em7d_esp
  33. +3 −4 soc/arc/snps_emsdp/Kconfig.defconfig.em9d
  34. +0 −12 soc/arc/snps_emsdp/soc.c
  35. +1 −8 soc/arc/snps_emsdp/soc.h
@@ -10,8 +10,6 @@ if BOARD_EMSDP
config BOARD
default "emsdp"

config CPU_ARCEM
default y

if GPIO

@@ -10,7 +10,6 @@
led5 = &led5;
led6 = &led6;
led7 = &led7;
led8 = &led8;
sw0 = &switch0;
sw1 = &switch1;
sw2 = &switch2;
@@ -41,21 +40,16 @@
};
led5: led_5 {
gpios = <&gpio1 5 0>;
label = "LED 1";
label = "LED 5";
};
led6: led_6 {
gpios = <&gpio1 6 0>;
label = "LED 2";
label = "LED 6";
};
led7: led_7 {
gpios = <&gpio1 7 0>;
label = "LED 3";
label = "LED 7";
};
led8: led_8 {
gpios = <&gpio1 8 0>;
label = "LED 4";
};

};

buttons {
@@ -82,4 +76,4 @@
};
};

};
};
@@ -24,6 +24,27 @@ For details about the board, see: `DesignWare ARC EM Software Development Platfo
Hardware
********

The EM Software Development Platform supports different core configurations, such as EM4,
EM5D, EM6, EM7D, EM9D, EM9D+ESP, EM11D, the default core configuration is EM11D. Use
:option:`CONFIG_SOC_EMSDP_EM4`, :option:`CONFIG_SOC_EMSDP_EM5D`,
:option:`CONFIG_SOC_EMSDP_EM6`, :option:`CONFIG_SOC_EMSDP_EM7D`,
:option:`CONFIG_SOC_EMSDP_EM7D_ESP`, :option:`CONFIG_SOC_EMSDP_EM9D` or
:option:`CONFIG_SOC_EMSDP_EM11D` to select different core configuration.

The following table shows the hardware features supported for different core configuration:

+-----------+-----+-----+------+------+----------+------+-------+
| Features | EM4 | EM6 | EM5D | EM7D | EM7D_ESP | EM9D | EM11D |
+===========+=====+=====+======+======+==========+======+=======+
| Caches | N | Y | N | Y | Y | N | Y |
+-----------+-----+-----+------+------+----------+------+-------+
| DSP | N | N | Y | Y | Y | Y | Y |
+-----------+-----+-----+------+------+----------+------+-------+
| XY Memory | N | N | N | N | N | Y | Y |
+-----------+-----+-----+------+------+----------+------+-------+
| Secure | N | N | N | N | Y | N | N |
+-----------+-----+-----+------+------+----------+------+-------+

For hardware feature details, refer to : `ARC EM Software Development Platform
<https://embarc.org/embarc_osp/doc/build/html/board/emsdp.html>`__

@@ -177,12 +198,13 @@ Most of the time you will not be flashing your program but will instead debug
it using openocd and gdb. The program can be download via the USB cable into
the code and data memories.

Release Notes
*************

References
**********

.. _Digilent Pmod Modules: http://store.digilentinc.com/pmod-modules
.. target-notes::

.. _Digilent Pmod Modules:
http://store.digilentinc.com/pmod-modules

.. _Putty website: http://www.putty.org
.. _Putty website:
http://www.putty.org
@@ -25,6 +25,20 @@
};

&uart0 {
status = "ok";
status = "okay";
current-speed = <115200>;
};

/ {
soc {

uart@f0004000 {
interrupts = <107 1>;
};

gpio@f0002000 {
interrupts = <85 1>;
};

};
};
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_CPU_ARCEM=y
CONFIG_SOC_ARC_EMSDP=y
CONFIG_SOC_EMSDP_EM11D=y
CONFIG_BOARD_EMSDP=y
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2019, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <emsdp.dtsi>
#include "board.dtsi"

/ {
model = "emsdp";
compatible = "snps,emsdp", "snps,emsdp";

aliases {
uart-0 = &uart0;
};

chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
};

&uart0 {
status = "okay";
current-speed = <115200>;
};

/ {
soc {

uart@f0004000 {
interrupts = <108 1>;
};

gpio@f0002000 {
interrupts = <86 1>;
};

};
};
@@ -0,0 +1,12 @@
identifier: emsdp_em4
name: EM Software Development Platform
type: mcu
arch: arc
toolchain:
- zephyr
- xtools
ram: 128
testing:
ignore_tags:
- net
- bluetooth
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_CPU_ARCEM=y
CONFIG_SOC_ARC_EMSDP=y
CONFIG_SOC_EMSDP_EM4=y
CONFIG_BOARD_EMSDP=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_GPIO=y
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2019, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <emsdp.dtsi>
#include "board.dtsi"

/ {
model = "emsdp";
compatible = "snps,emsdp", "snps,emsdp";

aliases {
uart-0 = &uart0;
};

chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
};

&uart0 {
status = "okay";
current-speed = <115200>;
};

/ {
soc {

uart@f0004000 {
interrupts = <107 1>;
};

gpio@f0002000 {
interrupts = <85 1>;
};

};
};
@@ -0,0 +1,12 @@
identifier: emsdp_em5d
name: EM Software Development Platform
type: mcu
arch: arc
toolchain:
- zephyr
- xtools
ram: 128
testing:
ignore_tags:
- net
- bluetooth
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_CPU_ARCEM=y
CONFIG_SOC_ARC_EMSDP=y
CONFIG_SOC_EMSDP_EM5D=y
CONFIG_BOARD_EMSDP=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_GPIO=y
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2019, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <emsdp.dtsi>
#include "board.dtsi"

/ {
model = "emsdp";
compatible = "snps,emsdp", "snps,emsdp";

aliases {
uart-0 = &uart0;
};

chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
};
};

&uart0 {
status = "okay";
current-speed = <115200>;
};

/ {
soc {

uart@f0004000 {
interrupts = <108 1>;
};

gpio@f0002000 {
interrupts = <86 1>;
};

};
};
@@ -0,0 +1,12 @@
identifier: emsdp_em6
name: EM Software Development Platform
type: mcu
arch: arc
toolchain:
- zephyr
- xtools
ram: 128
testing:
ignore_tags:
- net
- bluetooth
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_CPU_ARCEM=y
CONFIG_SOC_ARC_EMSDP=y
CONFIG_SOC_EMSDP_EM6=y
CONFIG_BOARD_EMSDP=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
CONFIG_ARCV2_INTERRUPT_UNIT=y
CONFIG_ARCV2_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_ARC_MPU_ENABLE=y
CONFIG_GPIO=y

0 comments on commit 80ca3e0

Please sign in to comment.
You can’t perform that action at this time.