diff options
author | Bob Liu <lliubbo@gmail.com> | 2010-10-23 14:12:01 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-11-05 15:13:32 +0300 |
commit | 9c7564620f82e55a9c8713311bffd401ec9d60fe (patch) | |
tree | 428c66c3414766bd7326eaf56e31542c26cf6b24 /drivers/usb/musb | |
parent | 68f64714dc35a515a3064b300729e7809bcdd0e0 (diff) | |
download | linux-9c7564620f82e55a9c8713311bffd401ec9d60fe.tar.xz |
USB: musb: blackfin: push clkin value to platform resources
In order to not touch the driver file for different xtal usage,
push the clkin value to board file and calculate the register
value instead of hardcoding it.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index ade45a219c47..fcb5206a65bd 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -337,7 +337,8 @@ static void musb_platform_reg_init(struct musb *musb) } /* Configure PLL oscillator register */ - bfin_write_USB_PLLOSC_CTRL(0x30a8); + bfin_write_USB_PLLOSC_CTRL(0x3080 | + ((480/musb->config->clkin) << 1)); SSYNC(); bfin_write_USB_SRP_CLKDIV((get_sclk()/1000) / 32 - 1); |