timbuart.c (a8a93c6f9922c0d70459668c1300b226cb3918ab) timbuart.c (479e9b94fdce7bc46f669831012fc12f56696fd7)
1/*
2 * timbuart.c timberdale FPGA UART driver
3 * Copyright (c) 2009 Intel Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

--- 259 unchanged lines hidden (view full) ---

268
269static void timbuart_shutdown(struct uart_port *port)
270{
271 struct timbuart_port *uart =
272 container_of(port, struct timbuart_port, port);
273 dev_dbg(port->dev, "%s\n", __func__);
274 free_irq(port->irq, uart);
275 iowrite32(0, port->membase + TIMBUART_IER);
1/*
2 * timbuart.c timberdale FPGA UART driver
3 * Copyright (c) 2009 Intel Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

--- 259 unchanged lines hidden (view full) ---

268
269static void timbuart_shutdown(struct uart_port *port)
270{
271 struct timbuart_port *uart =
272 container_of(port, struct timbuart_port, port);
273 dev_dbg(port->dev, "%s\n", __func__);
274 free_irq(port->irq, uart);
275 iowrite32(0, port->membase + TIMBUART_IER);
276
277 timbuart_flush_buffer(port);
276}
277
278static int get_bindex(int baud)
279{
280 int i;
281
282 for (i = 0; i < ARRAY_SIZE(baudrates); i++)
283 if (baud <= baudrates[i])

--- 212 unchanged lines hidden (view full) ---

496 kfree(uart);
497
498 return 0;
499}
500
501static struct platform_driver timbuart_platform_driver = {
502 .driver = {
503 .name = "timb-uart",
278}
279
280static int get_bindex(int baud)
281{
282 int i;
283
284 for (i = 0; i < ARRAY_SIZE(baudrates); i++)
285 if (baud <= baudrates[i])

--- 212 unchanged lines hidden (view full) ---

498 kfree(uart);
499
500 return 0;
501}
502
503static struct platform_driver timbuart_platform_driver = {
504 .driver = {
505 .name = "timb-uart",
506 .owner = THIS_MODULE,
504 },
505 .probe = timbuart_probe,
506 .remove = timbuart_remove,
507};
508
509module_platform_driver(timbuart_platform_driver);
510
511MODULE_DESCRIPTION("Timberdale UART driver");
512MODULE_LICENSE("GPL v2");
513MODULE_ALIAS("platform:timb-uart");
514
507 },
508 .probe = timbuart_probe,
509 .remove = timbuart_remove,
510};
511
512module_platform_driver(timbuart_platform_driver);
513
514MODULE_DESCRIPTION("Timberdale UART driver");
515MODULE_LICENSE("GPL v2");
516MODULE_ALIAS("platform:timb-uart");
517