****************************************************************************/
void __init dove_uart0_init(void)
{
- orion_uart0_init((unsigned long) DOVE_UART0_VIRT_BASE,
- DOVE_UART0_PHYS_BASE,
+ orion_uart0_init(DOVE_UART0_VIRT_BASE, DOVE_UART0_PHYS_BASE,
IRQ_DOVE_UART_0, tclk);
}
****************************************************************************/
void __init dove_uart1_init(void)
{
- orion_uart1_init((unsigned long) DOVE_UART1_VIRT_BASE,
- DOVE_UART1_PHYS_BASE,
+ orion_uart1_init(DOVE_UART1_VIRT_BASE, DOVE_UART1_PHYS_BASE,
IRQ_DOVE_UART_1, tclk);
}
****************************************************************************/
void __init dove_uart2_init(void)
{
- orion_uart2_init((unsigned long) DOVE_UART2_VIRT_BASE,
- DOVE_UART2_PHYS_BASE,
+ orion_uart2_init(DOVE_UART2_VIRT_BASE, DOVE_UART2_PHYS_BASE,
IRQ_DOVE_UART_2, tclk);
}
****************************************************************************/
void __init dove_uart3_init(void)
{
- orion_uart3_init((unsigned long) DOVE_UART3_VIRT_BASE,
- DOVE_UART3_PHYS_BASE,
+ orion_uart3_init(DOVE_UART3_VIRT_BASE, DOVE_UART3_PHYS_BASE,
IRQ_DOVE_UART_3, tclk);
}
void __init kirkwood_uart0_init(void)
{
- orion_uart0_init((unsigned long) UART0_VIRT_BASE,
- UART0_PHYS_BASE,
+ orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
IRQ_KIRKWOOD_UART_0, tclk);
}
****************************************************************************/
void __init kirkwood_uart1_init(void)
{
- orion_uart1_init((unsigned long) UART1_VIRT_BASE,
- UART1_PHYS_BASE,
+ orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
IRQ_KIRKWOOD_UART_1, tclk);
}
****************************************************************************/
void __init mv78xx0_uart0_init(void)
{
- orion_uart0_init((unsigned long) UART0_VIRT_BASE,
- UART0_PHYS_BASE,
+ orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
IRQ_MV78XX0_UART_0, tclk);
}
****************************************************************************/
void __init mv78xx0_uart1_init(void)
{
- orion_uart1_init((unsigned long) UART1_VIRT_BASE,
- UART1_PHYS_BASE,
+ orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
IRQ_MV78XX0_UART_1, tclk);
}
****************************************************************************/
void __init mv78xx0_uart2_init(void)
{
- orion_uart2_init((unsigned long) UART2_VIRT_BASE,
- UART2_PHYS_BASE,
+ orion_uart2_init(UART2_VIRT_BASE, UART2_PHYS_BASE,
IRQ_MV78XX0_UART_2, tclk);
}
****************************************************************************/
void __init mv78xx0_uart3_init(void)
{
- orion_uart3_init((unsigned long) UART3_VIRT_BASE,
- UART3_PHYS_BASE,
+ orion_uart3_init(UART3_VIRT_BASE, UART3_PHYS_BASE,
IRQ_MV78XX0_UART_3, tclk);
}
****************************************************************************/
void __init orion5x_uart0_init(void)
{
- orion_uart0_init((unsigned long) UART0_VIRT_BASE,
- UART0_PHYS_BASE,
+ orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
IRQ_ORION5X_UART0, tclk);
}
****************************************************************************/
void __init orion5x_uart1_init(void)
{
- orion_uart1_init((unsigned long) UART1_VIRT_BASE,
- UART1_PHYS_BASE,
+ orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
IRQ_ORION5X_UART1, tclk);
}
struct platform_device *orion_uart,
struct plat_serial8250_port *data,
struct resource *resources,
- unsigned int membase,
+ void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk)
{
data->mapbase = mapbase;
- data->membase = (void __iomem *)membase;
+ data->membase = membase;
data->irq = irq;
data->uartclk = uart_get_clk_rate(clk);
orion_uart->dev.platform_data = data;
.id = PLAT8250_DEV_PLATFORM,
};
-void __init orion_uart0_init(unsigned int membase,
+void __init orion_uart0_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk)
.id = PLAT8250_DEV_PLATFORM1,
};
-void __init orion_uart1_init(unsigned int membase,
+void __init orion_uart1_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk)
.id = PLAT8250_DEV_PLATFORM2,
};
-void __init orion_uart2_init(unsigned int membase,
+void __init orion_uart2_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk)
.id = 3,
};
-void __init orion_uart3_init(unsigned int membase,
+void __init orion_uart3_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk)
struct dsa_platform_data;
-void __init orion_uart0_init(unsigned int membase,
+void __init orion_uart0_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk);
-void __init orion_uart1_init(unsigned int membase,
+void __init orion_uart1_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk);
-void __init orion_uart2_init(unsigned int membase,
+void __init orion_uart2_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk);
-void __init orion_uart3_init(unsigned int membase,
+void __init orion_uart3_init(void __iomem *membase,
resource_size_t mapbase,
unsigned int irq,
struct clk *clk);