Ronald G. Minnich | 66bea52 | 2016-10-25 19:11:07 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2016 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | #include <types.h> |
| 17 | #include <console/uart.h> |
| 18 | #include <arch/io.h> |
| 19 | #include <boot/coreboot_tables.h> |
Ronald G. Minnich | 66bea52 | 2016-10-25 19:11:07 -0700 | [diff] [blame] | 20 | |
| 21 | uintptr_t uart_platform_base(int idx) |
| 22 | { |
| 23 | return (uintptr_t) 0x42000000; |
| 24 | } |
| 25 | |
Jonathan Neuschäfer | 7ca9b8a | 2016-10-29 21:48:18 +0200 | [diff] [blame] | 26 | /* The clock which the UART is based on */ |
Ronald G. Minnich | 66bea52 | 2016-10-25 19:11:07 -0700 | [diff] [blame] | 27 | unsigned int uart_platform_refclk(void) |
| 28 | { |
Jonathan Neuschäfer | 7ca9b8a | 2016-10-29 21:48:18 +0200 | [diff] [blame] | 29 | return 25 * MHz; |
Ronald G. Minnich | 66bea52 | 2016-10-25 19:11:07 -0700 | [diff] [blame] | 30 | } |