Commit 322ac5f1d5e564bca95cce7d8410c215f93a0255
1 parent
146fff347a
Exists in
v2017.01-smarct4x
and in
25 other branches
mx35: add GPIO setup on flea3 board
Hardware revision "e" of the board introduces a GPIO to reduce power consumption in stand-by mode. This must be enable (active low) at the startup for normal behaviour. Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Heiko Schocher <hs@denx.de>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
board/CarMediaLab/flea3/flea3.c
... | ... | @@ -122,6 +122,8 @@ |
122 | 122 | MX35_PAD_FEC_TDATA2__FEC_TDATA_2, |
123 | 123 | MX35_PAD_FEC_RDATA3__FEC_RDATA_3, |
124 | 124 | MX35_PAD_FEC_TDATA3__FEC_TDATA_3, |
125 | + /* GPIO used to power off ethernet */ | |
126 | + MX35_PAD_STXFS4__GPIO2_31, | |
125 | 127 | }; |
126 | 128 | |
127 | 129 | /* setup pins for FEC */ |
... | ... | @@ -182,6 +184,11 @@ |
182 | 184 | { |
183 | 185 | /* address of boot parameters */ |
184 | 186 | gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; |
187 | + | |
188 | + /* Enable power for ethernet */ | |
189 | + gpio_direction_output(63, 0); | |
190 | + | |
191 | + udelay(2000); | |
185 | 192 | |
186 | 193 | return 0; |
187 | 194 | } |