Re: [U-Boot] How does Driver Model UART work?

2014-10-04 Thread Simon Glass
Hi Masahiro, On 4 October 2014 06:57, Masahiro YAMADA wrote: > > Hi Simon, > > > > 2014-10-03 22:51 GMT+09:00 Simon Glass : > > Hi Masahiro, > > > > On 3 October 2014 07:04, Masahiro Yamada wrote: > >> Simon, > >> > >> > >> > >> I am totally being confused. > >> > >> > >> > >> As far as I looked

Re: [U-Boot] How does Driver Model UART work?

2014-10-04 Thread Masahiro YAMADA
Hi Simon, 2014-10-03 22:51 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 3 October 2014 07:04, Masahiro Yamada wrote: >> Simon, >> >> >> >> I am totally being confused. >> >> >> >> As far as I looked at the dm code, >> the private data is calloc'ed in device_probe() function >> >> if (d

Re: [U-Boot] How does Driver Model UART work?

2014-10-03 Thread Simon Glass
Hi Masahiro, On 3 October 2014 07:04, Masahiro Yamada wrote: > Simon, > > > > I am totally being confused. > > > > As far as I looked at the dm code, > the private data is calloc'ed in device_probe() function > > if (drv->priv_auto_alloc_size) { > dev->priv = calloc(1, drv

Re: [U-Boot] How does Driver Model UART work?

2014-10-03 Thread Masahiro Yamada
Simon, I am totally being confused. As far as I looked at the dm code, the private data is calloc'ed in device_probe() function if (drv->priv_auto_alloc_size) { dev->priv = calloc(1, drv->priv_auto_alloc_size); if (!dev->priv) {

[U-Boot] How does Driver Model UART work?

2014-10-03 Thread Masahiro Yamada
Simon, Now I am seeing driver/serial/serial_tegra.c U_BOOT_DRIVER(serial_ns16550) = { .name = "serial_tegra20", .id = UCLASS_SERIAL, .of_match = tegra_serial_ids, .ofdata_to_platdata = tegra_serial_ofdata_to_platdata, .platdata_auto_alloc_size = siz