aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf548
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2010-09-17 07:09:57 -0400
committerMike Frysinger <vapier@gentoo.org>2011-01-10 07:10:13 -0500
commit759a3f3f3171c521229dda2335e5ab105f6fdc40 (patch)
tree16c95f046b345a649928709ff812d3563562a274 /arch/blackfin/mach-bf548
parent1a314ad4b0e3d6d76fb04c0481e95bd026c57749 (diff)
Blackfin: musb-boards: 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>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-rw-r--r--arch/blackfin/mach-bf548/boards/cm_bf548.c1
-rw-r--r--arch/blackfin/mach-bf548/boards/ezkit.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c
index 4c2ee6789099..9182d734b041 100644
--- a/arch/blackfin/mach-bf548/boards/cm_bf548.c
+++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c
@@ -504,6 +504,7 @@ static struct musb_hdrc_config musb_config = {
504 * if it is the case. 504 * if it is the case.
505 */ 505 */
506 .gpio_vrsel_active = 1, 506 .gpio_vrsel_active = 1,
507 .clkin = 24, /* musb CLKIN in MHZ */
507}; 508};
508 509
509static struct musb_hdrc_platform_data musb_plat = { 510static struct musb_hdrc_platform_data musb_plat = {
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c
index 4f03fbc4c9be..63345d2838e3 100644
--- a/arch/blackfin/mach-bf548/boards/ezkit.c
+++ b/arch/blackfin/mach-bf548/boards/ezkit.c
@@ -609,6 +609,7 @@ static struct musb_hdrc_config musb_config = {
609 * if it is the case. 609 * if it is the case.
610 */ 610 */
611 .gpio_vrsel_active = 1, 611 .gpio_vrsel_active = 1,
612 .clkin = 24, /* musb CLKIN in MHZ */
612}; 613};
613 614
614static struct musb_hdrc_platform_data musb_plat = { 615static struct musb_hdrc_platform_data musb_plat = {