summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-04-07 12:18:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-04-07 12:18:05 +0200
commit9c7d282579f47521adb9381fbfa1b41196a6d9af (patch)
treecd916b5b99419e388a32ea2262dcec489d0837da /arch/sandbox/board/console.c
parent31b5112b7368b881f7fc958110140614a2edd2f8 (diff)
downloadbarebox-9c7d282579f47521adb9381fbfa1b41196a6d9af.tar.gz
barebox-9c7d282579f47521adb9381fbfa1b41196a6d9af.tar.xz
[general] Move include/configs/* to board/*/config.h
Diffstat (limited to 'arch/sandbox/board/console.c')
-rw-r--r--arch/sandbox/board/console.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/arch/sandbox/board/console.c b/arch/sandbox/board/console.c
deleted file mode 100644
index 0f54e19231..0000000000
--- a/arch/sandbox/board/console.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * console.c - register a console device
- *
- * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <common.h>
-#include <driver.h>
-#include <asm/arch/linux.h>
-#include <xfuncs.h>
-
-int u_boot_register_console(char *name_template, int stdinfd, int stdoutfd)
-{
- struct device_d *dev;
- struct linux_console_data *data;
-
- dev = xzalloc(sizeof(struct device_d) + sizeof(struct linux_console_data));
-
- data = (struct linux_console_data *)(dev + 1);
-
- dev->platform_data = data;
-
- strcpy(dev->name, "console");
-
-
- if (stdinfd >= 0)
- data->flags = CONSOLE_STDIN;
- if (stdoutfd >= 0)
- data->flags |= CONSOLE_STDOUT | CONSOLE_STDERR;
-
- data->stdoutfd = stdoutfd;
- data->stdinfd = stdinfd;
-
- get_free_deviceid(dev->id, name_template);
- dev->type = DEVICE_TYPE_CONSOLE;
-
- return register_device(dev);
-}
-