瀏覽代碼

add support for beaglebone black

Waldemar Brodkorb 9 年之前
父節點
當前提交
ce94e11605

+ 8 - 0
target/arm/kernel/beaglebone-black

@@ -0,0 +1,8 @@
+CONFIG_ARM=y
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_SOC_AM33XX=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OMAP=y
+CONFIG_SERIAL_OMAP_CONSOLE=y

+ 18 - 0
target/arm/systems/beaglebone-black

@@ -0,0 +1,18 @@
+config ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+	bool "BeagleBone Black"
+	select ADK_TARGET_LITTLE_ENDIAN
+	select ADK_CPU_CORTEX_A8
+	select ADK_TARGET_CPU_WITH_NEON
+	select ADK_TARGET_WITH_VGA
+	select ADK_TARGET_WITH_SERIAL
+	select ADK_TARGET_WITH_CPU_FREQ
+	select ADK_TARGET_WITH_USB
+	select ADK_TARGET_WITH_INPUT
+	select ADK_TARGET_WITH_SD
+	select ADK_TARGET_WITH_I2C
+	select ADK_TARGET_WITH_SPI
+	select ADK_TARGET_WITH_ROOT_RW
+	select ADK_TARGET_KERNEL_ZIMAGE
+	help
+	  BeagleBone Black
+

+ 6 - 0
target/config/Config.in.cpu

@@ -405,6 +405,12 @@ config ADK_CPU_CORTEX_A8
 	select ADK_TARGET_CPU_WITH_FPU_VFPV3
 	select ADK_TARGET_CPU_WITH_NEON
 
+config ADK_CPU_CORTEX_A8
+	bool
+	select ADK_TARGET_WITH_NPTL
+	select ADK_TARGET_WITH_MMU
+	select ADK_TARGET_CPU_WITH_FPU_VFPV3
+
 config ADK_CPU_CORTEX_A9
 	bool
 	select ADK_TARGET_WITH_NPTL

+ 1 - 0
target/config/Config.in.endian.choice

@@ -28,5 +28,6 @@ config ADK_TARGET_BIG_ENDIAN
 	depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
 	depends on !ADK_TARGET_SYSTEM_QEMU_ARM
 	depends on !ADK_TARGET_SYSTEM_QEMU_XTENSA
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	
 endchoice

+ 1 - 0
target/config/Config.in.kernel

@@ -85,3 +85,4 @@ config ADK_TARGET_KERNEL_MINICONFIG
 	default "imgtec-ci20" if ADK_TARGET_SYSTEM_IMGTEC_CI20
 	default "qemu-metag" if ADK_TARGET_SYSTEM_QEMU_METAG
 	default "qemu-or1k" if ADK_TARGET_SYSTEM_QEMU_OR1K
+	default "beaglebone-black" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK

+ 6 - 0
target/config/Config.in.kernelversion.choice

@@ -25,6 +25,7 @@ config ADK_TARGET_KERNEL_VERSION_3_18_16
 	depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_3_18
 
 config ADK_TARGET_KERNEL_VERSION_3_14_45
@@ -47,6 +48,7 @@ config ADK_TARGET_KERNEL_VERSION_3_12_44
 	depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI2
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_3_12
 
 config ADK_TARGET_KERNEL_VERSION_3_10_81
@@ -59,6 +61,7 @@ config ADK_TARGET_KERNEL_VERSION_3_10_81
 	depends on !ADK_TARGET_SYSTEM_QEMU_SPARC
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_3_10
 
 config ADK_TARGET_KERNEL_VERSION_3_4_108
@@ -71,6 +74,7 @@ config ADK_TARGET_KERNEL_VERSION_3_4_108
 	depends on !ADK_TARGET_SYSTEM_QEMU_SPARC
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_3_4
 
 config ADK_TARGET_KERNEL_VERSION_3_2_69
@@ -83,6 +87,7 @@ config ADK_TARGET_KERNEL_VERSION_3_2_69
 	depends on !ADK_TARGET_SYSTEM_QEMU_SPARC
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_3_2
 
 config ADK_TARGET_KERNEL_VERSION_2_6_32_67
@@ -95,6 +100,7 @@ config ADK_TARGET_KERNEL_VERSION_2_6_32_67
 	depends on !ADK_TARGET_SYSTEM_QEMU_SPARC
 	depends on !ADK_TARGET_ARCH_H8300
 	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	select ADK_TARGET_KERNEL_VERSION_2_6_32
 
 endchoice

+ 3 - 0
target/config/Config.in.subsystem

@@ -1,3 +1,6 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
 choice
 prompt "PCengines ALIX model"
 depends on ADK_TARGET_SYSTEM_PCENGINES_ALIX

+ 12 - 0
target/linux/config/Config.in.ethernet

@@ -29,6 +29,9 @@ config ADK_KERNEL_NET_VENDOR_REALTEK
 config ADK_KERNEL_NET_VENDOR_MARVELL
 	bool
 
+config ADK_KERNEL_NET_VENDOR_TI
+	bool
+
 config ADK_KERNEL_NET_VENDOR_VIA
 	bool
 
@@ -261,6 +264,15 @@ config ADK_KERNEL_MACB
 	help
 	  Atmel NGW100 network driver
 
+config ADK_KERNEL_TI_DAVINCI_MDIO
+	tristate "BeagleBone Back Davinci"
+	select ADK_KERNEL_NET_VENDOR_TI
+	depends on ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+	default y if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+	default n
+	help
+	  TI Davinci driver
+
 config ADK_KERNEL_SKY2
 	tristate "Marvell Yukon SKY2 driver"
 	select ADK_KERNEL_NETDEV_1000