summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRickard Andersson <rickard.andersson@stericsson.com>2011-05-27 13:55:07 +0200
committersaid m bagheri <ebgheri@steludxu2848.(none)>2011-06-17 13:42:03 +0200
commitde3722f0b512e0942df8696e1212d135dca3a30f (patch)
treeacc9b5ecf20022ba8c1f64666c8ad7ff52804c48 /arch
parent8c65027c5132919be6ad840b6cd45fd8c4f2aab9 (diff)
ARM: ux500: Update suspend GPIO force comments
Update the comments for the GPIO force code. ST-Ericsson Linux next: - ST-Ericsson ID: ER342202 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com> Change-Id: Iaacb204a588ded1928b26823c57fca82289ab959 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24070 Tested-by: Rickard ANDERSSON <rickard.andersson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/board-mop500-pins.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c
index 84555d5d838..6731cb036b1 100644
--- a/arch/arm/mach-ux500/board-mop500-pins.c
+++ b/arch/arm/mach-ux500/board-mop500-pins.c
@@ -401,8 +401,6 @@ static struct ux500_pin_lookup mop500_pins[] = {
/*
* This function is called to force gpio power save
* settings during suspend.
- * This is a temporary solution until all drivers are
- * controlling their pin settings when in inactive mode.
*/
static void mop500_pins_suspend_force(void)
{
@@ -414,7 +412,7 @@ static void mop500_pins_suspend_force(void)
/*
* Apply HSI GPIO Config for DeepSleep
*
- * Bank0
+ * Bank0 (pins 0 to 31)
*/
bankaddr = IO_ADDRESS(U8500_GPIOBANK0_BASE);
@@ -436,7 +434,7 @@ static void mop500_pins_suspend_force(void)
writel(readl(bankaddr + NMK_GPIO_SLPC) & mask,
bankaddr + NMK_GPIO_SLPC);
- /* Bank1 */
+ /* Bank1 (pins 32 to 63) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK1_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -451,7 +449,7 @@ static void mop500_pins_suspend_force(void)
writel(0xFFFFFFFF & ~w_imsc & ~imsc, bankaddr + NMK_GPIO_PDIS);
writel(0 , bankaddr + NMK_GPIO_SLPC);
- /* Bank2 */
+ /* Bank2 (pins 64 to 95) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK2_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -476,7 +474,7 @@ static void mop500_pins_suspend_force(void)
* be on and might send interesting STM debugging data.
*/
- /* Bank3 */
+ /* Bank3 (pins 96 to 127) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK3_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -490,7 +488,7 @@ static void mop500_pins_suspend_force(void)
writel(0xFFFFFFFF & ~w_imsc & ~imsc, bankaddr + NMK_GPIO_PDIS);
writel(0 , bankaddr + NMK_GPIO_SLPC);
- /* Bank4 */
+ /* Bank4 (pins 128 to 159) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK4_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -506,7 +504,7 @@ static void mop500_pins_suspend_force(void)
writel(0xFFFFFFF9 & ~w_imsc & ~imsc, bankaddr + NMK_GPIO_PDIS);
writel(0 , bankaddr + NMK_GPIO_SLPC);
- /* Bank5 */
+ /* Bank5 (pins 160 to 191) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK5_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -526,7 +524,7 @@ static void mop500_pins_suspend_force(void)
writel(0xFFFFFFFF & ~w_imsc & ~imsc, bankaddr + NMK_GPIO_PDIS);
writel(0 , bankaddr + NMK_GPIO_SLPC);
- /* Bank6 */
+ /* Bank6 (pins 192 to 223) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK6_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -554,7 +552,7 @@ static void mop500_pins_suspend_force(void)
bankaddr + NMK_GPIO_SLPC);
- /* Bank7 */
+ /* Bank7 (pins 224 to 255) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK7_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |
@@ -569,7 +567,7 @@ static void mop500_pins_suspend_force(void)
writel(0xFFFFFFFF & ~w_imsc & ~imsc, bankaddr + NMK_GPIO_PDIS);
writel(0 , bankaddr + NMK_GPIO_SLPC);
- /* Bank8 */
+ /* Bank8 (pins 256 to 287) */
bankaddr = IO_ADDRESS(U8500_GPIOBANK8_BASE);
w_imsc = readl(bankaddr + NMK_GPIO_RWIMSC) |