diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-10-30 15:46:14 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 13:21:33 -0500 |
commit | 355fb4e3ea590976819c03070bf2c9491aede258 (patch) | |
tree | 8119acc8e15ec41f0ac11f93d5ffc944a7af8d63 /arch/arm/mach-davinci/board-sffsdr.c | |
parent | 990c09d5f5b2079e8bf3c6615c78fa5ed2b97147 (diff) |
DaVinci: rename setup_usb() to davinci_setup_usb()
Rename setup_usb() into davinci_setup_usb(). While at it:
- move its declaration from <mach/common.h> to more fitting <mach/usb.h>;
- teach it to handle values of the 'mA' parameter greater than 510 and thus
pass 1000 instead of 500 for the power switches capable of sourcing over 1 A;
- teach it to handle odd values of the 'potpgt_ms' parameter...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-sffsdr.c')
-rw-r--r-- | arch/arm/mach-davinci/board-sffsdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c index e6654877b9cf..ccfd85b135e4 100644 --- a/arch/arm/mach-davinci/board-sffsdr.c +++ b/arch/arm/mach-davinci/board-sffsdr.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <mach/i2c.h> | 40 | #include <mach/i2c.h> |
41 | #include <mach/serial.h> | 41 | #include <mach/serial.h> |
42 | #include <mach/mux.h> | 42 | #include <mach/mux.h> |
43 | #include <mach/usb.h> | ||
43 | 44 | ||
44 | #define SFFSDR_PHY_MASK (0x2) | 45 | #define SFFSDR_PHY_MASK (0x2) |
45 | #define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ | 46 | #define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */ |
@@ -152,7 +153,7 @@ static __init void davinci_sffsdr_init(void) | |||
152 | davinci_serial_init(&uart_config); | 153 | davinci_serial_init(&uart_config); |
153 | soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK; | 154 | soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK; |
154 | soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY; | 155 | soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY; |
155 | setup_usb(0, 0); /* We support only peripheral mode. */ | 156 | davinci_setup_usb(0, 0); /* We support only peripheral mode. */ |
156 | 157 | ||
157 | /* mux VLYNQ pins */ | 158 | /* mux VLYNQ pins */ |
158 | davinci_cfg_reg(DM644X_VLYNQEN); | 159 | davinci_cfg_reg(DM644X_VLYNQEN); |