summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/arm')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf105
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf33
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend1
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall5
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-non_hardware.cfg30
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-preempt-rt.scc13
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-standard.scc13
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-tiny.scc9
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-config.cfg0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-features.scc0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-patches.scc0
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.cfg320
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.scc7
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-dev": }} linux-yocto-dev.bbappend25
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.10": }} linux-yocto-rt_3.10.bbappend32
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.10": }} linux-yocto-tiny_3.10.bbappend32
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.14": }} linux-yocto-tiny_3.14.bbappend32
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.10": }} linux-yocto_3.10.bbappend32
-rw-r--r--scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.14": }} linux-yocto_3.14.bbappend32
19 files changed, 721 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf
new file mode 100644
index 0000000000..44a80d226c
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/conf/machine/{{=machine}}.conf
@@ -0,0 +1,105 @@
1#@TYPE: Machine
2#@NAME: {{=machine}}
3
4#@DESCRIPTION: Machine configuration for {{=machine}} systems
5
6{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
7{{ if xserver == "y": }}
8PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
9XSERVER ?= "xserver-xorg \
10 xf86-input-evdev \
11 xf86-input-mouse \
12 xf86-video-omapfb \
13 xf86-input-keyboard"
14
15# Ship all kernel modules by default
16MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
17
18# Allow for MMC booting (required by the NAND-less Beagleboard XM)
19EXTRA_IMAGEDEPENDS += "u-boot"
20
21# Uncomment the following line to enable the hard floating point abi. Note that
22# this breaks some binary libraries and 3D (neither of which ship with
23# meta-yocto). For maximum compatibility, leave this disabled.
24#DEFAULTTUNE ?= "cortexa8hf-neon"
25{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_cortexa8" }}
26{{ input type:"choice" val:"tune_arm1136jf_s" msg:"arm1136jf-s tuning optimizations" }}
27{{ input type:"choice" val:"tune_arm920t" msg:"arm920t tuning optimizations" }}
28{{ input type:"choice" val:"tune_arm926ejs" msg:"arm926ejs tuning optimizations" }}
29{{ input type:"choice" val:"tune_arm9tdmi" msg:"arm9tdmi tuning optimizations" }}
30{{ input type:"choice" val:"tune_cortexa5" msg:"cortexa5 tuning optimizations" }}
31{{ input type:"choice" val:"tune_cortexa7" msg:"cortexa7 tuning optimizations" }}
32{{ input type:"choice" val:"tune_cortexa8" msg:"cortexa8 tuning optimizations" }}
33{{ input type:"choice" val:"tune_cortexa9" msg:"cortexa9 tuning optimizations" }}
34{{ input type:"choice" val:"tune_cortexa15" msg:"cortexa15 tuning optimizations" }}
35{{ input type:"choice" val:"tune_cortexm1" msg:"cortexm1 tuning optimizations" }}
36{{ input type:"choice" val:"tune_cortexm3" msg:"cortexm3 tuning optimizations" }}
37{{ input type:"choice" val:"tune_cortexr4" msg:"cortexr4 tuning optimizations" }}
38{{ input type:"choice" val:"tune_ep9312" msg:"ep9312 tuning optimizations" }}
39{{ input type:"choice" val:"tune_iwmmxt" msg:"iwmmxt tuning optimizations" }}
40{{ input type:"choice" val:"tune_strongarm1100" msg:"strongarm1100 tuning optimizations" }}
41{{ input type:"choice" val:"tune_xscale" msg:"xscale tuning optimizations" }}
42{{ if tunefile == "tune_arm1136jf_s": }}
43include conf/machine/include/tune-arm1136jf-s.inc
44{{ if tunefile == "tune_arm920t": }}
45include conf/machine/include/tune-arm920t.inc
46{{ if tunefile == "tune_arm926ejs": }}
47include conf/machine/include/tune-arm926ejs.inc
48{{ if tunefile == "tune_arm9tdmi": }}
49include conf/machine/include/tune-arm9tdmi.inc
50{{ if tunefile == "tune_cortexa5": }}
51include conf/machine/include/tune-cortexa5.inc
52{{ if tunefile == "tune_cortexa7": }}
53include conf/machine/include/tune-cortexa7.inc
54{{ if tunefile == "tune_cortexa8": }}
55include conf/machine/include/tune-cortexa8.inc
56{{ if tunefile == "tune_cortexa9": }}
57include conf/machine/include/tune-cortexa9.inc
58{{ if tunefile == "tune_cortexa15": }}
59include conf/machine/include/tune-cortexa15.inc
60{{ if tunefile == "tune_cortexm1": }}
61include conf/machine/include/tune-cortexm1.inc
62{{ if tunefile == "tune_cortexm3": }}
63include conf/machine/include/tune-cortexm3.inc
64{{ if tunefile == "tune_cortexr4": }}
65include conf/machine/include/tune-cortexr4.inc
66{{ if tunefile == "tune_ep9312": }}
67include conf/machine/include/tune-ep9312.inc
68{{ if tunefile == "tune_iwmmxt": }}
69include conf/machine/include/tune-iwmmxt.inc
70{{ if tunefile == "tune_strongarm1100": }}
71include conf/machine/include/tune-strongarm1100.inc
72{{ if tunefile == "tune_xscale": }}
73include conf/machine/include/tune-xscale.inc
74
75IMAGE_FSTYPES += "tar.bz2 jffs2"
76EXTRA_IMAGECMD_jffs2 = "-lnp "
77
78# 2.6.37 and later kernels use OMAP_SERIAL, ttyO2
79# earlier kernels use ttyS2
80SERIAL_CONSOLE = "115200 ttyO2"
81
82{{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }}
83{{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }}
84{{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }}
85PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
86
87{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }}
88{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }}
89{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }}
90PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
91PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
92
93KERNEL_IMAGETYPE = "zImage"
94KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/omap3-beagle.dts ${S}/arch/arm/boot/dts/omap3-beagle-xm.dts"
95
96SPL_BINARY = "MLO"
97UBOOT_SUFFIX = "img"
98{{ input type:"edit" name:"uboot_machine" prio:"40" msg:"Please specify a value for UBOOT_MACHINE:" default:"omap3_beagle_config" }}
99UBOOT_MACHINE = "{{=uboot_machine}}"
100{{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x80008000" }}
101UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}"
102{{ input type:"edit" name:"uboot_loadaddress" prio:"40" msg:"Please specify a value for UBOOT_LOADADDRESS:" default:"0x80008000" }}
103UBOOT_LOADADDRESS = "{{=uboot_loadaddress}}"
104
105MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf
new file mode 100644
index 0000000000..264f3c91ad
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/xserver-xf86-config/{{=machine}}/{{ if xserver == "y": }} xorg.conf
@@ -0,0 +1,33 @@
1Section "Module"
2 Load "extmod"
3 Load "dbe"
4 Load "glx"
5 Load "freetype"
6 Load "type1"
7 Load "record"
8 Load "dri"
9EndSection
10
11Section "Monitor"
12 Identifier "Builtin Default Monitor"
13EndSection
14
15Section "Device"
16 Identifier "Builtin Default fbdev Device 0"
17 Driver "omapfb"
18EndSection
19
20Section "Screen"
21 Identifier "Builtin Default fbdev Screen 0"
22 Device "Builtin Default fbdev Device 0"
23 Monitor "Builtin Default Monitor"
24EndSection
25
26Section "ServerLayout"
27 Identifier "Builtin Default Layout"
28 Screen "Builtin Default fbdev Screen 0"
29EndSection
30
31Section "ServerFlags"
32 Option "DontZap" "0"
33EndSection
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000000..72d991c7e5
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-graphics/xorg-xserver/{{ if xserver == "y": }} xserver-xf86-config_0.1.bbappend
@@ -0,0 +1 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall
new file mode 100644
index 0000000000..a04e6c7852
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/kernel-list.noinstall
@@ -0,0 +1,5 @@
1{{ if kernel_choice != "custom": }}
2{{ input type:"boolean" name:"use_default_kernel" prio:"10" msg:"Would you like to use the default (3.14) kernel? (y/n)" default:"y"}}
3
4{{ if kernel_choice != "custom" and use_default_kernel == "n": }}
5{{ input type:"choicelist" name:"kernel_choice" gen:"bsp.kernel.kernels" prio:"10" msg:"Please choose the kernel to use in this BSP:" default:"linux-yocto_3.14"}}
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-non_hardware.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-non_hardware.cfg
new file mode 100644
index 0000000000..361343bb58
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-non_hardware.cfg
@@ -0,0 +1,30 @@
1#
2# Miscellaneous filesystems
3#
4CONFIG_NFS_DEF_FILE_IO_SIZE=1024
5
6#
7# Multiple Device Support
8#
9# CONFIG_MD is not set
10
11# Kernel Features
12#
13CONFIG_NO_HZ=y
14
15#
16# CPUIdle
17#
18CONFIG_CPU_IDLE=y
19CONFIG_CPU_IDLE_GOV_LADDER=y
20CONFIG_CPU_IDLE_GOV_MENU=y
21
22#
23# Kernel hacking
24#
25CONFIG_DEBUG_FS=y
26
27#
28# Power management options
29#
30CONFIG_PM_DEBUG=y
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-preempt-rt.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-preempt-rt.scc
new file mode 100644
index 0000000000..56f7f0f1e3
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-preempt-rt.scc
@@ -0,0 +1,13 @@
1define KMACHINE {{=machine}}
2define KTYPE preempt-rt
3define KARCH arm
4
5include {{=map_preempt_rt_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}}
6{{ if need_new_kbranch == "y": }}
7branch {{=machine}}
8
9include {{=machine}}.scc
10
11# default policy for preempt-rt kernels
12include features/latencytop/latencytop.scc
13include features/profiling/profiling.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-standard.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-standard.scc
new file mode 100644
index 0000000000..80640db4a2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-standard.scc
@@ -0,0 +1,13 @@
1define KMACHINE {{=machine}}
2define KTYPE standard
3define KARCH arm
4
5include {{=map_standard_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}}
6{{ if need_new_kbranch == "y": }}
7branch {{=machine}}
8
9include {{=machine}}.scc
10
11# default policy for standard kernels
12include features/latencytop/latencytop.scc
13include features/profiling/profiling.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-tiny.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-tiny.scc
new file mode 100644
index 0000000000..51eaf2d32c
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-tiny.scc
@@ -0,0 +1,9 @@
1define KMACHINE {{=machine}}
2define KTYPE tiny
3define KARCH arm
4
5include {{=map_tiny_kbranch(need_new_kbranch, new_kbranch, existing_kbranch)}}
6{{ if need_new_kbranch == "y": }}
7branch {{=machine}}
8
9include {{=machine}}.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-config.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-config.cfg
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-config.cfg
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-features.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-features.scc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-features.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-patches.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-patches.scc
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}-user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.cfg b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.cfg
new file mode 100644
index 0000000000..10134c81f5
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.cfg
@@ -0,0 +1,320 @@
1#
2# System Type
3#
4CONFIG_ARCH_OMAP=y
5
6#
7# TI OMAP Implementations
8#
9# CONFIG_ARCH_OMAP2 is not set
10CONFIG_ARCH_OMAP3=y
11
12#
13# TI OMAP Common Features
14#
15CONFIG_ARCH_OMAP2PLUS=y
16
17#
18# OMAP Feature Selections
19#
20CONFIG_OMAP_32K_TIMER=y
21CONFIG_OMAP_32K_TIMER_HZ=128
22CONFIG_OMAP_DM_TIMER=y
23CONFIG_OMAP_RESET_CLOCKS=y
24CONFIG_OMAP_SMARTREFLEX=y
25CONFIG_OMAP_SMARTREFLEX_CLASS3=y
26CONFIG_OMAP_MBOX_FWK=m
27CONFIG_OMAP_MBOX_KFIFO_SIZE=256
28
29#
30# OMAP Board Type
31#
32CONFIG_MACH_OMAP3_BEAGLE=y
33
34#
35# Processor Features
36#
37CONFIG_ARM_THUMBEE=y
38CONFIG_ARM_ERRATA_430973=y
39
40#
41# Kernel Features
42#
43CONFIG_LEDS=y
44
45
46#
47# Serial drivers
48#
49CONFIG_SERIAL_OMAP=y
50CONFIG_SERIAL_OMAP_CONSOLE=y
51
52#
53# At least one emulation must be selected
54#
55CONFIG_VFP=y
56CONFIG_NEON=y
57
58#
59# Power management options
60#
61CONFIG_PM=y
62CONFIG_PM_RUNTIME=y
63
64#
65# Generic Driver Options
66#
67CONFIG_MTD=y
68CONFIG_MTD_CMDLINE_PARTS=y
69#
70# User Modules And Translation Layers
71#
72CONFIG_MTD_BLKDEVS=y
73CONFIG_MTD_BLOCK=y
74
75#
76# RAM/ROM/Flash chip drivers
77#
78CONFIG_MTD_CFI=y
79CONFIG_MTD_CFI_INTELEXT=y
80
81#
82# Disk-On-Chip Device Drivers
83#
84CONFIG_MTD_NAND=y
85
86CONFIG_MTD_NAND_OMAP2=y
87
88CONFIG_MTD_UBI=y
89
90#
91# SCSI device support
92#
93CONFIG_SCSI=y
94
95#
96# SCSI support type (disk, tape, CD-ROM)
97#
98CONFIG_BLK_DEV_SD=y
99
100#
101# Ethernet (10 or 100Mbit)
102#
103CONFIG_SMSC911X=y
104CONFIG_USB_NET_SMSC95XX=y
105
106#
107# Userland interfaces
108#
109CONFIG_INPUT_EVDEV=y
110
111#
112# Input Device Drivers
113#
114CONFIG_KEYBOARD_TWL4030=y
115CONFIG_INPUT_TOUCHSCREEN=y
116CONFIG_TOUCHSCREEN_ADS7846=y
117
118#
119# Miscellaneous I2C Chip support
120#
121CONFIG_I2C=y
122CONFIG_I2C_OMAP=y
123CONFIG_SPI=y
124CONFIG_SPI_MASTER=y
125CONFIG_SPI_OMAP24XX=y
126
127#
128# I2C GPIO expanders:
129#
130CONFIG_GPIO_TWL4030=y
131
132#
133# SPI GPIO expanders:
134#
135CONFIG_OMAP_WATCHDOG=y
136CONFIG_WATCHDOG_NOWAYOUT=y
137
138#
139# Multifunction device drivers
140#
141CONFIG_TWL4030_CORE=y
142CONFIG_REGULATOR=y
143CONFIG_REGULATOR_DUMMY=y
144CONFIG_REGULATOR_TWL4030=y
145
146#
147# Graphics support
148#
149CONFIG_FB=y
150CONFIG_DRM=m
151# CONFIG_VGASTATE is not set
152# CONFIG_VIDEO_OUTPUT_CONTROL is not set
153# CONFIG_FIRMWARE_EDID is not set
154# CONFIG_FB_DDC is not set
155# CONFIG_FB_BOOT_VESA_SUPPORT is not set
156CONFIG_FB_CFB_FILLRECT=y
157CONFIG_FB_CFB_COPYAREA=y
158CONFIG_FB_CFB_IMAGEBLIT=y
159# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
160# CONFIG_FB_SYS_FILLRECT is not set
161# CONFIG_FB_SYS_COPYAREA is not set
162# CONFIG_FB_SYS_IMAGEBLIT is not set
163# CONFIG_FB_FOREIGN_ENDIAN is not set
164# CONFIG_FB_SYS_FOPS is not set
165# CONFIG_FB_SVGALIB is not set
166# CONFIG_FB_MACMODES is not set
167# CONFIG_FB_BACKLIGHT is not set
168CONFIG_FB_MODE_HELPERS=y
169# CONFIG_FB_TILEBLITTING is not set
170
171#
172# Frame buffer hardware drivers
173#
174# CONFIG_FB_S1D13XXX is not set
175# CONFIG_FB_TMIO is not set
176# CONFIG_FB_VIRTUAL is not set
177# CONFIG_FB_METRONOME is not set
178# CONFIG_FB_MB862XX is not set
179# CONFIG_FB_BROADSHEET is not set
180# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
181CONFIG_OMAP2_VRAM=y
182CONFIG_OMAP2_VRFB=y
183CONFIG_OMAP2_DSS=y
184CONFIG_OMAP2_VRAM_SIZE=14
185CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y
186# CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set
187CONFIG_OMAP2_DSS_DPI=y
188# CONFIG_OMAP2_DSS_RFBI is not set
189CONFIG_OMAP2_DSS_VENC=y
190# CONFIG_OMAP2_DSS_SDI is not set
191CONFIG_OMAP2_DSS_DSI=y
192# CONFIG_OMAP2_DSS_FAKE_VSYNC is not set
193CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0
194CONFIG_FB_OMAP2=y
195CONFIG_FB_OMAP2_DEBUG_SUPPORT=y
196CONFIG_FB_OMAP2_NUM_FBS=2
197
198#
199# OMAP2/3 Display Device Drivers
200#
201CONFIG_PANEL_GENERIC_DPI=y
202CONFIG_PANEL_DVI=y
203CONFIG_PANEL_SHARP_LS037V7DW01=y
204# CONFIG_PANEL_LGPHILIPS_LB035Q02 is not set
205# CONFIG_PANEL_TAAL is not set
206CONFIG_PANEL_TPO_TD043MTEA1=m
207# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
208CONFIG_BACKLIGHT_CLASS_DEVICE=y
209
210#
211# Display device support
212#
213CONFIG_DISPLAY_SUPPORT=y
214CONFIG_DUMMY_CONSOLE=y
215# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
216CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
217# CONFIG_FONTS is not set
218CONFIG_FONT_8x8=y
219CONFIG_FONT_8x16=y
220# CONFIG_LOGO_LINUX_MONO is not set
221# CONFIG_LOGO_LINUX_VGA16 is not set
222
223#
224# Console display driver support
225#
226CONFIG_FRAMEBUFFER_CONSOLE=y
227CONFIG_LOGO=y
228# CONFIG_VGA_CONSOLE is not set
229
230# DMA Devices
231CONFIG_DMADEVICES=y
232CONFIG_DMA_OMAP=y
233CONFIG_DMA_OF=y
234
235CONFIG_SOUND=y
236CONFIG_SND=y
237CONFIG_SND_SOC=y
238CONFIG_SND_OMAP_SOC=y
239CONFIG_SND_OMAP_SOC_OMAP_TWL4030=y
240
241#
242# USB Input Devices
243#
244CONFIG_USB=y
245CONFIG_USB_SUPPORT=y
246
247#
248# Miscellaneous USB options
249#
250CONFIG_USB_OTG=y
251# CONFIG_USB_OTG_WHITELIST is not set
252
253#
254# USB Host Controller Drivers
255#
256CONFIG_USB_EHCI_HCD=y
257CONFIG_USB_EHCI_TT_NEWSCHED=y
258CONFIG_USB_EHCI_ROOT_HUB_TT=y
259CONFIG_USB_MUSB_HDRC=y
260CONFIG_USB_MUSB_OMAP2PLUS=y
261CONFIG_USB_OMAP=y
262
263#
264# OMAP 343x high speed USB support
265#
266CONFIG_USB_MUSB_OTG=y
267CONFIG_USB_GADGET_MUSB_HDRC=y
268CONFIG_USB_MUSB_HDRC_HCD=y
269CONFIG_USB_INVENTRA_DMA=y
270
271#
272# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
273#
274
275#
276# may also be needed; see USB_STORAGE Help for more information
277#
278CONFIG_USB_STORAGE=y
279
280#
281# USB Miscellaneous drivers
282#
283CONFIG_USB_GADGET=y
284CONFIG_USB_GADGET_DUALSPEED=y
285CONFIG_USB_OTG_UTILS=y
286CONFIG_TWL4030_USB=y
287
288# USB gadget modules
289CONFIG_USB_G_NCM=y
290CONFIG_USB_MASS_STORAGE=y
291
292CONFIG_MMC=y
293
294#
295# MMC/SD Host Controller Drivers
296#
297CONFIG_MMC_OMAP_HS=y
298
299#
300# Real Time Clock
301#
302CONFIG_RTC_LIB=y
303CONFIG_RTC_CLASS=y
304CONFIG_RTC_DRV_TWL4030=y
305
306#
307# DOS/FAT/NT Filesystems
308#
309CONFIG_VFAT_FS=y
310
311#
312# Multimedia core support
313#
314
315# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
316
317#
318# Advanced Power Management Emulation support
319#
320CONFIG_APM_EMULATION=y
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.scc b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.scc
new file mode 100644
index 0000000000..24196e6f67
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice != "custom": }} files/{{=machine}}.scc
@@ -0,0 +1,7 @@
1kconf hardware {{=machine}}.cfg
2kconf non-hardware {{machine}}-non_hardware.cfg
3
4include features/usb-net/usb-net.scc
5
6kconf hardware {{=machine}}-user-config.cfg
7include {{=machine}}-user-patches.scc
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-dev": }} linux-yocto-dev.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-dev": }} linux-yocto-dev.bbappend
new file mode 100644
index 0000000000..25c87a85ac
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-dev": }} linux-yocto-dev.bbappend
@@ -0,0 +1,25 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
7
8{{ if need_new_kbranch == "y": }}
9{{ input type:"choicelist" name:"new_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
10
11{{ if need_new_kbranch == "n": }}
12{{ input type:"choicelist" name:"existing_kbranch" nameappend:"i386" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
13
14{{ if need_new_kbranch == "n": }}
15KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
16
17{{ input type:"boolean" name:"smp" prio:"30" msg:"Would you like SMP support? (y/n)" default:"y"}}
18{{ if smp == "y": }}
19KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
20
21SRC_URI += "file://{{=machine}}-standard.scc \
22 file://{{=machine}}-user-config.cfg \
23 file://{{=machine}}-user-patches.scc \
24 file://{{=machine}}-user-features.scc \
25 "
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.10": }} linux-yocto-rt_3.10.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.10": }} linux-yocto-rt_3.10.bbappend
new file mode 100644
index 0000000000..08b1f88d1b
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.10": }} linux-yocto-rt_3.10.bbappend
@@ -0,0 +1,32 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/preempt-rt" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/preempt-rt" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/preempt-rt/base" }}
14
15{{ if need_new_kbranch == "n": }}
16KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
17
18{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
19{{ if smp == "y": }}
20KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
21
22SRC_URI += "file://{{=machine}}-preempt-rt.scc \
23 file://{{=machine}}-user-config.cfg \
24 file://{{=machine}}-user-patches.scc \
25 file://{{=machine}}-user-features.scc \
26 "
27
28# uncomment and replace these SRCREVs with the real commit ids once you've had
29# the appropriate changes committed to the upstream linux-yocto repo
30#SRCREV_machine_pn-linux-yocto-rt_{{=machine}} ?= "f35992f80c81dc5fa1a97165dfd5cbb84661f7cb"
31#SRCREV_meta_pn-linux-yocto-rt_{{=machine}} ?= "1b534b2f8bbe9b8a773268cfa30a4850346f6f5f"
32#LINUX_VERSION = "3.10.9"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.10": }} linux-yocto-tiny_3.10.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.10": }} linux-yocto-tiny_3.10.bbappend
new file mode 100644
index 0000000000..bc6968d832
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.10": }} linux-yocto-tiny_3.10.bbappend
@@ -0,0 +1,32 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }}
14
15{{ if need_new_kbranch == "n": }}
16KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
17
18{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
19{{ if smp == "y": }}
20KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
21
22SRC_URI += "file://{{=machine}}-tiny.scc \
23 file://{{=machine}}-user-config.cfg \
24 file://{{=machine}}-user-patches.scc \
25 file://{{=machine}}-user-features.scc \
26 "
27
28# uncomment and replace these SRCREVs with the real commit ids once you've had
29# the appropriate changes committed to the upstream linux-yocto repo
30#SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "840bb8c059418c4753415df56c9aff1c0d5354c8"
31#SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "4fd76cc4f33e0afd8f906b1e8f231b6d13b6c993"
32#LINUX_VERSION = "3.10.9"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.14": }} linux-yocto-tiny_3.14.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.14": }} linux-yocto-tiny_3.14.bbappend
new file mode 100644
index 0000000000..d221d5f2a4
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-tiny_3.14": }} linux-yocto-tiny_3.14.bbappend
@@ -0,0 +1,32 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard/tiny" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/tiny/base" }}
14
15{{ if need_new_kbranch == "n": }}
16KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
17
18{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
19{{ if smp == "y": }}
20KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
21
22SRC_URI += "file://{{=machine}}-tiny.scc \
23 file://{{=machine}}-user-config.cfg \
24 file://{{=machine}}-user-patches.scc \
25 file://{{=machine}}-user-features.scc \
26 "
27
28# uncomment and replace these SRCREVs with the real commit ids once you've had
29# the appropriate changes committed to the upstream linux-yocto repo
30#SRCREV_machine_pn-linux-yocto-tiny_{{=machine}} ?= "840bb8c059418c4753415df56c9aff1c0d5354c8"
31#SRCREV_meta_pn-linux-yocto-tiny_{{=machine}} ?= "4fd76cc4f33e0afd8f906b1e8f231b6d13b6c993"
32#LINUX_VERSION = "3.14"
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.10": }} linux-yocto_3.10.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.10": }} linux-yocto_3.10.bbappend
new file mode 100644
index 0000000000..1e814c54d7
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.10": }} linux-yocto_3.10.bbappend
@@ -0,0 +1,32 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
14
15{{ if need_new_kbranch == "n": }}
16KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
17
18{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
19{{ if smp == "y": }}
20KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
21
22SRC_URI += "file://{{=machine}}-standard.scc \
23 file://{{=machine}}-user-config.cfg \
24 file://{{=machine}}-user-patches.scc \
25 file://{{=machine}}-user-features.scc \
26 "
27
28# uncomment and replace these SRCREVs with the real commit ids once you've had
29# the appropriate changes committed to the upstream linux-yocto repo
30#SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "19f7e43b54aef08d58135ed2a897d77b624b320a"
31#SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "459165c1dd61c4e843c36e6a1abeb30949a20ba7"
32#LINUX_VERSION = "3.10.9" \ No newline at end of file
diff --git a/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.14": }} linux-yocto_3.14.bbappend b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.14": }} linux-yocto_3.14.bbappend
new file mode 100644
index 0000000000..ca7f8c5978
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/arm/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.14": }} linux-yocto_3.14.bbappend
@@ -0,0 +1,32 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3PR := "${PR}.1"
4
5COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"
6
7{{ input type:"boolean" name:"need_new_kbranch" prio:"20" msg:"Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]" default:"y" }}
8
9{{ if need_new_kbranch == "y": }}
10{{ input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
11
12{{ if need_new_kbranch == "n": }}
13{{ input type:"choicelist" name:"existing_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base this BSP on:" default:"standard/base" }}
14
15{{ if need_new_kbranch == "n": }}
16KBRANCH_{{=machine}} = "{{=existing_kbranch}}"
17
18{{ input type:"boolean" name:"smp" prio:"30" msg:"Do you need SMP support? (y/n)" default:"y"}}
19{{ if smp == "y": }}
20KERNEL_FEATURES_append_{{=machine}} += " cfg/smp.scc"
21
22SRC_URI += "file://{{=machine}}-standard.scc \
23 file://{{=machine}}-user-config.cfg \
24 file://{{=machine}}-user-patches.scc \
25 file://{{=machine}}-user-features.scc \
26 "
27
28# uncomment and replace these SRCREVs with the real commit ids once you've had
29# the appropriate changes committed to the upstream linux-yocto repo
30#SRCREV_machine_pn-linux-yocto_{{=machine}} ?= "840bb8c059418c4753415df56c9aff1c0d5354c8"
31#SRCREV_meta_pn-linux-yocto_{{=machine}} ?= "4fd76cc4f33e0afd8f906b1e8f231b6d13b6c993"
32#LINUX_VERSION = "3.14" \ No newline at end of file