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é <sout...@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
 };
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to