diff options
author | Denys Dmytriyenko <denys@ti.com> | 2013-03-05 16:24:39 -0500 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2013-03-08 16:15:35 -0500 |
commit | 82a8d7c5f20b6b7c8a6291405177a4f7f92749d6 (patch) | |
tree | 7d8d5d18c64a2e64f0f3105cc3cf10d800671950 /conf | |
parent | 62f7277a7a02d551771adba6616c1885ee859f15 (diff) | |
download | meta-ti-82a8d7c5f20b6b7c8a6291405177a4f7f92749d6.tar.gz |
omap3, am37x, am3517, beagleboard: unify and cleanup configs
* Centralize common/SoC settings in omap3.inc SOC_FAMILY config.
* Set/override uncommon specifics in machine configs.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/am3517-evm.conf | 22 | ||||
-rw-r--r-- | conf/machine/am37x-evm.conf | 25 | ||||
-rw-r--r-- | conf/machine/beagleboard.conf | 18 | ||||
-rw-r--r-- | conf/machine/include/omap3.inc | 23 | ||||
-rw-r--r-- | conf/machine/omap3evm.conf | 24 |
5 files changed, 37 insertions, 75 deletions
diff --git a/conf/machine/am3517-evm.conf b/conf/machine/am3517-evm.conf index d9ce7586..0151fe96 100644 --- a/conf/machine/am3517-evm.conf +++ b/conf/machine/am3517-evm.conf | |||
@@ -2,19 +2,12 @@ | |||
2 | #@NAME: AM3517 EVM | 2 | #@NAME: AM3517 EVM |
3 | #@DESCRIPTION: Machine configuration for the TI Sitara AM3517 EVM | 3 | #@DESCRIPTION: Machine configuration for the TI Sitara AM3517 EVM |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-input-mouse \ | ||
9 | xf86-input-tslib \ | ||
10 | xf86-video-omapfb \ | ||
11 | xf86-input-keyboard" | ||
12 | |||
13 | GUI_MACHINE_CLASS = "smallscreen" | ||
14 | |||
15 | require conf/machine/include/omap3.inc | 5 | require conf/machine/include/omap3.inc |
16 | 6 | ||
17 | # Ship all kernel modules | 7 | # Use built-in LCD by default |
8 | XSERVER += "xf86-input-tslib" | ||
9 | GUI_MACHINE_CLASS = "smallscreen" | ||
10 | MACHINE_FEATURES += "touchscreen ethernet" | ||
18 | 11 | ||
19 | IMAGE_FSTYPES += "ubi tar.gz" | 12 | IMAGE_FSTYPES += "ubi tar.gz" |
20 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" | 13 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" |
@@ -24,16 +17,10 @@ USE_VT = "2" | |||
24 | 17 | ||
25 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" | 18 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" |
26 | 19 | ||
27 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | ||
28 | |||
29 | UBOOT_ARCH = "arm" | ||
30 | UBOOT_MACHINE = "am3517_evm_config" | 20 | UBOOT_MACHINE = "am3517_evm_config" |
31 | XLOAD_MACHINE = "am3517evm_config" | 21 | XLOAD_MACHINE = "am3517evm_config" |
32 | 22 | ||
33 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen ethernet sgx" | ||
34 | |||
35 | # NOTE: there are NAND and OneNAND versions of this board... | 23 | # NOTE: there are NAND and OneNAND versions of this board... |
36 | |||
37 | # do ubiattach /dev/ubi_ctrl -m 4 | 24 | # do ubiattach /dev/ubi_ctrl -m 4 |
38 | # From dmesg: | 25 | # From dmesg: |
39 | # UBI: smallest flash I/O unit: 2048 | 26 | # UBI: smallest flash I/O unit: 2048 |
@@ -48,4 +35,3 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" | |||
48 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) | 35 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) |
49 | # UBI: sub-page size: 512 | 36 | # UBI: sub-page size: 512 |
50 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" | 37 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" |
51 | |||
diff --git a/conf/machine/am37x-evm.conf b/conf/machine/am37x-evm.conf index 2d1d44d8..3122e103 100644 --- a/conf/machine/am37x-evm.conf +++ b/conf/machine/am37x-evm.conf | |||
@@ -2,19 +2,12 @@ | |||
2 | #@NAME: AM37x EVM | 2 | #@NAME: AM37x EVM |
3 | #@DESCRIPTION: Machine configuration for the TI AM37x EVM | 3 | #@DESCRIPTION: Machine configuration for the TI AM37x EVM |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-input-mouse \ | ||
9 | xf86-input-tslib \ | ||
10 | xf86-video-omapfb \ | ||
11 | xf86-input-keyboard" | ||
12 | |||
13 | GUI_MACHINE_CLASS = "smallscreen" | ||
14 | |||
15 | require conf/machine/include/omap3.inc | 5 | require conf/machine/include/omap3.inc |
16 | 6 | ||
17 | # Ship all kernel modules | 7 | # Use built-in LCD by default |
8 | XSERVER += "xf86-input-tslib" | ||
9 | GUI_MACHINE_CLASS = "smallscreen" | ||
10 | MACHINE_FEATURES += "touchscreen ethernet" | ||
18 | 11 | ||
19 | IMAGE_FSTYPES += "ubi tar.gz" | 12 | IMAGE_FSTYPES += "ubi tar.gz" |
20 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" | 13 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" |
@@ -23,16 +16,7 @@ SERIAL_CONSOLE = "115200 ttyO0" | |||
23 | 16 | ||
24 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" | 17 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" |
25 | 18 | ||
26 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | ||
27 | |||
28 | UBOOT_ARCH = "arm" | ||
29 | UBOOT_MACHINE = "omap3_evm_config" | ||
30 | XLOAD_MACHINE = "omap3evm_config" | ||
31 | |||
32 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx" | ||
33 | |||
34 | # NOTE: there are NAND and OneNAND versions of this board... | 19 | # NOTE: there are NAND and OneNAND versions of this board... |
35 | |||
36 | # do ubiattach /dev/ubi_ctrl -m 4 | 20 | # do ubiattach /dev/ubi_ctrl -m 4 |
37 | # From dmesg: | 21 | # From dmesg: |
38 | # UBI: smallest flash I/O unit: 2048 | 22 | # UBI: smallest flash I/O unit: 2048 |
@@ -47,4 +31,3 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" | |||
47 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) | 31 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) |
48 | # UBI: sub-page size: 512 | 32 | # UBI: sub-page size: 512 |
49 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" | 33 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" |
50 | |||
diff --git a/conf/machine/beagleboard.conf b/conf/machine/beagleboard.conf index e8b62792..a65e3603 100644 --- a/conf/machine/beagleboard.conf +++ b/conf/machine/beagleboard.conf | |||
@@ -2,27 +2,16 @@ | |||
2 | #@NAME: Beagleboard machine | 2 | #@NAME: Beagleboard machine |
3 | #@DESCRIPTION: Machine configuration for the http://beagleboard.org/ board | 3 | #@DESCRIPTION: Machine configuration for the http://beagleboard.org/ board |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 5 | require conf/machine/include/omap3.inc |
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-input-mouse \ | ||
9 | xf86-video-omapfb \ | ||
10 | xf86-input-keyboard" | ||
11 | 6 | ||
12 | # Only has DVI connector for external screen | 7 | # Only has DVI connector for external screen |
13 | GUI_MACHINE_CLASS = "bigscreen" | 8 | GUI_MACHINE_CLASS = "bigscreen" |
14 | 9 | ||
15 | require conf/machine/include/omap3.inc | ||
16 | |||
17 | # SPL build | ||
18 | EXTRA_IMAGEDEPENDS = "u-boot" | ||
19 | |||
20 | PREFERRED_PROVIDER_virtual/kernel = "linux-mainline" | 10 | PREFERRED_PROVIDER_virtual/kernel = "linux-mainline" |
21 | 11 | ||
22 | IMAGE_FSTYPES += "tar.gz ubi" | 12 | IMAGE_FSTYPES += "tar.gz ubi" |
23 | EXTRA_IMAGECMD_jffs2 = "-lnp " | 13 | EXTRA_IMAGECMD_jffs2 = "-lnp" |
24 | 14 | ||
25 | # Guesswork | ||
26 | SERIAL_CONSOLE = "115200 ttyO2" | 15 | SERIAL_CONSOLE = "115200 ttyO2" |
27 | 16 | ||
28 | UBOOT_MACHINE = "omap3_beagle_config" | 17 | UBOOT_MACHINE = "omap3_beagle_config" |
@@ -44,9 +33,6 @@ MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" | |||
44 | # UBI: sub-page size: 512 | 33 | # UBI: sub-page size: 512 |
45 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" | 34 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" |
46 | 35 | ||
47 | # and sdio | ||
48 | MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa sgx" | ||
49 | |||
50 | # For a modularized kernel we want to drag in networking, sound, rtc etc." | 36 | # For a modularized kernel we want to drag in networking, sound, rtc etc." |
51 | MACHINE_EXTRA_RRECOMMENDS = "kernel-module-smsc95xx kernel-module-snd-soc-twl4030 kernel-module-rtc-twl \ | 37 | MACHINE_EXTRA_RRECOMMENDS = "kernel-module-smsc95xx kernel-module-snd-soc-twl4030 kernel-module-rtc-twl \ |
52 | kernel-module-snd-soc-omap kernel-module-snd-soc-omap-mcbsp kernel-module-snd-soc-omap3beagle" | 38 | kernel-module-snd-soc-omap kernel-module-snd-soc-omap-mcbsp kernel-module-snd-soc-omap3beagle" |
diff --git a/conf/machine/include/omap3.inc b/conf/machine/include/omap3.inc index 8ebbb085..99f0c80c 100644 --- a/conf/machine/include/omap3.inc +++ b/conf/machine/include/omap3.inc | |||
@@ -3,15 +3,36 @@ require conf/machine/include/soc-family.inc | |||
3 | 3 | ||
4 | require conf/machine/include/tune-cortexa8.inc | 4 | require conf/machine/include/tune-cortexa8.inc |
5 | 5 | ||
6 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
7 | |||
8 | # For built-in LCD, add xf86-input-tslib | ||
9 | XSERVER = "xserver-xorg \ | ||
10 | xf86-input-evdev \ | ||
11 | xf86-input-mouse \ | ||
12 | xf86-video-omapfb \ | ||
13 | xf86-input-keyboard" | ||
14 | |||
15 | # Default to external video, change to smallscreen for built-in LCD | ||
16 | GUI_MACHINE_CLASS = "bigscreen" | ||
17 | |||
6 | # Increase this everytime you change something in the kernel | 18 | # Increase this everytime you change something in the kernel |
7 | MACHINE_KERNEL_PR = "r123" | 19 | MACHINE_KERNEL_PR = "r123" |
8 | 20 | ||
9 | KERNEL_IMAGETYPE = "uImage" | 21 | KERNEL_IMAGETYPE = "uImage" |
10 | 22 | ||
23 | # Default providers, may need to override for specific machines | ||
11 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap" | 24 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap" |
12 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | 25 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" |
13 | 26 | ||
27 | UBOOT_ARCH = "arm" | ||
28 | UBOOT_MACHINE = "omap3_evm_config" | ||
29 | XLOAD_MACHINE = "omap3evm_config" | ||
30 | |||
14 | UBOOT_ENTRYPOINT = "0x80008000" | 31 | UBOOT_ENTRYPOINT = "0x80008000" |
15 | UBOOT_LOADADDRESS = "0x80008000" | 32 | UBOOT_LOADADDRESS = "0x80008000" |
16 | 33 | ||
17 | EXTRA_IMAGEDEPENDS += "u-boot x-load" | 34 | # If SPL is not used, may need to add x-load |
35 | EXTRA_IMAGEDEPENDS += "u-boot" | ||
36 | |||
37 | # List common SoC features, may need to add touchscreen/ethernet for specific machines | ||
38 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa sgx" | ||
diff --git a/conf/machine/omap3evm.conf b/conf/machine/omap3evm.conf index 07196715..a793798b 100644 --- a/conf/machine/omap3evm.conf +++ b/conf/machine/omap3evm.conf | |||
@@ -2,19 +2,12 @@ | |||
2 | #@NAME: OMAP3 EVM | 2 | #@NAME: OMAP3 EVM |
3 | #@DESCRIPTION: Machine configuration for the TI OMAP3 EVM | 3 | #@DESCRIPTION: Machine configuration for the TI OMAP3 EVM |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-input-mouse \ | ||
9 | xf86-input-tslib \ | ||
10 | xf86-video-omapfb \ | ||
11 | xf86-input-keyboard" | ||
12 | |||
13 | GUI_MACHINE_CLASS = "smallscreen" | ||
14 | |||
15 | require conf/machine/include/omap3.inc | 5 | require conf/machine/include/omap3.inc |
16 | 6 | ||
17 | # Ship all kernel modules | 7 | # Use built-in LCD by default |
8 | XSERVER += "xf86-input-tslib" | ||
9 | GUI_MACHINE_CLASS = "smallscreen" | ||
10 | MACHINE_FEATURES += "touchscreen ethernet" | ||
18 | 11 | ||
19 | IMAGE_FSTYPES += "jffs2 tar.bz2" | 12 | IMAGE_FSTYPES += "jffs2 tar.bz2" |
20 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" | 13 | EXTRA_IMAGECMD_jffs2 = "-lnp -e 0x20000 -s 2048" |
@@ -24,16 +17,9 @@ USE_VT = "0" | |||
24 | 17 | ||
25 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" | 18 | PREFERRED_PROVIDER_virtual/kernel = "linux-omap-psp" |
26 | 19 | ||
27 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | 20 | EXTRA_IMAGEDEPENDS += "x-load" |
28 | |||
29 | UBOOT_ARCH = "arm" | ||
30 | UBOOT_MACHINE = "omap3_evm_config" | ||
31 | XLOAD_MACHINE = "omap3evm_config" | ||
32 | |||
33 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx" | ||
34 | 21 | ||
35 | # NOTE: there are NAND and OneNAND versions of this board... | 22 | # NOTE: there are NAND and OneNAND versions of this board... |
36 | |||
37 | # do ubiattach /dev/ubi_ctrl -m 4 | 23 | # do ubiattach /dev/ubi_ctrl -m 4 |
38 | # From dmesg: | 24 | # From dmesg: |
39 | # UBI: smallest flash I/O unit: 2048 | 25 | # UBI: smallest flash I/O unit: 2048 |