diff options
author | Bob Liu <lliubbo@gmail.com> | 2010-09-17 07:09:57 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:10:13 -0500 |
commit | 759a3f3f3171c521229dda2335e5ab105f6fdc40 (patch) | |
tree | 16c95f046b345a649928709ff812d3563562a274 /arch/blackfin/mach-bf527 | |
parent | 1a314ad4b0e3d6d76fb04c0481e95bd026c57749 (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-bf527')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ad7160eval.c | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ad7160eval.c b/arch/blackfin/mach-bf527/boards/ad7160eval.c index 52295fff5577..6215de838b00 100644 --- a/arch/blackfin/mach-bf527/boards/ad7160eval.c +++ b/arch/blackfin/mach-bf527/boards/ad7160eval.c | |||
@@ -67,6 +67,7 @@ static struct musb_hdrc_config musb_config = { | |||
67 | * if it is the case. | 67 | * if it is the case. |
68 | */ | 68 | */ |
69 | .gpio_vrsel_active = 1, | 69 | .gpio_vrsel_active = 1, |
70 | .clkin = 24, /* musb CLKIN in MHZ */ | ||
70 | }; | 71 | }; |
71 | 72 | ||
72 | static struct musb_hdrc_platform_data musb_plat = { | 73 | static struct musb_hdrc_platform_data musb_plat = { |
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 50533edc3994..1c5aed443bca 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
@@ -104,6 +104,7 @@ static struct musb_hdrc_config musb_config = { | |||
104 | * if it is the case. | 104 | * if it is the case. |
105 | */ | 105 | */ |
106 | .gpio_vrsel_active = 1, | 106 | .gpio_vrsel_active = 1, |
107 | .clkin = 24, /* musb CLKIN in MHZ */ | ||
107 | }; | 108 | }; |
108 | 109 | ||
109 | static struct musb_hdrc_platform_data musb_plat = { | 110 | static struct musb_hdrc_platform_data musb_plat = { |
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index d06177b5fe22..a24a409e2c94 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -68,6 +68,7 @@ static struct musb_hdrc_config musb_config = { | |||
68 | * if it is the case. | 68 | * if it is the case. |
69 | */ | 69 | */ |
70 | .gpio_vrsel_active = 1, | 70 | .gpio_vrsel_active = 1, |
71 | .clkin = 24, /* musb CLKIN in MHZ */ | ||
71 | }; | 72 | }; |
72 | 73 | ||
73 | static struct musb_hdrc_platform_data musb_plat = { | 74 | static struct musb_hdrc_platform_data musb_plat = { |
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 35a88a5a5013..16de84cee229 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -108,6 +108,7 @@ static struct musb_hdrc_config musb_config = { | |||
108 | * if it is the case. | 108 | * if it is the case. |
109 | */ | 109 | */ |
110 | .gpio_vrsel_active = 1, | 110 | .gpio_vrsel_active = 1, |
111 | .clkin = 24, /* musb CLKIN in MHZ */ | ||
111 | }; | 112 | }; |
112 | 113 | ||
113 | static struct musb_hdrc_platform_data musb_plat = { | 114 | static struct musb_hdrc_platform_data musb_plat = { |