[U-Boot] board/cirrus/edb93xx/edb93xx.c: "egpio" versus "epgio"?

Robert P. J. Day rpjday at crashcourse.ca
Mon Jun 27 14:53:09 CEST 2016


  possibly embarrassing myself here, but i just ran across this in
edb93xx.c, which looks ... weird, a mixture of "EGPIO" and "EPGIO"
toward the end of that source file:

  ... snip ...

  int board_mmc_init(bd_t *bis)
  {
        struct gpio_regs *regs = (struct gpio_regs *)GPIO_BASE;

        ep93xx_set_epgio(CONFIG_MMC_SPI_CS_EPGIO);
        ep93xx_dir_epgio_out(CONFIG_MMC_SPI_CS_EPGIO);

  #ifdef CONFIG_MMC_SPI_POWER_EGPIO
        ep93xx_dir_epgio_out(CONFIG_MMC_SPI_POWER_EGPIO);
        ep93xx_set_epgio(CONFIG_MMC_SPI_POWER_EGPIO);
  #elif defined(CONFIG_MMC_SPI_NPOWER_EGPIO)
        ep93xx_dir_epgio_out(CONFIG_MMC_SPI_NPOWER_EGPIO);
        ep93xx_clear_epgio(CONFIG_MMC_SPI_NPOWER_EGPIO);
  #endif

... snip ...

  is it just me, or does anyone else find that odd? all occurrences of
the string "epgio" are entirely contained within that single source
file:

$ grep -ri EPGIO *
board/cirrus/edb93xx/edb93xx.c:static void ep93xx_set_epgio(unsigned num)
board/cirrus/edb93xx/edb93xx.c:static void ep93xx_clear_epgio(unsigned num)
board/cirrus/edb93xx/edb93xx.c:static void ep93xx_dir_epgio_out(unsigned num)
board/cirrus/edb93xx/edb93xx.c:	ep93xx_clear_epgio(slave->cs);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_set_epgio(slave->cs);
board/cirrus/edb93xx/edb93xx.c:#ifndef CONFIG_MMC_SPI_CS_EPGIO
board/cirrus/edb93xx/edb93xx.c:# define CONFIG_MMC_SPI_CS_EPGIO	4
board/cirrus/edb93xx/edb93xx.c:	ep93xx_set_epgio(CONFIG_MMC_SPI_CS_EPGIO);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_dir_epgio_out(CONFIG_MMC_SPI_CS_EPGIO);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_dir_epgio_out(CONFIG_MMC_SPI_POWER_EGPIO);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_set_epgio(CONFIG_MMC_SPI_POWER_EGPIO);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_dir_epgio_out(CONFIG_MMC_SPI_NPOWER_EGPIO);
board/cirrus/edb93xx/edb93xx.c:	ep93xx_clear_epgio(CONFIG_MMC_SPI_NPOWER_EGPIO);
board/cirrus/edb93xx/edb93xx.c:	struct mmc *mmc = mmc_spi_init(0, CONFIG_MMC_SPI_CS_EPGIO,
$

  am i just being an idiot in not knowing that that means?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list