summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-06-29 22:02:10 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-06-29 22:06:37 +0200
commit249e2357822d5375176baa5ac81d5c304da4b871 (patch)
tree7c6df2c5fe1fe4153f5e9c835f191004e64dbe57
parent3387bb022f8e7a1220382526404e1f14845a86cc (diff)
add som-c675 sample
-rw-r--r--target/c6x/Makefile2
-rw-r--r--target/c6x/kernel/som-c67457
-rw-r--r--target/c6x/systems/som-c674510
-rw-r--r--target/config/Config.in.cpu1
-rw-r--r--target/config/Config.in.kernelfmt4
-rw-r--r--target/config/Config.in.libc1
-rw-r--r--target/config/Config.in.runtime1
-rw-r--r--target/linux/config/Config.in.serial7
8 files changed, 31 insertions, 2 deletions
diff --git a/target/c6x/Makefile b/target/c6x/Makefile
index 3d8f8d42b..1f550723f 100644
--- a/target/c6x/Makefile
+++ b/target/c6x/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
-KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL)
+KERNEL:=$(LINUX_DIR)/arch/c6x/boot/$(ADK_TARGET_KERNEL)
# target helper text
ifeq ($(ADK_TARGET_FS),archive)
diff --git a/target/c6x/kernel/som-c6745 b/target/c6x/kernel/som-c6745
new file mode 100644
index 000000000..05c2f984c
--- /dev/null
+++ b/target/c6x/kernel/som-c6745
@@ -0,0 +1,7 @@
+CONFIG_C6X=y
+CONFIG_TMS320C66X=y
+CONFIG_ARCH_BOARD_EVM6670=y
+CONFIG_CMDLINE_BOOL=y
+CONFIG_BUG=y
+CONFIG_BINFMT_ELF_DSBT=y
+CONFIG_MTD=y
diff --git a/target/c6x/systems/som-c6745 b/target/c6x/systems/som-c6745
new file mode 100644
index 000000000..b39035a0e
--- /dev/null
+++ b/target/c6x/systems/som-c6745
@@ -0,0 +1,10 @@
+config ADK_TARGET_SYSTEM_SOM_C6745
+ bool "SOM-C6745"
+ select ADK_TARGET_CPU_C6X
+ select ADK_TARGET_PACKAGE_TXZ
+ select ADK_HOST_BUILD_U_BOOT_C6X
+ select ADK_TARGET_WITH_SERIAL
+ select ADK_TARGET_WITH_NAND
+ help
+ SOM-C6745 development board.
+
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu
index 7bfc528e0..86e77b6dc 100644
--- a/target/config/Config.in.cpu
+++ b/target/config/Config.in.cpu
@@ -1896,6 +1896,7 @@ config ADK_TARGET_GCC_ARCH
default "westmere" if ADK_TARGET_CPU_X86_64_WESTMERE
default "x86-64" if ADK_TARGET_CPU_X86_64
default "z900" if ADK_TARGET_CPU_S390_Z900
+ default "c674x" if ADK_TARGET_CPU_C6X
# for CFLAGS/CXXFLAGS if gcc does not support --with-cpu
config ADK_TARGET_CPU_FLAGS
diff --git a/target/config/Config.in.kernelfmt b/target/config/Config.in.kernelfmt
index 2a2ef5931..26c248d67 100644
--- a/target/config/Config.in.kernelfmt
+++ b/target/config/Config.in.kernelfmt
@@ -25,6 +25,9 @@ config ADK_TARGET_KERNEL_BZIMAGE
config ADK_TARGET_KERNEL_VMLINUX_AOUT
bool
+config ADK_TARGET_KERNEL_VMLINUX_BIN
+ bool
+
config ADK_TARGET_KERNEL_VMLINUX_SREC
bool
@@ -41,6 +44,7 @@ config ADK_TARGET_KERNEL
default "vmlinuz" if ADK_TARGET_KERNEL_VMLINUZ
default "vmlinux.aout" if ADK_TARGET_KERNEL_VMLINUX_AOUT
default "vmlinux.srec" if ADK_TARGET_KERNEL_VMLINUX_SREC
+ default "vmlinux.bin" if ADK_TARGET_KERNEL_VMLINUX_BIN
default "xipImage" if ADK_TARGET_KERNEL_XIPIMAGE
default "bzImage" if ADK_TARGET_KERNEL_BZIMAGE
default "bzImage" if ADK_TARGET_SYSTEM_GENERIC_X86_64 || ADK_TARGET_SYSTEM_GENERIC_X86
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc
index 219ccdcd2..f1966727c 100644
--- a/target/config/Config.in.libc
+++ b/target/config/Config.in.libc
@@ -202,6 +202,7 @@ config ADK_TARGET_SUPPORTS_LT
config ADK_TARGET_LIBC_UTILS
bool
+ default n if ADK_TARGET_ARCH_C6X
default n if ADK_TARGET_ARCH_LM32
default n if ADK_TARGET_ARCH_H8300
default y
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 87f3febbd..b2a462e0a 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -356,6 +356,7 @@ config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
default "ttyDA1" if ADK_TARGET_SYSTEM_QEMU_METAG
default "ttyS2" if ADK_TARGET_SYSTEM_KINETIS_K70
+ default "ttyS2" if ADK_TARGET_SYSTEM_SOM_C6745
default "ttyPS0" if ADK_TARGET_SYSTEM_QEMU_ARM_XILINX_ZYNQ
default "ttysclp0" if ADK_TARGET_SYSTEM_QEMU_S390
default "ttyO2" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
diff --git a/target/linux/config/Config.in.serial b/target/linux/config/Config.in.serial
index 408b17d9b..6cee8b08a 100644
--- a/target/linux/config/Config.in.serial
+++ b/target/linux/config/Config.in.serial
@@ -89,6 +89,9 @@ config ADK_KERNEL_SERIAL_8250
|| ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \
|| ADK_TARGET_SYSTEM_QEMU_NIOS2 \
|| ADK_TARGET_SYSTEM_QEMU_OR1K
+ || ADK_TARGET_SYSTEM_QEMU_OR1K \
+ || ADK_TARGET_SYSTEM_SIM_OR1K \
+ || ADK_TARGET_SYSTEM_SOM_C6745
select ADK_KERNEL_SERIAL_8250_PNP if ADK_TARGET_SYSTEM_PCENGINES_APU
select ADK_KERNEL_SERIAL_8250_DW if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG
select ADK_KERNEL_SERIAL_8250_CONSOLE
@@ -116,7 +119,8 @@ config ADK_KERNEL_SERIAL_8250
|| ADK_TARGET_SYSTEM_GENERIC_X86_64 \
|| ADK_TARGET_SYSTEM_MIKROTIK_RB532 \
|| ADK_TARGET_SYSTEM_MIKROTIK_RB4XX \
- || ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG
+ || ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG \
+ || ADK_TARGET_SYSTEM_SOM_C6745
default y if ADK_TARGET_SYSTEM_XILINX_KINTEX7
default y if ADK_TARGET_SYSTEM_IMGTEC_CI20
default y if ADK_TARGET_SYSTEM_LINKSYS_NSLU2
@@ -141,6 +145,7 @@ config ADK_KERNEL_SERIAL_8250
default y if ADK_TARGET_SYSTEM_MIKROTIK_RB532
default y if ADK_TARGET_SYSTEM_MIKROTIK_RB4XX
default y if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG
+ default y if ADK_TARGET_SYSTEM_SOM_C6745
default n
help
Serial driver for 8250 UART chip.