[U-Boot-Users] [PATCH] I2C Dummy Driver

Ricardo Ribalda Delgado ricardo.ribalda at uam.es
Thu Jul 10 23:02:36 CEST 2008


Hi Wolfgang

> What is the intention or practical use of this dummy driver?


  I developed this driver for two reasons,

     I wanted a dummy driver to test the i2c subsystem
     I wanted a way of use the ddr2 autoconfiguration for ppc440 without i2c.


>
>> +#if defined(CONFIG_DUMMY_I2C)
>> +u8 i2c_dummy_buffer[256]={0x80,0x8,0x8,0x0D,0x0A,0x60,0x40,0x0,0x5,0x3D,0x50,0x0,0x82,0x10,0x0,0x0,0x0C,0x4,0x18,0x1,0x4,0x0,0x1,0x50,0x50,0x0,0x0,0x3C,0x28,0x3C,0x2D,0x40,0x25,0x37,0x10,0x22,0x3C,0x1E,0x1E,0x0,0x0,0x3C,0x69,0x80,0x1E,0x28,0x0,0x0,0x0,
>> 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x12,0xC9,0x2C,'0','0','0','0','0','0','0',0x0,'4','H','T','F','3','2','6','4','H','Y','-','5','3','E','D','3',0x3,0x0,0x0,0x0,0x0};
>
> Line way too long.
>
> Maybe you also want to explain where these magic data is coming from
> or what it means?

It is the identification data of my ddr2 memory.



I will redo this patch and sent it again if you consider it useful for
the mainline.


     Best Regards and thanks for your comments


> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "Plan to throw one away.  You will anyway."
>                              - Fred Brooks, "The Mythical Man Month"
>



-- 
Ricardo Ribalda
http://www.eps.uam.es/~rribalda/




More information about the U-Boot mailing list