svn commit: r301632 - in head/sys/dev: flash mii
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jun 8 14:22:18 UTC 2016
Author: bapt
Date: Wed Jun 8 14:22:16 2016
New Revision: 301632
URL: https://svnweb.freebsd.org/changeset/base/301632
Log:
Add support for Atmel at25df641 flash
Submitted by: Grégory Soutadé <soutade at gmail.com> (via github pull request)
Modified:
head/sys/dev/flash/mx25l.c
head/sys/dev/mii/miidevs
head/sys/dev/mii/smscphy.c
Modified: head/sys/dev/flash/mx25l.c
==============================================================================
--- head/sys/dev/flash/mx25l.c Wed Jun 8 14:21:48 2016 (r301631)
+++ head/sys/dev/flash/mx25l.c Wed Jun 8 14:22:16 2016 (r301632)
@@ -130,6 +130,9 @@ struct mx25l_flash_ident flash_devices[]
{ "w25q64bv", 0xef, 0x4017, 64 * 1024, 128, FL_ERASE_4K },
{ "w25q128", 0xef, 0x4018, 64 * 1024, 256, FL_ERASE_4K },
{ "w25q256", 0xef, 0x4019, 64 * 1024, 512, FL_ERASE_4K },
+
+ /* Atmel */
+ { "at25df641", 0x1f, 0x4800, 64 * 1024, 128, FL_ERASE_4K },
};
static uint8_t
Modified: head/sys/dev/mii/miidevs
==============================================================================
--- head/sys/dev/mii/miidevs Wed Jun 8 14:21:48 2016 (r301631)
+++ head/sys/dev/mii/miidevs Wed Jun 8 14:22:16 2016 (r301632)
@@ -343,3 +343,4 @@ model xxXAQTI XMACII 0x0000 XaQti Corp.
/* SMC */
model SMC LAN8710A 0x000F SMC LAN8710A 10/100 interface
+model SMC LAN8700 0x000C SMC LAN8700 10/100 interface
Modified: head/sys/dev/mii/smscphy.c
==============================================================================
--- head/sys/dev/mii/smscphy.c Wed Jun 8 14:21:48 2016 (r301631)
+++ head/sys/dev/mii/smscphy.c Wed Jun 8 14:22:16 2016 (r301632)
@@ -77,6 +77,7 @@ DRIVER_MODULE(smscphy, miibus, smscphy_d
static const struct mii_phydesc smscphys[] = {
MII_PHY_DESC(SMC, LAN8710A),
+ MII_PHY_DESC(SMC, LAN8700),
MII_PHY_END
};
More information about the svn-src-all
mailing list