[Buildroot] [PATCH 2/2] Add target support for MXC based devices
Daniel Mack
daniel at caiaq.de
Wed Jun 10 07:59:03 UTC 2009
On Mon, Jun 08, 2009 at 08:07:31PM +0200, Peter Korsgaard wrote:
> >> From 3c1b25d96ee33c1d1c8b5b8f6f7a8c48d28cb353 Mon Sep 17 00:00:00 2001
> Daniel> From: Daniel Mack <daniel at caiaq.de>
> Daniel> Date: Mon, 8 Jun 2009 17:22:04 +0200
> Daniel> Subject: [PATCH] Add support for Freescale's MXC serial terminals
>
> Daniel> This patch makes ttymxc0 an option to choose for
> Daniel> BR2_TARGET_GENERIC_GETTY.
>
> Do all SoCs using the ttymxc driver really all only have 1 uart?
>
> Daniel> +/dev/ttymxc c 666 0 0 207 16 0 1 3
>
> Apparently not as you're here creating 3 nodes.
Agreed, they should all be included. New patch below - also rebased upon
the current git HEAD.
Thanks,
Daniel
>From b32292eee6f186718ecd607a8b262bb15a245164 Mon Sep 17 00:00:00 2001
From: Daniel Mack <daniel at caiaq.de>
Date: Mon, 8 Jun 2009 17:22:04 +0200
Subject: [PATCH] Add support for Freescale's MXC serial terminals
This patch makes ttymxc[012] an option to choose for
BR2_TARGET_GENERIC_GETTY.
It also adds these ports to the generic device table and to securetty.
Signed-off-by: Daniel Mack <daniel at caiaq.de>
---
target/generic/Config.in | 11 +++++++++++
target/generic/device_table.txt | 1 +
target/generic/target_skeleton/etc/securetty | 3 +++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/target/generic/Config.in b/target/generic/Config.in
index cb7ef77..1e1d11f 100644
--- a/target/generic/Config.in
+++ b/target/generic/Config.in
@@ -106,6 +106,14 @@ config BR2_TARGET_GENERIC_GETTY_TTYSAC2
depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYSAC3
bool "ttySAC3"
+config BR2_TARGET_GENERIC_GETTY_TTYMXC0
+ bool "ttymxc0"
+ depends on BR2_arm
+config BR2_TARGET_GENERIC_GETTY_TTYMXC1
+ bool "ttymxc1"
+ depends on BR2_arm
+config BR2_TARGET_GENERIC_GETTY_TTYMXC2
+ bool "ttymxc2"
depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYUL0
bool "ttyUL0"
@@ -160,6 +168,9 @@ config BR2_TARGET_GENERIC_GETTY_PORT
default "ttySAC1" if BR2_TARGET_GENERIC_GETTY_TTYSAC1
default "ttySAC2" if BR2_TARGET_GENERIC_GETTY_TTYSAC2
default "ttySAC3" if BR2_TARGET_GENERIC_GETTY_TTYSAC3
+ default "ttymxc0" if BR2_TARGET_GENERIC_GETTY_TTYMXC0
+ default "ttymxc1" if BR2_TARGET_GENERIC_GETTY_TTYMXC1
+ default "ttymxc2" if BR2_TARGET_GENERIC_GETTY_TTYMXC2
default "ttyUL0" if BR2_TARGET_GENERIC_GETTY_TTYUL0
default "ttyUL1" if BR2_TARGET_GENERIC_GETTY_TTYUL1
default "ttyUL2" if BR2_TARGET_GENERIC_GETTY_TTYUL2
diff --git a/target/generic/device_table.txt b/target/generic/device_table.txt
index b6dd6b9..a80863e 100644
--- a/target/generic/device_table.txt
+++ b/target/generic/device_table.txt
@@ -77,6 +77,7 @@
/dev/ttySAC c 666 0 0 204 64 0 1 4
/dev/ttyPSC c 666 0 0 204 148 0 1 4
/dev/ttyUL c 666 0 0 204 187 0 1 4
+/dev/ttymxc c 666 0 0 207 16 0 1 3
# Input stuff
/dev/input d 755 0 0 - - - - -
diff --git a/target/generic/target_skeleton/etc/securetty b/target/generic/target_skeleton/etc/securetty
index 0e7cf97..b25f4a5 100644
--- a/target/generic/target_skeleton/etc/securetty
+++ b/target/generic/target_skeleton/etc/securetty
@@ -30,3 +30,6 @@ ttyCPM0
ttyCPM1
ttyCPM2
ttyCPM3
+ttymxc0
+ttymxc1
+ttymxc2
--
1.6.3.1
More information about the buildroot
mailing list