Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: nomadik: split up and comments MC0 pins

When debugging it helps to see exactly which pin goes where,
so make it very detailed.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+17 -6
+17 -6
drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c
··· 379 379 static const unsigned msp0tfstck_a_1_pins[] = { DB8500_PIN_AF3, DB8500_PIN_AE3 }; 380 380 static const unsigned msp0rfsrck_a_1_pins[] = { DB8500_PIN_AD3, DB8500_PIN_AD4 }; 381 381 /* Basic pins of the MMC/SD card 0 interface */ 382 - static const unsigned mc0_a_1_pins[] = { DB8500_PIN_AC2, DB8500_PIN_AC1, 383 - DB8500_PIN_AB4, DB8500_PIN_AA3, DB8500_PIN_AA4, DB8500_PIN_AB2, 384 - DB8500_PIN_Y4, DB8500_PIN_Y2, DB8500_PIN_AA2, DB8500_PIN_AA1 }; 382 + static const unsigned mc0_a_1_pins[] = { DB8500_PIN_AC2, /* MC0_CMDDIR */ 383 + DB8500_PIN_AC1, /* MC0_DAT0DIR */ 384 + DB8500_PIN_AB4, /* MC0_DAT2DIR */ 385 + DB8500_PIN_AA3, /* MC0_FBCLK */ 386 + DB8500_PIN_AA4, /* MC0_CLK */ 387 + DB8500_PIN_AB2, /* MC0_CMD */ 388 + DB8500_PIN_Y4, /* MC0_DAT0 */ 389 + DB8500_PIN_Y2, /* MC0_DAT1 */ 390 + DB8500_PIN_AA2, /* MC0_DAT2 */ 391 + DB8500_PIN_AA1 /* MC0_DAT3 */ 392 + }; 385 393 /* Often only 4 bits are used, then these are not needed (only used for MMC) */ 386 - static const unsigned mc0_dat47_a_1_pins[] = { DB8500_PIN_W2, DB8500_PIN_W3, 387 - DB8500_PIN_V3, DB8500_PIN_V2}; 388 - static const unsigned mc0dat31dir_a_1_pins[] = { DB8500_PIN_AB3 }; 394 + static const unsigned mc0_dat47_a_1_pins[] = { DB8500_PIN_W2, /* MC0_DAT4 */ 395 + DB8500_PIN_W3, /* MC0_DAT5 */ 396 + DB8500_PIN_V3, /* MC0_DAT6 */ 397 + DB8500_PIN_V2 /* MC0_DAT7 */ 398 + }; 399 + static const unsigned mc0dat31dir_a_1_pins[] = { DB8500_PIN_AB3 }; /* MC0_DAT31DIR */ 389 400 /* MSP1 can only be on these pins, but TXD and RXD can be flipped */ 390 401 static const unsigned msp1txrx_a_1_pins[] = { DB8500_PIN_AF2, DB8500_PIN_AG2 }; 391 402 static const unsigned msp1_a_1_pins[] = { DB8500_PIN_AE1, DB8500_PIN_AE2 };