Thread (18 messages) flat view 18 messages, 5 authors, 2005-08-23

Re: [PATCH] Use platform device for 8250 registration

From: Kumar Gala <hidden>
Date: 2005-08-17 13:54:47

Yes, that's precisely what I meant. Just remove it from the list in
serial.h and as Ben says, instantiating a platform device is easy.

static struct plat_serial8250_port my_serial_ports[] = {
    {
        .uartclk = 115200*16,
        .iobase = 0x2f8,
        .irq = 3,
        .flags = ASYNC_BOOT_AUTOCONF;
    },
};

static struct platform_device my_serial_device = {
    .name = "serial8250",
    .dev.platform_data = my_serial_ports,
};

  ... platform_device_register(&my_serial_device);
If we are going forward with this change for OF, can we kill  
pc_serial.h and just move the default BASE_BAUD and RS_TABLE size  
into serial.h.

- kumar
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help