summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2708
diff options
context:
space:
mode:
authorJakub Kicinski <kubakici@wp.pl>2015-03-02 16:34:37 +0100
committerpopcornmix <popcornmix@gmail.com>2015-05-18 14:12:20 +0100
commit75acfa28e5a959acbd3238331baef8648bdee73c (patch)
tree8cba2e0602abefbc498c0a09c4f51c52a8f53179 /arch/arm/mach-bcm2708
parent4c81262042ac9062d3670e0b672051479db1acf6 (diff)
downloadlinux-75acfa28e5a959acbd3238331baef8648bdee73c.tar.gz
bcm2708: fix uart1 parameters
System clock is 250MHz, but the device uses a non-standard oversampling rate (8 instead of 16) hence the clock rate has to be multiplied by 16/8 = 2. Currently the clock rate seems to be divided by 2. Also correct the .type and .flags. Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Diffstat (limited to 'arch/arm/mach-bcm2708')
-rw-r--r--arch/arm/mach-bcm2708/bcm2708.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
index 16ba248fe9b8..b848e4a1aa67 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -312,11 +312,12 @@ static struct plat_serial8250_port bcm2708_uart1_platform_data[] = {
{
.mapbase = UART1_BASE + 0x40,
.irq = IRQ_AUX,
- .uartclk = 125000000,
+ .uartclk = 500000000,
.regshift = 2,
.iotype = UPIO_MEM,
- .flags = UPF_FIXED_TYPE | UPF_IOREMAP | UPF_SKIP_TEST,
- .type = PORT_8250,
+ .flags = UPF_SHARE_IRQ | UPF_FIXED_TYPE | UPF_FIXED_PORT |
+ UPF_IOREMAP | UPF_SKIP_TEST,
+ .type = PORT_16550,
},
{},
};