/* * 8250 UART probe driver for the BCM47XX platforms * Author: Aurelien Jarno * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net> */ #include <linux/init.h> #include <linux/serial.h> #include <linux/serial_8250.h> #include <linux/ssb/ssb.h> #include <bcm47xx.h> static struct plat_serial8250_port uart8250_data[5]; static struct platform_device uart8250_device = { .name = "serial8250", .id = PLAT8250_DEV_PLATFORM, .dev = { .platform_data = uart8250_data, }, }; #ifdef CONFIG_BCM47XX_SSB
static int __init uart8250_init_ssb(void) { int i; struct ssb_mipscore *mcore = &(bcm47xx_bus.ssb.mipscore); memset(&uart8250_data, 0, sizeof(uart8250_data)); for (i = 0; i < mcore->nr_serial_ports && i < ARRAY_SIZE(uart8250_data) - 1; i++) { struct plat_serial8250_port *p = &(uart8250_data[i]); struct ssb_serial_port *ssb_port = &(mcore->serial_ports[i]); p->mapbase = (unsigned int)ssb_port->regs; p->membase = (void *)ssb_port->regs; p->irq = ssb_port->irq + 2; p->uartclk = ssb_port->baud_base; p->regshift = ssb_port->reg_shift; p->iotype = UPIO_MEM; p->flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; } return platform_device_register(&uart8250_device); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Aurelien Jarno | 151 | 92.07% | 1 | 33.33% |
Hauke Mehrtens | 13 | 7.93% | 2 | 66.67% |
Total | 164 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 166 | 100.00% | 2 | 100.00% |
Total | 166 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 43 | 100.00% | 3 | 100.00% |
Total | 43 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Hauke Mehrtens | 232 | 52.85% | 4 | 66.67% |
Aurelien Jarno | 205 | 46.70% | 1 | 16.67% |
Paul Gortmaker | 2 | 0.46% | 1 | 16.67% |
Total | 439 | 100.00% | 6 | 100.00% |