Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add "i2c-at34c02" AT34C02 EEPROM. This is compatibl...
details: https://anonhg.NetBSD.org/src/rev/0b8665b70aa1
branches: trunk
changeset: 790857:0b8665b70aa1
user: jdc <jdc%NetBSD.org@localhost>
date: Fri Oct 25 14:32:10 2013 +0000
description:
Add "i2c-at34c02" AT34C02 EEPROM. This is compatible with the AT24C02
EEPROM, apart from software write protection (not supported in our driver).
diffstat:
sys/dev/i2c/at24cxx.c | 5 +++--
sys/dev/ofw/ofw_subr.c | 6 ++++--
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (53 lines):
diff -r 8f05de5194a7 -r 0b8665b70aa1 sys/dev/i2c/at24cxx.c
--- a/sys/dev/i2c/at24cxx.c Fri Oct 25 14:30:21 2013 +0000
+++ b/sys/dev/i2c/at24cxx.c Fri Oct 25 14:32:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $ */
+/* $NetBSD: at24cxx.c,v 1.16 2013/10/25 14:32:10 jdc Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.16 2013/10/25 14:32:10 jdc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -102,6 +102,7 @@
static const char * seeprom_compats[] = {
"i2c-at24c64",
+ "i2c-at34c02",
NULL
};
diff -r 8f05de5194a7 -r 0b8665b70aa1 sys/dev/ofw/ofw_subr.c
--- a/sys/dev/ofw/ofw_subr.c Fri Oct 25 14:30:21 2013 +0000
+++ b/sys/dev/ofw/ofw_subr.c Fri Oct 25 14:32:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $ */
+/* $NetBSD: ofw_subr.c,v 1.23 2013/10/25 14:32:10 jdc Exp $ */
/*
* Copyright 1998
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.23 2013/10/25 14:32:10 jdc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -384,6 +384,8 @@
/* Set size for EEPROM's that we know about */
if (strcmp(compatible, "i2c-at24c64") == 0)
prop_dictionary_set_uint32(dev, "size", 8192);
+ if (strcmp(compatible, "i2c-at34c02") == 0)
+ prop_dictionary_set_uint32(dev, "size", 256);
}
prop_array_add(array, dev);
prop_object_release(dev);
Home |
Main Index |
Thread Index |
Old Index