Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/spi Add support for Winbond W25Q128.V (128mb) chips,...
details: https://anonhg.NetBSD.org/src/rev/a566651ae7fa
branches: trunk
changeset: 1003230:a566651ae7fa
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Sep 05 16:17:48 2019 +0000
description:
Add support for Winbond W25Q128.V (128mb) chips, as found on newer lime2-emmc
boards.
While there fix a missing \n in dmesg.
diffstat:
sys/dev/spi/m25p.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 5bdacac639f5 -r a566651ae7fa sys/dev/spi/m25p.c
--- a/sys/dev/spi/m25p.c Thu Sep 05 16:15:57 2019 +0000
+++ b/sys/dev/spi/m25p.c Thu Sep 05 16:17:48 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: m25p.c,v 1.11 2019/08/13 17:11:32 tnn Exp $ */
+/* $NetBSD: m25p.c,v 1.12 2019/09/05 16:17:48 bouyer Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.11 2019/08/13 17:11:32 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.12 2019/09/05 16:17:48 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -110,6 +110,7 @@
{ 0x13, 0xEF, 0x4014, "Winbond W25Q80.V", 1024, 64 }, /* 8Mbit */
{ 0x14, 0xEF, 0x4015, "Winbond W25Q16.V", 2048, 64 }, /* 16Mbit */
{ 0x15, 0xEF, 0x4016, "Winbond W25Q32.V", 4096, 64 }, /* 32Mbit */
+ { 0x15, 0xEF, 0x4018, "Winbond W25Q128.V", 16384, 64 }, /* 128Mbit */
{ 0x15, 0xEF, 0x6016, "Winbond W25Q32.W", 4096, 64 }, /* 32Mbit */
{ 0 }
};
@@ -144,6 +145,9 @@
sc->sc_sh = sa->sa_handle;
+ aprint_normal("\n");
+ aprint_naive("\n");
+
config_interrupts(self, m25p_doattach);
}
Home |
Main Index |
Thread Index |
Old Index