Re: serial console: platform_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thank you for your prompt response -- I really appreciate it.


On Tue, 2006-12-05 at 22:42 +0300, Sergei Shtylyov wrote:
> > 3) control goes into the serial8250_probe function and assigns
> values
> > from the plat_serial8250_port encm3_via_uart_data to the port..so
> what
> > is the basic difference between registration of "probe device"
> versus
> > "platform bus" devices in the 2.6 kernel?
> 

>     I'm not sure I follow you here.
What I meant was, what was the basis for the implementation of
platform_device and platform_init functions in 2.6?

By my understanding the way it worked in 2.4 was by the device probing
functions that would allocate memory, io ports etc..

m working on making the changes you suggested --

without the addition of the platform_device and other structures, the
serial console is never detected -- I never get a msg at boot time that
reads 

serial8250: ttyS0 at I/O 0x3f8 (irq = whatever) is a 16550A

so I think i might need these routines

Also, the Southbridge interrupts are assigned interrupt number:
AU1000_GPIO_0..and I have included this as below:


> static struct plat_serial8250_port encm3_via_uart_data[] = {
>                 {
>                         .mapbase        = 0x3f8,
>                         .irq            = AU1000_GPIO_0,
>                         .flags          = UPF_SHARE_IRQ, 
>                         .iotype         = UPIO_PORT,
>                         .regshift       = 1,
>                         .uartclk        = 1843200,
> 
>                   },
>                         { },
> };

Thanks again!
Ashlesha.



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux