summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/toshiba-ac100
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2013-04-12 12:28:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-14 10:45:29 +0200
commit55d9b65d48a86e6b16271ce05a4acb111dc2fc34 (patch)
tree7e044e3dd50c812c3d5f5f6269a500c93d229032 /arch/arm/boards/toshiba-ac100
parent789c55b8bda0fa3b41a96f1ac8c62ff4ba2ba89e (diff)
downloadbarebox-55d9b65d48a86e6b16271ce05a4acb111dc2fc34.tar.gz
barebox-55d9b65d48a86e6b16271ce05a4acb111dc2fc34.tar.xz
tegra: add generic debug UART support
ODMdata tells us which UART to use for debugging purposes. This is agreed upon in both the upstream Linux kernel and U-Boot, so do it the same way in barebox. Signed-off-by: Lucas Stach <dev@lynxeye.de> Tested-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/toshiba-ac100')
-rw-r--r--arch/arm/boards/toshiba-ac100/Makefile1
-rw-r--r--arch/arm/boards/toshiba-ac100/serial.c39
2 files changed, 0 insertions, 40 deletions
diff --git a/arch/arm/boards/toshiba-ac100/Makefile b/arch/arm/boards/toshiba-ac100/Makefile
index 9e14763111..dcfc2937d3 100644
--- a/arch/arm/boards/toshiba-ac100/Makefile
+++ b/arch/arm/boards/toshiba-ac100/Makefile
@@ -1,2 +1 @@
obj-y += board.o
-obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
diff --git a/arch/arm/boards/toshiba-ac100/serial.c b/arch/arm/boards/toshiba-ac100/serial.c
deleted file mode 100644
index 880270ddde..0000000000
--- a/arch/arm/boards/toshiba-ac100/serial.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2011 Antony Pavlov <antonynpavlov@gmail.com>
- *
- * This file is part of barebox.
- * See file CREDITS for list of people who contributed to this project.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <common.h>
-#include <types.h>
-#include <driver.h>
-#include <init.h>
-#include <ns16550.h>
-#include <asm/io.h>
-#include <asm/common.h>
-#include <mach/iomap.h>
-
-static struct NS16550_plat serial_plat = {
- .clock = 0x75 * 115200 * 16 /* MODE_X_DIV */,
- .shift = 2,
-};
-
-static int ac100_serial_console_init(void)
-{
- /* Register the serial port */
- add_ns16550_device(DEVICE_ID_DYNAMIC, TEGRA_UARTA_BASE, 8 << serial_plat.shift,
- IORESOURCE_MEM_8BIT, &serial_plat);
-
- return 0;
-}
-console_initcall(ac100_serial_console_init);