]> git.karo-electronics.de Git - linux-beck.git/commitdiff
davinci: Move PINMUX defines to SoC files
authorMark A. Greer <mgreer@mvista.com>
Wed, 15 Apr 2009 19:42:06 +0000 (12:42 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 22:17:48 +0000 (15:17 -0700)
Different SoC have different numbers of pinmux registers and other
resources that overlap with each other.  To clean up the code and
eliminate defines that overlap with each other, move the PINMUX
defines to the SoC specific files.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm644x.c
arch/arm/mach-davinci/dm646x.c
arch/arm/mach-davinci/include/mach/mux.h
arch/arm/mach-davinci/time.c

index 4c3257ef5ddccf51f2a00499d13d025131702f44..78fc598b0bcaf4cd596a124e4f1bc8158fa75383 100644 (file)
@@ -433,6 +433,14 @@ void __init dm355_init_spi0(unsigned chipselect_mask,
 
 /*----------------------------------------------------------------------*/
 
+#define PINMUX0                0x00
+#define PINMUX1                0x04
+#define PINMUX2                0x08
+#define PINMUX3                0x0c
+#define PINMUX4                0x10
+#define INTMUX         0x18
+#define EVTMUX         0x1c
+
 /*
  * Device specific mux setup
  *
index 3844fc34cbb5fc75206efe9c6e76d12a78d99c95..4ab5f07ead05b235476bd354d14b246451e42375 100644 (file)
@@ -351,6 +351,9 @@ static struct platform_device dm644x_emac_device = {
        .resource       = dm644x_emac_resources,
 };
 
+#define PINMUX0                0x00
+#define PINMUX1                0x04
+
 /*
  * Device specific mux setup
  *
index 5185ad55fc509d2bfb4dcccf68d079245f483061..12189c737a3bde72ba375301e3260ea0771bd8e2 100644 (file)
@@ -333,6 +333,9 @@ static struct platform_device dm646x_emac_device = {
        .resource       = dm646x_emac_resources,
 };
 
+#define PINMUX0                0x00
+#define PINMUX1                0x04
+
 /*
  * Device specific mux setup
  *
index 5d6efa80af6fa8d0b7a3a7d1371b95f4232506a1..27378458542fe80ce107aed2cccfeec48f08cf54 100644 (file)
 #ifndef __INC_MACH_MUX_H
 #define __INC_MACH_MUX_H
 
-/* System module registers */
-#define PINMUX0                        0x00
-#define PINMUX1                        0x04
-/* dm355 only */
-#define PINMUX2                        0x08
-#define PINMUX3                        0x0c
-#define PINMUX4                        0x10
-#define INTMUX                 0x18
-#define EVTMUX                 0x1c
-
 struct mux_config {
        const char *name;
        const char *mux_reg_name;
index fc90d3ee0eba7c3cb87c774257fe268af037a7d5..0884ca57bfb09c961d60baf15d8cbe0c55b5479d 100644 (file)
@@ -123,7 +123,7 @@ static char *id_to_name[] = {
 static int timer32_config(struct timer_s *t)
 {
        u32 tcr;
-       struct davinci_soc_info *soc_info = davinci_get_soc_info();
+       struct davinci_soc_info *soc_info = &davinci_soc_info;
 
        if (USING_COMPARE(t)) {
                struct davinci_timer_instance *dtip =