Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _ASM_ARC_SERIAL_H |
| 10 | #define _ASM_ARC_SERIAL_H |
| 11 | |
| 12 | /* |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 13 | * early 8250 (now earlycon) requires BASE_BAUD to be defined in this header. |
| 14 | * However to still determine it dynamically (for multi-platform images) |
| 15 | * we do this in a helper by parsing the FDT early |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 16 | */ |
| 17 | |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 18 | extern unsigned int __init arc_early_base_baud(void); |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 19 | |
Vineet Gupta | ffb7fcd | 2014-10-28 15:04:05 +0530 | [diff] [blame] | 20 | #define BASE_BAUD arc_early_base_baud() |
Christian Ruppert | 072eb69 | 2013-04-12 08:40:59 +0200 | [diff] [blame] | 21 | |
Vineet Gupta | 0208c96 | 2013-01-23 17:24:17 +0530 | [diff] [blame] | 22 | #endif /* _ASM_ARC_SERIAL_H */ |