[PATCH 07/17] pinctrl-aspeed-g4: Add definition for GPIO pins J2 and O2
Andrew Jeffery
andrew at aj.id.au
Mon Sep 19 11:06:23 AEST 2016
On Fri, 2016-09-16 at 15:35 -0500, Timothy Pearson wrote:
> This is required for Firestone to boot.
>
> Signed-off-by: Timothy Pearson <tpearson at raptorengineering.com>
As mentioned I will integrate this with my patches to add the rest of
the pins, but regardless:
Reviewed-by: Andrew Jeffery <andrew at aj.id.au>
> ---
> drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c b/drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c
> index e356619..610ab48 100644
> --- a/drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c
> +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c
> @@ -499,6 +499,9 @@ MS_PIN_DECL(E7, GPIOH7, ROMD15, RXD6);
>
> FUNC_GROUP_DECL(UART6, A8, C7, B7, A7, D7, B6, A6, E7);
>
> +#define K5 74
> +SSSF_PIN_DECL(K5, GPIOJ2, SGPMO, SIG_DESC_SET(SCU84, 10));
> +
> #define J3 75
> SSSF_PIN_DECL(J3, GPIOJ3, SGPMI, SIG_DESC_SET(SCU84, 11));
>
> @@ -727,10 +730,14 @@ SS_PIN_DECL(V6, GPIOO0, VPIG8);
> SIG_EXPR_LIST_DECL_SINGLE(VPIG9, VPI24, VPI24_DESC, SIG_DESC_SET(SCU88, 9));
> SS_PIN_DECL(Y5, GPIOO1, VPIG9);
>
> +#define AA4 114
> +SIG_EXPR_LIST_DECL_SINGLE(VPIR0, VPI30, VPI30_DESC, SIG_DESC_SET(SCU88, 10));
> +SS_PIN_DECL(AA4, GPIOO2, VPIR0);
> +
> FUNC_GROUP_DECL(VPI18, T5, U3, V1, U4, V2, AA22, W5, Y4, AA3, AB2);
> FUNC_GROUP_DECL(VPI24, T5, U3, V1, U4, V2, AA22, W5, Y4, AA3, AB2, V6, Y5);
> -FUNC_GROUP_DECL(VPI30, T5, U3, V1, U4, V2, W1, U5, W4, Y3, AA22, W5, Y4, AA3,
> - AB2);
> +FUNC_GROUP_DECL(VPI30, T5, U3, V1, U4, V2, W1, U5, W4, Y3, AA4, AA22, W5, Y4,
> + AA3, AB2);
>
> #define Y7 125
> SIG_EXPR_LIST_DECL_SINGLE(GPIOP5, GPIOP5);
> @@ -1154,6 +1161,7 @@ static struct pinctrl_pin_desc aspeed_g4_pins[ASPEED_G4_NR_PINS] = {
> ASPEED_PINCTRL_PIN(J20),
> ASPEED_PINCTRL_PIN(J21),
> ASPEED_PINCTRL_PIN(J3),
> + ASPEED_PINCTRL_PIN(K5),
> ASPEED_PINCTRL_PIN(K18),
> ASPEED_PINCTRL_PIN(L22),
> ASPEED_PINCTRL_PIN(N21),
> @@ -1189,6 +1197,7 @@ static struct pinctrl_pin_desc aspeed_g4_pins[ASPEED_G4_NR_PINS] = {
> ASPEED_PINCTRL_PIN(Y4),
> ASPEED_PINCTRL_PIN(Y5),
> ASPEED_PINCTRL_PIN(Y7),
> + ASPEED_PINCTRL_PIN(AA4),
We just use sort(1) across the members rather than define them in
datasheet order.
Joel: If you apply this patch can you please sort(1) this list?
> };
>
> static const struct aspeed_pin_group aspeed_g4_groups[] = {
> @@ -1231,6 +1240,7 @@ static const struct aspeed_pin_group aspeed_g4_groups[] = {
> ASPEED_PINCTRL_GROUP(FLBUSY),
> ASPEED_PINCTRL_GROUP(FLWP),
> ASPEED_PINCTRL_GROUP(UART6),
> + ASPEED_PINCTRL_GROUP(SGPMO),
> ASPEED_PINCTRL_GROUP(SGPMI),
> ASPEED_PINCTRL_GROUP(VGAHS),
> ASPEED_PINCTRL_GROUP(VGAVS),
> @@ -1341,6 +1351,7 @@ static const struct aspeed_pin_function aspeed_g4_functions[] = {
> ASPEED_PINCTRL_FUNC(FLBUSY),
> ASPEED_PINCTRL_FUNC(FLWP),
> ASPEED_PINCTRL_FUNC(UART6),
> + ASPEED_PINCTRL_FUNC(SGPMO),
> ASPEED_PINCTRL_FUNC(SGPMI),
> ASPEED_PINCTRL_FUNC(VGAHS),
> ASPEED_PINCTRL_FUNC(VGAVS),
Similarly these should be sort(1):ed as well, but I'm not sure we did
that before applying the patches...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160919/5c2b1042/attachment.sig>
More information about the openbmc
mailing list