All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: linux-arm-kernel@lists.arm.linux.org.uk
Cc: Kalle Valo <kalle.valo@iki.fi>, linux-omap@vger.kernel.org
Subject: [PATCH 1/9] OMAP: remove OMAP_TAG_SERIAL_CONSOLE
Date: Tue, 11 Aug 2009 12:46:31 +0300	[thread overview]
Message-ID: <20090811094631.32577.24255.stgit@localhost> (raw)
In-Reply-To: <20090811094348.32577.81307.stgit@localhost>

From: Kalle Valo <kalle.valo@iki.fi>

Omap tags are deprecated and remove OMAP_TAG_SERIAL_CONSOLE. Console must be
enabled with the console boot parameter instead.

Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/plat-omap/common.c             |   44 -------------------------------
 arch/arm/plat-omap/include/mach/board.h |    1 -
 2 files changed, 0 insertions(+), 45 deletions(-)

diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index ebcf006..f37a29a 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -127,50 +127,6 @@ const void *omap_get_var_config(u16 tag, size_t *len)
 }
 EXPORT_SYMBOL(omap_get_var_config);
 
-static int __init omap_add_serial_console(void)
-{
-	const struct omap_serial_console_config *con_info;
-	const struct omap_uart_config *uart_info;
-	static char speed[11], *opt = NULL;
-	int line, i, uart_idx;
-
-	uart_info = omap_get_config(OMAP_TAG_UART, struct omap_uart_config);
-	con_info = omap_get_config(OMAP_TAG_SERIAL_CONSOLE,
-					struct omap_serial_console_config);
-	if (uart_info == NULL || con_info == NULL)
-		return 0;
-
-	if (con_info->console_uart == 0)
-		return 0;
-
-	if (con_info->console_speed) {
-		snprintf(speed, sizeof(speed), "%u", con_info->console_speed);
-		opt = speed;
-	}
-
-	uart_idx = con_info->console_uart - 1;
-	if (uart_idx >= OMAP_MAX_NR_PORTS) {
-		printk(KERN_INFO "Console: external UART#%d. "
-			"Not adding it as console this time.\n",
-			uart_idx + 1);
-		return 0;
-	}
-	if (!(uart_info->enabled_uarts & (1 << uart_idx))) {
-		printk(KERN_ERR "Console: Selected UART#%d is "
-			"not enabled for this platform\n",
-			uart_idx + 1);
-		return -1;
-	}
-	line = 0;
-	for (i = 0; i < uart_idx; i++) {
-		if (uart_info->enabled_uarts & (1 << i))
-			line++;
-	}
-	return add_preferred_console("ttyS", line, opt);
-}
-console_initcall(omap_add_serial_console);
-
-
 /*
  * 32KHz clocksource ... always available, on pretty most chips except
  * OMAP 730 and 1510.  Other timers could be used as clocksources, with
diff --git a/arch/arm/plat-omap/include/mach/board.h b/arch/arm/plat-omap/include/mach/board.h
index 50ea79a..0d12586 100644
--- a/arch/arm/plat-omap/include/mach/board.h
+++ b/arch/arm/plat-omap/include/mach/board.h
@@ -16,7 +16,6 @@
 
 /* Different peripheral ids */
 #define OMAP_TAG_CLOCK		0x4f01
-#define OMAP_TAG_SERIAL_CONSOLE 0x4f03
 #define OMAP_TAG_LCD		0x4f05
 #define OMAP_TAG_GPIO_SWITCH	0x4f06
 #define OMAP_TAG_UART		0x4f07


-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

  reply	other threads:[~2009-08-11  9:46 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11  9:45 [PATCH 0/9] Omap updates for upcoming 2.6.32 merge window Tony Lindgren
2009-08-11  9:46 ` Tony Lindgren [this message]
2009-08-13  9:15   ` [PATCH 1/9] OMAP: remove OMAP_TAG_SERIAL_CONSOLE Russell King - ARM Linux
2009-08-11  9:47 ` [PATCH 2/9] OMAP: remove OMAP_TAG_UART Tony Lindgren
2009-08-13  9:16   ` Russell King - ARM Linux
2009-08-24 12:54     ` [PATCH 2/9] OMAP: remove OMAP_TAG_UART, v2 Tony Lindgren
2009-08-11  9:49 ` [PATCH 3/9] OMAP: Remove omap boot parsing code Tony Lindgren
2009-08-13  9:16   ` Russell King - ARM Linux
2009-08-11  9:50 ` [PATCH 4/9] OMAP: GPIO: Avoid generating extra IRQs Tony Lindgren
2009-08-13  9:17   ` Russell King - ARM Linux
2009-08-11  9:51 ` [PATCH 5/9] OMAP1: AMS_DELTA: add modem support Tony Lindgren
2009-08-18 13:19   ` Janusz Krzysztofik
2009-08-24 12:51     ` Tony Lindgren
2009-08-11  9:53 ` [PATCH 6/9] OMAP2/3: Add support for flash on SDP boards Tony Lindgren
2009-08-11 14:33   ` vimal singh
2009-08-12 11:30     ` Tony Lindgren
2009-08-12 11:41       ` vimal singh
2009-08-12 11:44         ` Tony Lindgren
2009-08-11  9:54 ` [PATCH 7/9] OMAP2: compile usb-tusb6010.c Tony Lindgren
2009-08-13  9:18   ` Russell King - ARM Linux
2009-08-11  9:55 ` [PATCH 8/9] OMAP2: add board file for Nokia N800 and N810 Tony Lindgren
2009-08-13  9:15   ` Russell King - ARM Linux
2009-08-14  6:01     ` Kalle Valo
2009-08-14 11:08       ` Tony Lindgren
2009-08-15  6:28         ` Kalle Valo
2009-08-15  7:38         ` Kalle Valo
2009-08-15  7:44           ` [PATCH v2] " Kalle Valo
2009-08-16 15:03             ` Tony Lindgren
2009-08-24 12:57               ` [PATCH v2] OMAP2: add board file for Nokia N800 and N810, v3 Tony Lindgren
2009-08-11  9:57 ` [PATCH 9/9] OMAP2: n8x0: add n8x0_defconfig Tony Lindgren
2009-08-13  9:18   ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090811094631.32577.24255.stgit@localhost \
    --to=tony@atomide.com \
    --cc=kalle.valo@iki.fi \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.