9
0
Fork 0

OWHW: Support AT24CM02 EEPROM

This commit is contained in:
Harald Welte 2015-11-01 23:19:08 +01:00
parent 4d1c656aa7
commit 4e4776272a
2 changed files with 3 additions and 2 deletions

View File

@ -243,8 +243,8 @@
&i2c0 {
eeprom_baseboard: 24cm02@50 {
status = "okay";
compatible = "atmel,24c1024";
pagesize = <8>;
compatible = "atmel,24cm02";
pagesize = <256>;
reg = <0x50>;
wp-gpios = <&gpio1 19 0>;
#address-cells = <1>;

View File

@ -113,6 +113,7 @@ static struct platform_device_id at24_ids[] = {
{ "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) },
{ "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) },
{ "24c1024", AT24_DEVICE_MAGIC(1048576 / 8, AT24_FLAG_ADDR16) },
{ "24cm02", AT24_DEVICE_MAGIC(2097152 / 8, AT24_FLAG_ADDR16) },
{ "at24", 0 },
{ /* END OF LIST */ }
};