2014-06-23 05:40:39 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright 2014 Rockchip Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2014-10-20 22:14:55 +02:00
|
|
|
#include <console/uart.h>
|
|
|
|
#include <stdint.h>
|
2014-06-23 05:40:39 +02:00
|
|
|
|
2016-04-07 20:16:21 +02:00
|
|
|
unsigned int uart_platform_refclk(void)
|
2014-06-23 05:40:39 +02:00
|
|
|
{
|
2016-04-07 20:16:21 +02:00
|
|
|
return 23040000;
|
2014-06-23 05:40:39 +02:00
|
|
|
}
|
|
|
|
|
2016-04-07 20:16:21 +02:00
|
|
|
uintptr_t uart_platform_base(int idx)
|
2014-06-23 05:40:39 +02:00
|
|
|
{
|
2016-04-07 20:16:21 +02:00
|
|
|
return CONFIG_CONSOLE_SERIAL_UART_ADDRESS;
|
2014-06-23 05:40:39 +02:00
|
|
|
}
|