summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-12-31 17:56:22 -0800
committerRonald G. Minnich <rminnich@gmail.com>2013-01-04 01:45:26 +0100
commit858b65028e02d4e2460a9f6033aec570006b9d0b (patch)
tree38c7d1b713beee4f673a0515269acd315d59d01d /src
parent801467f30ad08a69fa4a1ce84b5aeddabecd1185 (diff)
downloadcoreboot-858b65028e02d4e2460a9f6033aec570006b9d0b.tar.xz
cleanup some exynos5250 uart code
This just cleans out some unused headers and tidies up the early serial code. TODO: Clean-up or replace FDT code, make "base_port" easier to configure. A bit of cleanup based on earlier patches. Change-Id: Ie77ee6d4935346e0053c09252055662f1a45d5f5 Signed-off-by: David Hendricks <dhendrix@chromium.org> Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/2084 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r--src/cpu/samsung/exynos5250/uart.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/cpu/samsung/exynos5250/uart.c b/src/cpu/samsung/exynos5250/uart.c
index 2d7bf38628..b219f48632 100644
--- a/src/cpu/samsung/exynos5250/uart.c
+++ b/src/cpu/samsung/exynos5250/uart.c
@@ -21,15 +21,9 @@
*
*/
-//#include <common.h>
-//#include <linux/compiler.h>
#include <types.h>
#include <uart.h>
#include <arch/io.h>
-//#include <asm/arch-exynos/spl.h>
-//#include <asm/global_data.h>
-//#include <fdtdec.h>
-//#include <serial.h>
#include <console/console.h> /* for __console definition */
@@ -180,8 +174,6 @@ static unsigned char exynos5_uart_rx_byte(void)
/*
* Output a single byte to the serial port.
*/
-/* FIXME: ordering of arguments for coreboot v. u-boot for tx_byte */
-//static void exynos5_tx_byte(const char c, const int dev_index)
static void exynos5_uart_tx_byte(unsigned char data)
{
// struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
@@ -198,14 +190,6 @@ static void exynos5_uart_tx_byte(unsigned char data)
#ifndef __PRE_RAM__
static const struct console_driver exynos5_uart_console __console = {
-//static const struct console_driver exynos5_uart_console __console = {
-#if 0
- void (*init)(void);
- void (*tx_byte)(unsigned char byte);
- void (*tx_flush)(void);
- unsigned char (*rx_byte)(void);
- int (*tst_byte)(void);
-#endif
.init = exynos5_init_dev,
.tx_byte = exynos5_uart_tx_byte,
// .tx_flush = exynos5_uart_tx_flush,
@@ -213,11 +197,6 @@ static const struct console_driver exynos5_uart_console __console = {
// .tst_byte = exynos5_uart_tst_byte,
};
#else
-/* for romstage_console... */
-//void (*uart_init)(void) = exynos5_init_dev;
-//unsigned char (*uart_rx_byte)(unsigned base_port) = exynos5_uart_rx_byte;
-//void (*uart_tx_byte)(unsigned base_port, unsigned char data) = exynos5_uart_tx_byte;
-/* FIXME: trivial wrappers */
void uart_init(void)
{
exynos5_init_dev();