mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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>
This commit is contained in:
committed by
popcornmix
parent
4c81262042
commit
75acfa28e5
@@ -312,11 +312,12 @@ static struct plat_serial8250_port bcm2708_uart1_platform_data[] = {
|
|||||||
{
|
{
|
||||||
.mapbase = UART1_BASE + 0x40,
|
.mapbase = UART1_BASE + 0x40,
|
||||||
.irq = IRQ_AUX,
|
.irq = IRQ_AUX,
|
||||||
.uartclk = 125000000,
|
.uartclk = 500000000,
|
||||||
.regshift = 2,
|
.regshift = 2,
|
||||||
.iotype = UPIO_MEM,
|
.iotype = UPIO_MEM,
|
||||||
.flags = UPF_FIXED_TYPE | UPF_IOREMAP | UPF_SKIP_TEST,
|
.flags = UPF_SHARE_IRQ | UPF_FIXED_TYPE | UPF_FIXED_PORT |
|
||||||
.type = PORT_8250,
|
UPF_IOREMAP | UPF_SKIP_TEST,
|
||||||
|
.type = PORT_16550,
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user