Angel Pons | bbc99cf | 2020-04-04 18:51:23 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 2 | |
Julius Werner | 7a453eb | 2014-10-20 13:14:55 -0700 | [diff] [blame] | 3 | #include <console/uart.h> |
Julius Werner | 6d643cf | 2017-06-21 15:38:51 -0700 | [diff] [blame] | 4 | #include <soc/clock.h> |
Julius Werner | 7a453eb | 2014-10-20 13:14:55 -0700 | [diff] [blame] | 5 | #include <stdint.h> |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 6 | |
Patrick Georgi | d3ae4f1 | 2016-04-07 20:16:21 +0200 | [diff] [blame] | 7 | unsigned int uart_platform_refclk(void) |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 8 | { |
Julius Werner | 6d643cf | 2017-06-21 15:38:51 -0700 | [diff] [blame] | 9 | return OSC_HZ; |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 10 | } |
11 | |||||
Felix Held | e3a1247 | 2020-09-11 15:47:09 +0200 | [diff] [blame] | 12 | uintptr_t uart_platform_base(unsigned int idx) |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 13 | { |
Patrick Georgi | d3ae4f1 | 2016-04-07 20:16:21 +0200 | [diff] [blame] | 14 | return CONFIG_CONSOLE_SERIAL_UART_ADDRESS; |
jinkun.hong | ac490b8 | 2014-06-22 20:40:39 -0700 | [diff] [blame] | 15 | } |