Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ingenic add some comments
details: https://anonhg.NetBSD.org/src/rev/877748df2a6c
branches: trunk
changeset: 341007:877748df2a6c
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Oct 14 15:44:57 2015 +0000
description:
add some comments
diffstat:
sys/arch/mips/ingenic/ingenic_efuse.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 15df2df124dd -r 877748df2a6c sys/arch/mips/ingenic/ingenic_efuse.c
--- a/sys/arch/mips/ingenic/ingenic_efuse.c Wed Oct 14 15:20:44 2015 +0000
+++ b/sys/arch/mips/ingenic/ingenic_efuse.c Wed Oct 14 15:44:57 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ingenic_efuse.c,v 1.2 2015/10/08 18:20:31 macallan Exp $ */
+/* $NetBSD: ingenic_efuse.c,v 1.3 2015/10/14 15:44:57 macallan Exp $ */
/*-
* Copyright (c) 2015 Michael Lorenz
@@ -26,8 +26,15 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * a driver for the 'EFUSE Slave Interface' found on JZ4780
+ * more or less 8kBit of non-volatile storage containing things like MAC
+ * address, various encryption keys, boot code, serial numbers and parameters.
+ * Using it only to get the MAC address for now.
+ */
+
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ingenic_efuse.c,v 1.2 2015/10/08 18:20:31 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ingenic_efuse.c,v 1.3 2015/10/14 15:44:57 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -114,6 +121,7 @@
uint32_t abuf;
int i;
+ /* default, just in case */
bus_space_write_4(sc->sc_iot, sc->sc_ioh, JZ_EFUCFG, 0x00040000);
bus_space_write_4(sc->sc_iot, sc->sc_ioh, JZ_EFUCTRL,
JZ_EFUSE_READ |
@@ -127,4 +135,4 @@
memcpy(buf, &abuf, 4);
buf += 4;
}
-}
\ No newline at end of file
+}
Home |
Main Index |
Thread Index |
Old Index