blob: a10a907919764811678f994819f053efb379a9e8 [file] [log] [blame]
Tobias Klauser6b7d8f82010-05-05 10:35:23 +02001/*
2 * altera_uart.h -- Altera UART driver defines.
3 */
4
5#ifndef __ALTUART_H
6#define __ALTUART_H
7
Anton Vorontsov5d89a482010-10-01 17:22:55 +04008#include <linux/init.h>
9
Tobias Klauser6b7d8f82010-05-05 10:35:23 +020010struct altera_uart_platform_uart {
11 unsigned long mapbase; /* Physical address base */
12 unsigned int irq; /* Interrupt vector */
13 unsigned int uartclk; /* UART clock rate */
Anton Vorontsov0d426ed2010-10-01 17:21:54 +040014 unsigned int bus_shift; /* Bus shift (address stride) */
Tobias Klauser6b7d8f82010-05-05 10:35:23 +020015};
16
Anton Vorontsov5d89a482010-10-01 17:22:55 +040017int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp);
18
Tobias Klauser6b7d8f82010-05-05 10:35:23 +020019#endif /* __ALTUART_H */