mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
SAMV7 USB: Replace 0 with something a little more informative
This commit is contained in:
@@ -106,6 +106,7 @@
|
|||||||
/* Not yet supported */
|
/* Not yet supported */
|
||||||
|
|
||||||
#undef CONFIG_SAMV7_USBDEVHS_SCATTERGATHER
|
#undef CONFIG_SAMV7_USBDEVHS_SCATTERGATHER
|
||||||
|
#undef CONFIG_SAMV7_USBDEVHS_LOWPOWER
|
||||||
|
|
||||||
/* Driver Definitions *******************************************************/
|
/* Driver Definitions *******************************************************/
|
||||||
/* Initial interrupt mask: Reset + Suspend + Correct Transfer */
|
/* Initial interrupt mask: Reset + Suspend + Correct Transfer */
|
||||||
@@ -573,7 +574,6 @@ static struct sam_dtd_s g_dtdpool[CONFIG_SAMV7_USBDEVHS_NDTDS]
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Device error strings that may be enabled for more desciptive USB trace
|
/* Device error strings that may be enabled for more desciptive USB trace
|
||||||
* output.
|
* output.
|
||||||
*/
|
*/
|
||||||
@@ -4339,14 +4339,15 @@ static void sam_hw_setup(struct sam_usbdev_s *priv)
|
|||||||
# error ERROR: Unrecognized MAINSOSC frequency
|
# error ERROR: Unrecognized MAINSOSC frequency
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* UTMI parallel mode, High/Full/Low Speed */
|
#ifdef CONFIG_SAMV7_USBDEVHS_LOWPOWER
|
||||||
|
|
||||||
#if 0 /* REVISIT */
|
|
||||||
/* UTMI Full/Low Speed mode */
|
/* UTMI Full/Low Speed mode */
|
||||||
|
|
||||||
sam_putreg(PMC_USBCLK, SAM_PMC_SCER);
|
sam_putreg(PMC_USBCLK, SAM_PMC_SCER);
|
||||||
#else
|
#else
|
||||||
/* Disable 48MHz USB FS Clock. It is not used in this configuration */
|
/* UTMI parallel mode, High/Full/Low Speed
|
||||||
|
*
|
||||||
|
* Disable 48MHz USB FS Clock. It is not used in this configuration
|
||||||
|
*/
|
||||||
|
|
||||||
sam_putreg(PMC_USBCLK, SAM_PMC_SCDR);
|
sam_putreg(PMC_USBCLK, SAM_PMC_SCDR);
|
||||||
#endif
|
#endif
|
||||||
@@ -4357,7 +4358,7 @@ static void sam_hw_setup(struct sam_usbdev_s *priv)
|
|||||||
|
|
||||||
regval = PMC_USB_USBS_UPLL;
|
regval = PMC_USB_USBS_UPLL;
|
||||||
|
|
||||||
#if 0 /* REVISIT */
|
#ifdef CONFIG_SAMV7_USBDEVHS_LOWPOWER
|
||||||
if ((sam_getreg(SAM_PMC_MCKR) & PMC_MCKR_PLLADIV2) != 0)
|
if ((sam_getreg(SAM_PMC_MCKR) & PMC_MCKR_PLLADIV2) != 0)
|
||||||
{
|
{
|
||||||
/* Divider = 480 Mhz / 2 / 48 Mhz = 5 */
|
/* Divider = 480 Mhz / 2 / 48 Mhz = 5 */
|
||||||
|
|||||||
Reference in New Issue
Block a user