]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
misc: i2c_eeprom: Add compatible for AT24MAC402
authorWenyou Yang <wenyou.yang@microchip.com>
Mon, 31 Jul 2017 03:25:31 +0000 (11:25 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 12 Sep 2017 21:58:54 +0000 (17:58 -0400)
Add the new compatible "atmel,24mac402" to accommodate AT24MAC402.
The AT24MAC402 is a 2K Serial EEPROM and the 2-Kbit memory array
is internally organized as 16 pages of 16 bytes of EEPROM each.
The 48-bit EUI address in the AT24MAC402 are located in the extended
memory block.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
drivers/misc/i2c_eeprom.c

index b2de3dffc63b5d30420515d6ce606121ef06ad8d..9a77c6e164c0ee4c2fcafe46ea570c6a6054ddc7 100644 (file)
@@ -72,6 +72,7 @@ static const struct udevice_id i2c_eeprom_std_ids[] = {
        { .compatible = "atmel,24c04", .data = 4 },
        { .compatible = "atmel,24c08a", .data = 4 },
        { .compatible = "atmel,24c16a", .data = 4 },
+       { .compatible = "atmel,24mac402", .data = 4 },
        { .compatible = "atmel,24c32", .data = 5 },
        { .compatible = "atmel,24c64", .data = 5 },
        { .compatible = "atmel,24c128", .data = 6 },