Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_ARC_SERIAL_H |
| 7 | #define _ASM_ARC_SERIAL_H |
| 8 | |
| 9 | /* |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 10 | * early 8250 (now earlycon) requires BASE_BAUD to be defined in this header. |
| 11 | * However to still determine it dynamically (for multi-platform images) |
| 12 | * we do this in a helper by parsing the FDT early |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 13 | */ |
| 14 | |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 15 | extern unsigned int __init arc_early_base_baud(void); |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 16 | |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 17 | #define BASE_BAUD arc_early_base_baud() |
Christian Ruppert | 072eb69 | 2013-04-12 08:40:59 +0200 | [diff] [blame] | 18 | |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 19 | #endif /* _ASM_ARC_SERIAL_H */ |