diff options
author | Denys Dmytriyenko <denys@ti.com> | 2013-03-05 16:27:26 -0500 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2013-03-08 16:15:35 -0500 |
commit | e37816400e0514c40c7065d4c18ac7eb80928854 (patch) | |
tree | c4d3d9fe0dad6afd68643b21fbf39b4ff4395805 /conf | |
parent | 82a8d7c5f20b6b7c8a6291405177a4f7f92749d6 (diff) | |
download | meta-ti-e37816400e0514c40c7065d4c18ac7eb80928854.tar.gz |
ti33x, am335x, beaglebone: unify and cleanup configs
* Centralize common/SoC settings in ti33x.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/am335x-evm.conf | 17 | ||||
-rw-r--r-- | conf/machine/beaglebone.conf | 14 | ||||
-rw-r--r-- | conf/machine/include/ti33x.inc | 19 |
3 files changed, 25 insertions, 25 deletions
diff --git a/conf/machine/am335x-evm.conf b/conf/machine/am335x-evm.conf index 28893589..91f7e546 100644 --- a/conf/machine/am335x-evm.conf +++ b/conf/machine/am335x-evm.conf | |||
@@ -2,14 +2,12 @@ | |||
2 | #@NAME: AM335x EVM | 2 | #@NAME: AM335x EVM |
3 | #@DESCRIPTION: Machine configuration for the TI AM335x EVM | 3 | #@DESCRIPTION: Machine configuration for the TI AM335x EVM |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 5 | require conf/machine/include/ti33x.inc |
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-video-fbdev" | ||
9 | 6 | ||
7 | # Use built-in LCD by default | ||
8 | XSERVER += "xf86-input-tslib" | ||
10 | GUI_MACHINE_CLASS = "smallscreen" | 9 | GUI_MACHINE_CLASS = "smallscreen" |
11 | 10 | MACHINE_FEATURES += "touchscreen" | |
12 | require conf/machine/include/ti33x.inc | ||
13 | 11 | ||
14 | IMAGE_FSTYPES += "ubi tar.gz" | 12 | IMAGE_FSTYPES += "ubi tar.gz" |
15 | 13 | ||
@@ -37,10 +35,3 @@ MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3836" | |||
37 | # UBI: sub-page size: 512 | 35 | # UBI: sub-page size: 512 |
38 | # UBI: VID header offset: 2048 (aligned 2048) | 36 | # UBI: VID header offset: 2048 (aligned 2048) |
39 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048" | 37 | UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048" |
40 | |||
41 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | ||
42 | |||
43 | UBOOT_ARCH = "arm" | ||
44 | UBOOT_MACHINE = "am335x_evm_config" | ||
45 | |||
46 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen touchscreen sgx" | ||
diff --git a/conf/machine/beaglebone.conf b/conf/machine/beaglebone.conf index 43af461b..dc77dd79 100644 --- a/conf/machine/beaglebone.conf +++ b/conf/machine/beaglebone.conf | |||
@@ -2,25 +2,15 @@ | |||
2 | #@NAME: BeagleBone machine | 2 | #@NAME: BeagleBone machine |
3 | #@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board | 3 | #@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board |
4 | 4 | ||
5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 5 | require conf/machine/include/ti33x.inc |
6 | XSERVER = "xserver-xorg \ | ||
7 | xf86-input-evdev \ | ||
8 | xf86-video-fbdev" | ||
9 | 6 | ||
10 | # Only has DVI connector for external screen | 7 | # Only has DVI connector for external screen |
11 | GUI_MACHINE_CLASS = "bigscreen" | 8 | GUI_MACHINE_CLASS = "bigscreen" |
12 | 9 | ||
13 | require conf/machine/include/ti33x.inc | ||
14 | EXTRA_IMAGEDEPENDS = "u-boot" | ||
15 | |||
16 | PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" | 10 | PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" |
17 | 11 | ||
18 | IMAGE_FSTYPES += "tar.bz2 " | 12 | IMAGE_FSTYPES += "tar.bz2" |
19 | 13 | ||
20 | # Guesswork | ||
21 | SERIAL_CONSOLE = "115200 ttyO0" | 14 | SERIAL_CONSOLE = "115200 ttyO0" |
22 | 15 | ||
23 | UBOOT_MACHINE = "am335x_evm_config" | 16 | UBOOT_MACHINE = "am335x_evm_config" |
24 | |||
25 | # and sdio | ||
26 | MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa sgx" | ||
diff --git a/conf/machine/include/ti33x.inc b/conf/machine/include/ti33x.inc index 93c50424..cf497219 100644 --- a/conf/machine/include/ti33x.inc +++ b/conf/machine/include/ti33x.inc | |||
@@ -3,15 +3,34 @@ 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-fbdev \ | ||
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 = "r17" | 19 | MACHINE_KERNEL_PR = "r17" |
8 | 20 | ||
21 | # Default providers, may need to override for specific machines | ||
9 | PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" | 22 | PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" |
10 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | 23 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" |
11 | 24 | ||
12 | KERNEL_IMAGETYPE = "uImage" | 25 | KERNEL_IMAGETYPE = "uImage" |
13 | 26 | ||
27 | UBOOT_ARCH = "arm" | ||
28 | UBOOT_MACHINE = "am335x_evm_config" | ||
29 | |||
14 | UBOOT_ENTRYPOINT = "0x80008000" | 30 | UBOOT_ENTRYPOINT = "0x80008000" |
15 | UBOOT_LOADADDRESS = "0x80008000" | 31 | UBOOT_LOADADDRESS = "0x80008000" |
16 | 32 | ||
17 | EXTRA_IMAGEDEPENDS += "u-boot" | 33 | EXTRA_IMAGEDEPENDS += "u-boot" |
34 | |||
35 | # List common SoC features, may need to add touchscreen for specific machines | ||
36 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet sgx" | ||