Browse Source

add som-c675 sample

Waldemar Brodkorb 7 years ago
parent
commit
249e235782

+ 1 - 1
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)

+ 7 - 0
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

+ 10 - 0
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.
+

+ 1 - 0
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

+ 4 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 6 - 1
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.