Skip to content

Commit 2308c95

Browse files
Vitaly Bordugkumargala
authored andcommitted
powerpc/85xx: Update pin setup for 8560ads
Ports B and C pins programming is changed to get SCC2 UART and FCC3 ethernet work. Signed-off-by: Vitaly Bordug <[email protected]> Signed-off-by: Kumar Gala <[email protected]>
1 parent d3c511a commit 2308c95

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arch/powerpc/platforms/85xx/mpc85xx_ads.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static const struct cpm_pin mpc8560_ads_pins[] = {
119119
{3, 31, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
120120

121121
/* SCC2 */
122+
{2, 12, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
123+
{2, 13, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
122124
{3, 26, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
123125
{3, 27, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
124126
{3, 28, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
@@ -145,7 +147,6 @@ static const struct cpm_pin mpc8560_ads_pins[] = {
145147
{1, 4, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
146148
{1, 5, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
147149
{1, 6, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
148-
{1, 7, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
149150
{1, 8, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
150151
{1, 9, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
151152
{1, 10, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
@@ -156,8 +157,9 @@ static const struct cpm_pin mpc8560_ads_pins[] = {
156157
{1, 15, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
157158
{1, 16, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
158159
{1, 17, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
159-
{2, 16, CPM_PIN_INPUT | CPM_PIN_SECONDARY}, /* CLK16 */
160-
{2, 17, CPM_PIN_INPUT | CPM_PIN_SECONDARY}, /* CLK15 */
160+
{2, 16, CPM_PIN_INPUT | CPM_PIN_PRIMARY}, /* CLK16 */
161+
{2, 17, CPM_PIN_INPUT | CPM_PIN_PRIMARY}, /* CLK15 */
162+
{2, 27, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
161163
};
162164

163165
static void __init init_ioports(void)

0 commit comments

Comments
 (0)