diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux2420.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux2430.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux34xx.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux44xx.c | 6 |
5 files changed, 23 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 92215703b671..3d71d93caab2 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -114,12 +114,12 @@ static int __init _omap_mux_init_gpio(struct omap_mux_partition *partition, | |||
114 | } | 114 | } |
115 | 115 | ||
116 | if (found == 0) { | 116 | if (found == 0) { |
117 | pr_err("mux: Could not set gpio%i\n", gpio); | 117 | pr_err("%s: Could not set gpio%i\n", __func__, gpio); |
118 | return -ENODEV; | 118 | return -ENODEV; |
119 | } | 119 | } |
120 | 120 | ||
121 | if (found > 1) { | 121 | if (found > 1) { |
122 | pr_info("mux: Multiple gpio paths (%d) for gpio%i\n", | 122 | pr_info("%s: Multiple gpio paths (%d) for gpio%i\n", __func__, |
123 | found, gpio); | 123 | found, gpio); |
124 | return -EINVAL; | 124 | return -EINVAL; |
125 | } | 125 | } |
@@ -130,7 +130,7 @@ static int __init _omap_mux_init_gpio(struct omap_mux_partition *partition, | |||
130 | mux_mode |= OMAP_MUX_MODE3; | 130 | mux_mode |= OMAP_MUX_MODE3; |
131 | else | 131 | else |
132 | mux_mode |= OMAP_MUX_MODE4; | 132 | mux_mode |= OMAP_MUX_MODE4; |
133 | pr_debug("mux: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n", | 133 | pr_debug("%s: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n", __func__, |
134 | gpio_mux->muxnames[0], gpio, old_mode, mux_mode); | 134 | gpio_mux->muxnames[0], gpio, old_mode, mux_mode); |
135 | omap_mux_write(partition, mux_mode, gpio_mux->reg_offset); | 135 | omap_mux_write(partition, mux_mode, gpio_mux->reg_offset); |
136 | 136 | ||
@@ -190,8 +190,8 @@ static int __init _omap_mux_init_signal(struct omap_mux_partition *partition, | |||
190 | old_mode = omap_mux_read(partition, | 190 | old_mode = omap_mux_read(partition, |
191 | m->reg_offset); | 191 | m->reg_offset); |
192 | mux_mode = val | i; | 192 | mux_mode = val | i; |
193 | pr_debug("mux: Setting signal " | 193 | pr_debug("%s: Setting signal " |
194 | "%s.%s 0x%04x -> 0x%04x\n", | 194 | "%s.%s 0x%04x -> 0x%04x\n", __func__, |
195 | m0_entry, muxname, old_mode, mux_mode); | 195 | m0_entry, muxname, old_mode, mux_mode); |
196 | omap_mux_write(partition, mux_mode, | 196 | omap_mux_write(partition, mux_mode, |
197 | m->reg_offset); | 197 | m->reg_offset); |
@@ -204,12 +204,12 @@ static int __init _omap_mux_init_signal(struct omap_mux_partition *partition, | |||
204 | return 0; | 204 | return 0; |
205 | 205 | ||
206 | if (found > 1) { | 206 | if (found > 1) { |
207 | pr_err("mux: Multiple signal paths (%i) for %s\n", | 207 | pr_err("%s: Multiple signal paths (%i) for %s\n", __func__, |
208 | found, muxname); | 208 | found, muxname); |
209 | return -EINVAL; | 209 | return -EINVAL; |
210 | } | 210 | } |
211 | 211 | ||
212 | pr_err("mux: Could not set signal %s\n", muxname); | 212 | pr_err("%s: Could not set signal %s\n", __func__, muxname); |
213 | 213 | ||
214 | return -ENODEV; | 214 | return -ENODEV; |
215 | } | 215 | } |
@@ -561,7 +561,7 @@ static void __init omap_mux_package_fixup(struct omap_mux *p, | |||
561 | s++; | 561 | s++; |
562 | } | 562 | } |
563 | if (!found) | 563 | if (!found) |
564 | pr_err("mux: Unknown entry offset 0x%x\n", | 564 | pr_err("%s: Unknown entry offset 0x%x\n", __func__, |
565 | p->reg_offset); | 565 | p->reg_offset); |
566 | p++; | 566 | p++; |
567 | } | 567 | } |
@@ -586,7 +586,7 @@ static void __init omap_mux_package_init_balls(struct omap_ball *b, | |||
586 | s++; | 586 | s++; |
587 | } | 587 | } |
588 | if (!found) | 588 | if (!found) |
589 | pr_err("mux: Unknown ball offset 0x%x\n", | 589 | pr_err("%s: Unknown ball offset 0x%x\n", __func__, |
590 | b->reg_offset); | 590 | b->reg_offset); |
591 | b++; | 591 | b++; |
592 | } | 592 | } |
@@ -722,7 +722,7 @@ u16 omap_mux_get_gpio(int gpio) | |||
722 | } | 722 | } |
723 | 723 | ||
724 | if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) | 724 | if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) |
725 | pr_err("mux: Could not get gpio%i\n", gpio); | 725 | pr_err("%s: Could not get gpio%i\n", __func__, gpio); |
726 | 726 | ||
727 | return OMAP_MUX_TERMINATOR; | 727 | return OMAP_MUX_TERMINATOR; |
728 | } | 728 | } |
@@ -742,7 +742,7 @@ void omap_mux_set_gpio(u16 val, int gpio) | |||
742 | } | 742 | } |
743 | 743 | ||
744 | if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) | 744 | if (!m || m->reg_offset == OMAP_MUX_TERMINATOR) |
745 | pr_err("mux: Could not set gpio%i\n", gpio); | 745 | pr_err("%s: Could not set gpio%i\n", __func__, gpio); |
746 | } | 746 | } |
747 | 747 | ||
748 | static struct omap_mux * __init omap_mux_list_add( | 748 | static struct omap_mux * __init omap_mux_list_add( |
@@ -800,7 +800,7 @@ static void __init omap_mux_init_list(struct omap_mux_partition *partition, | |||
800 | 800 | ||
801 | entry = omap_mux_list_add(partition, superset); | 801 | entry = omap_mux_list_add(partition, superset); |
802 | if (!entry) { | 802 | if (!entry) { |
803 | pr_err("mux: Could not add entry\n"); | 803 | pr_err("%s: Could not add entry\n", __func__); |
804 | return; | 804 | return; |
805 | } | 805 | } |
806 | superset++; | 806 | superset++; |
@@ -862,8 +862,8 @@ int __init omap_mux_init(const char *name, u32 flags, | |||
862 | partition->phys = mux_pbase; | 862 | partition->phys = mux_pbase; |
863 | partition->base = ioremap(mux_pbase, mux_size); | 863 | partition->base = ioremap(mux_pbase, mux_size); |
864 | if (!partition->base) { | 864 | if (!partition->base) { |
865 | pr_err("mux: Could not ioremap mux partition at 0x%08x\n", | 865 | pr_err("%s: Could not ioremap mux partition at 0x%08x\n", |
866 | partition->phys); | 866 | __func__, partition->phys); |
867 | return -ENODEV; | 867 | return -ENODEV; |
868 | } | 868 | } |
869 | 869 | ||
@@ -871,7 +871,7 @@ int __init omap_mux_init(const char *name, u32 flags, | |||
871 | 871 | ||
872 | list_add_tail(&partition->node, &mux_partitions); | 872 | list_add_tail(&partition->node, &mux_partitions); |
873 | mux_partitions_cnt++; | 873 | mux_partitions_cnt++; |
874 | pr_info("MUX: Add partition: #%d: %s, flags: %x\n", | 874 | pr_info("%s: Add partition: #%d: %s, flags: %x\n", __func__, |
875 | mux_partitions_cnt, partition->name, partition->flags); | 875 | mux_partitions_cnt, partition->name, partition->flags); |
876 | 876 | ||
877 | omap_mux_init_package(superset, package_subset, package_balls); | 877 | omap_mux_init_package(superset, package_subset, package_balls); |
diff --git a/arch/arm/mach-omap2/mux2420.c b/arch/arm/mach-omap2/mux2420.c index 8231f0ae4856..cf6de0971c6c 100644 --- a/arch/arm/mach-omap2/mux2420.c +++ b/arch/arm/mach-omap2/mux2420.c | |||
@@ -678,7 +678,8 @@ int __init omap2420_mux_init(struct omap_board_mux *board_subset, int flags) | |||
678 | case OMAP_PACKAGE_ZAF: | 678 | case OMAP_PACKAGE_ZAF: |
679 | /* REVISIT: Please add data */ | 679 | /* REVISIT: Please add data */ |
680 | default: | 680 | default: |
681 | pr_warning("mux: No ball data available for omap2420 package\n"); | 681 | pr_warning("%s: No ball data available for omap2420 package\n", |
682 | __func__); | ||
682 | } | 683 | } |
683 | 684 | ||
684 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, | 685 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, |
diff --git a/arch/arm/mach-omap2/mux2430.c b/arch/arm/mach-omap2/mux2430.c index cb6b40436e19..4185f92553db 100644 --- a/arch/arm/mach-omap2/mux2430.c +++ b/arch/arm/mach-omap2/mux2430.c | |||
@@ -781,7 +781,8 @@ int __init omap2430_mux_init(struct omap_board_mux *board_subset, int flags) | |||
781 | package_balls = omap2430_pop_ball; | 781 | package_balls = omap2430_pop_ball; |
782 | break; | 782 | break; |
783 | default: | 783 | default: |
784 | pr_warning("mux: No ball data available for omap2420 package\n"); | 784 | pr_warning("%s: No ball data available for omap2420 package\n", |
785 | __func__); | ||
785 | } | 786 | } |
786 | 787 | ||
787 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, | 788 | return omap_mux_init("core", OMAP_MUX_REG_8BIT | OMAP_MUX_GPIO_IN_MODE3, |
diff --git a/arch/arm/mach-omap2/mux34xx.c b/arch/arm/mach-omap2/mux34xx.c index 4113c93d3f27..440c98e9a510 100644 --- a/arch/arm/mach-omap2/mux34xx.c +++ b/arch/arm/mach-omap2/mux34xx.c | |||
@@ -2049,7 +2049,7 @@ int __init omap3_mux_init(struct omap_board_mux *board_subset, int flags) | |||
2049 | package_balls = omap36xx_cbp_ball; | 2049 | package_balls = omap36xx_cbp_ball; |
2050 | break; | 2050 | break; |
2051 | default: | 2051 | default: |
2052 | printk(KERN_ERR "mux: Unknown omap package, mux disabled\n"); | 2052 | pr_err("%s Unknown omap package, mux disabled\n", __func__); |
2053 | return -EINVAL; | 2053 | return -EINVAL; |
2054 | } | 2054 | } |
2055 | 2055 | ||
diff --git a/arch/arm/mach-omap2/mux44xx.c b/arch/arm/mach-omap2/mux44xx.c index 80335f395d28..980f11d45c79 100644 --- a/arch/arm/mach-omap2/mux44xx.c +++ b/arch/arm/mach-omap2/mux44xx.c | |||
@@ -1590,17 +1590,17 @@ int __init omap4_mux_init(struct omap_board_mux *board_subset, int flags) | |||
1590 | 1590 | ||
1591 | switch (flags & OMAP_PACKAGE_MASK) { | 1591 | switch (flags & OMAP_PACKAGE_MASK) { |
1592 | case OMAP_PACKAGE_CBL: | 1592 | case OMAP_PACKAGE_CBL: |
1593 | pr_debug("mux: OMAP4430 ES1.0 -> OMAP_PACKAGE_CBL\n"); | 1593 | pr_debug("%s: OMAP4430 ES1.0 -> OMAP_PACKAGE_CBL\n", __func__); |
1594 | package_balls_core = omap4_core_cbl_ball; | 1594 | package_balls_core = omap4_core_cbl_ball; |
1595 | core_muxmodes = omap4_core_muxmodes; | 1595 | core_muxmodes = omap4_core_muxmodes; |
1596 | break; | 1596 | break; |
1597 | case OMAP_PACKAGE_CBS: | 1597 | case OMAP_PACKAGE_CBS: |
1598 | pr_debug("mux: OMAP4430 ES2.X -> OMAP_PACKAGE_CBS\n"); | 1598 | pr_debug("%s: OMAP4430 ES2.X -> OMAP_PACKAGE_CBS\n", __func__); |
1599 | package_balls_core = omap4_core_cbs_ball; | 1599 | package_balls_core = omap4_core_cbs_ball; |
1600 | core_muxmodes = omap4_es2_core_muxmodes; | 1600 | core_muxmodes = omap4_es2_core_muxmodes; |
1601 | break; | 1601 | break; |
1602 | default: | 1602 | default: |
1603 | pr_err("mux: Unknown omap package, mux disabled\n"); | 1603 | pr_err("%s: Unknown omap package, mux disabled\n", __func__); |
1604 | return -EINVAL; | 1604 | return -EINVAL; |
1605 | } | 1605 | } |
1606 | 1606 | ||