]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Blackfin: musb-boards: push clkin value to platform resources
authorBob Liu <lliubbo@gmail.com>
Fri, 17 Sep 2010 11:09:57 +0000 (11:09 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2011 12:10:13 +0000 (07:10 -0500)
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>
arch/blackfin/mach-bf527/boards/ad7160eval.c
arch/blackfin/mach-bf527/boards/cm_bf527.c
arch/blackfin/mach-bf527/boards/ezbrd.c
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf548/boards/cm_bf548.c
arch/blackfin/mach-bf548/boards/ezkit.c

index 52295fff5577b407bb6c4d1d59d9f1ca900882f5..6215de838b00b3d984997acc9f88a04beb1c6766 100644 (file)
@@ -67,6 +67,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
index 50533edc399408e6eec10b8d36f69691a7f17bd5..1c5aed443bca6359984a962e2206d82f72e8a460 100644 (file)
@@ -104,6 +104,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
index d06177b5fe221f54f991322b9cc833043bc46c24..a24a409e2c94f9d70e78c6ee36e4a4f649515120 100644 (file)
@@ -68,6 +68,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
index 35a88a5a501341f140283a5bfa12b11ce5822999..16de84cee2295e27ca7eb2d22d1aa772f4ea6136 100644 (file)
@@ -108,6 +108,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
index 4c2ee678909900ebca62de9da749b374f9a8e136..9182d734b041c77d19bdbbbe6ff7f6eca24bd106 100644 (file)
@@ -504,6 +504,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {
index 4f03fbc4c9bec5c37009637632a9225666becf4b..63345d2838e3e7b247f4316a983a4106030a7baf 100644 (file)
@@ -609,6 +609,7 @@ static struct musb_hdrc_config musb_config = {
         * if it is the case.
         */
        .gpio_vrsel_active      = 1,
+       .clkin          = 24,           /* musb CLKIN in MHZ */
 };
 
 static struct musb_hdrc_platform_data musb_plat = {