summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/ostest/defconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-09 17:03:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-09 17:03:16 +0000
commit88f3c3ba8d3161537032f2390936047c0535dce9 (patch)
treed13d6f30d8434fcb973fe397ebe500632dd7e314 /nuttx/configs/stm3240g-eval/ostest/defconfig
parent1a79f640a822bd01d8ef8149c5f0d3e793d65b88 (diff)
downloadpx4-nuttx-88f3c3ba8d3161537032f2390936047c0535dce9.tar.gz
px4-nuttx-88f3c3ba8d3161537032f2390936047c0535dce9.tar.bz2
px4-nuttx-88f3c3ba8d3161537032f2390936047c0535dce9.zip
Add PHY setup for STM3240G-EVAL Ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4151 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/ostest/defconfig')
-rwxr-xr-xnuttx/configs/stm3240g-eval/ostest/defconfig33
1 files changed, 31 insertions, 2 deletions
diff --git a/nuttx/configs/stm3240g-eval/ostest/defconfig b/nuttx/configs/stm3240g-eval/ostest/defconfig
index cced8c8f2..cc91d8a53 100755
--- a/nuttx/configs/stm3240g-eval/ostest/defconfig
+++ b/nuttx/configs/stm3240g-eval/ostest/defconfig
@@ -258,15 +258,44 @@ CONFIG_SSI_POLLWAIT=y
#
# STM32F40xxx Ethernet device driver settings
#
+# CONFIG_STM32_PHYADDR - The 5-bit address of the PHY on the board
# CONFIG_STM32_MII - Support Ethernet MII interface
# CONFIG_STM32_MII_MCO1 - Use MCO1 to clock the MII interface
# CONFIG_STM32_MII_MCO2 - Use MCO2 to clock the MII interface
# CONFIG_STM32_RMII - Support Ethernet RMII interface
-#
+# CONFIG_STM32_AUTONEG - Use PHY autonegotion to determine speed and mode
+# CONFIG_STM32_ETHFD - If CONFIG_STM32_AUTONEG is not defined, then this
+# may be defined to select full duplex mode. Default: half-duplex
+# CONFIG_STM32_ETH100MBPS - If CONFIG_STM32_AUTONEG is not defined, then this
+# may be defined to select 100 MBps speed. Default: 10 Mbps
+# CONFIG_STM32_PHYSR - This must be provided if CONFIG_STM32_AUTONEG is
+# defined. The PHY status register address may diff from PHY to PHY. This
+# configuration sets the address of the PHY status register.
+# CONFIG_STM32_PHYSR_SPEED - This must be provided if CONFIG_STM32_AUTONEG is
+# defined. This provides bit mask indicating 10 or 100MBps speed.
+# CONFIG_STM32_PHYSR_100MBPS - This must be provided if CONFIG_STM32_AUTONEG is
+# defined. This provides the value of the speed bit(s) indicating 100MBps speed.
+# CONFIG_STM32_PHYSR_MODE - This must be provided if CONFIG_STM32_AUTONEG is
+# defined. This provide bit mask indicating full or half duplex modes.
+# CONFIG_STM32_PHYSR_FULLDUPLEX - This must be provided if CONFIG_STM32_AUTONEG is
+# defined. This provides the value of the mode bits indicating full duplex mode.
+# CONFIG_STM32_ETH_PTP - Precision Time Protocol (PTP). Not supported
+# but some hooks are indicated with this condition.
+#
+CONFIG_STM32_PHYADDR=0x01
CONFIG_STM32_MII=y
CONFIG_STM32_MII_MCO1=y
CONFIG_STM32_MII_MCO2=n
CONFIG_STM32_RMII=n
+CONFIG_STM32_AUTONEG=y
+#CONFIG_STM32_ETHFD
+#CONFIG_STM32_ETH100MBPS
+CONFIG_STM32_PHYSR=16
+CONFIG_STM32_PHYSR_SPEED=0x0002
+CONFIG_STM32_PHYSR_100MBPS=0x0000
+CONFIG_STM32_PHYSR_MODE=0x0004
+CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
+CONFIG_STM32_ETH_PTP=n
#
# General build options
@@ -648,7 +677,7 @@ CONFIG_NET=n
CONFIG_NET_IPv6=n
CONFIG_NSOCKET_DESCRIPTORS=0
CONFIG_NET_SOCKOPTS=y
-CONFIG_NET_BUFSIZE=420
+CONFIG_NET_BUFSIZE=562
CONFIG_NET_TCP=n
CONFIG_NET_TCP_CONNS=40
CONFIG_NET_MAX_LISTENPORTS=40