Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Support more than 128Kbit model.



details:   https://anonhg.NetBSD.org/src/rev/0684fc4a3561
branches:  trunk
changeset: 967058:0684fc4a3561
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Fri Nov 29 04:59:15 2019 +0000

description:
Support more than 128Kbit model.

diffstat:

 sys/dev/i2c/at24cxx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f265ef765c70 -r 0684fc4a3561 sys/dev/i2c/at24cxx.c
--- a/sys/dev/i2c/at24cxx.c     Fri Nov 29 00:36:22 2019 +0000
+++ b/sys/dev/i2c/at24cxx.c     Fri Nov 29 04:59:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at24cxx.c,v 1.32 2019/10/27 19:10:38 jmcneill Exp $    */
+/*     $NetBSD: at24cxx.c,v 1.33 2019/11/29 04:59:15 hkenken Exp $     */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.32 2019/10/27 19:10:38 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.33 2019/11/29 04:59:15 hkenken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -67,7 +67,7 @@
 #define        AT24CXX_ADDR            0x50
 
 #define        AT24CXX_WRITE_CYCLE_MS  10
-#define        AT24CXX_ADDR_HI(a)      (((a) >> 8) & 0x1f)
+#define        AT24CXX_ADDR_HI(a)      (((a) >> 8) & 0xff)
 #define        AT24CXX_ADDR_LO(a)      ((a) & 0xff)
 
 #include "seeprom.h"



Home | Main Index | Thread Index | Old Index