Skip to content

Commit fbd4249

Browse files
pistachio: Rename pistachio_select_gpio to pistachio_configure_gpio
Signed-off-by: Francois Berder <[email protected]>
1 parent 5e53c3e commit fbd4249

File tree

1 file changed

+11
-11
lines changed
  • board/imgtec/pistachio_bub

1 file changed

+11
-11
lines changed

board/imgtec/pistachio_bub/mfio.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static struct pistachio_mfio_reg pistachio_mfio_regs[] =
103103
{MFIO_89_FUNC_SEL_START, MFIO_89_FUNC_SEL_END},
104104
};
105105

106-
static void pistachio_select_gpio(u32 mfio, bool output)
106+
static void pistachio_configure_gpio(u32 mfio, bool output)
107107
{
108108
u32 reg, val;
109109
reg = PISTACHIO_GPIO + 0x204 + (((mfio) / 16) * 0x24);
@@ -149,7 +149,7 @@ static void pistachio_select_mfio(u32 mfio, u32 func)
149149
static void pistachio_deselectgpio_selectmfio(u32 mfio, u32 func)
150150
{
151151
pistachio_select_mfio(mfio, func);
152-
pistachio_select_gpio(mfio, 0);
152+
pistachio_configure_gpio(mfio, 0);
153153
}
154154

155155
static void set_slew_rate(u32 mfio)
@@ -191,7 +191,7 @@ void mfio_setup_ethernet(void)
191191
pistachio_deselectgpio_selectmfio(68, 0);
192192
pistachio_deselectgpio_selectmfio(69, 0);
193193
pistachio_deselectgpio_selectmfio(70, 0);
194-
pistachio_select_gpio(71, 0);
194+
pistachio_configure_gpio(71, 0);
195195

196196
set_slew_rate(63);
197197
set_slew_rate(64);
@@ -226,11 +226,11 @@ void mfio_setup_mmc(void)
226226
pistachio_deselectgpio_selectmfio(21, 0);
227227
pistachio_deselectgpio_selectmfio(22, 0);
228228

229-
pistachio_select_gpio(23, 0);
230-
pistachio_select_gpio(24, 0);
231-
pistachio_select_gpio(25, 0);
232-
pistachio_select_gpio(26, 0);
233-
pistachio_select_gpio(27, 0);
229+
pistachio_configure_gpio(23, 0);
230+
pistachio_configure_gpio(24, 0);
231+
pistachio_configure_gpio(25, 0);
232+
pistachio_configure_gpio(26, 0);
233+
pistachio_configure_gpio(27, 0);
234234

235235
set_slew_rate(15);
236236
set_slew_rate(16);
@@ -261,10 +261,10 @@ void mfio_setup_mmc(void)
261261
void mfio_setup_spim1(void)
262262
{
263263
/* Use CS lines as GPIO */
264-
pistachio_select_gpio(0, 0);
264+
pistachio_configure_gpio(0, 0);
265265
/* TODO: separate this according to board (DTS */
266-
pistachio_select_gpio(1, 0);
267-
pistachio_select_gpio(58, 0);
266+
pistachio_configure_gpio(1, 0);
267+
pistachio_configure_gpio(58, 0);
268268

269269
/* Use all other lines as MFIO - controlled by the SPFI block */
270270
pistachio_deselectgpio_selectmfio(5, 0);

0 commit comments

Comments
 (0)