board/cirrus/edb93xx/edb93xx.c: "egpio" versus "epgio"?
possibly embarrassing myself here, but i just ran across this inedb93xx.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
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 6 lines · Robert P. J. Day
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 ...
never mind, i just noticed that, first, the "edb" boards are listed
in the scrapyard file:
edb9301 arm arm920t 716f7ad 2011-07-17 edb9302 arm arm920t 716f7ad 2011-07-17 edb9302a arm arm920t 716f7ad 2011-07-17 edb9307 arm arm920t 716f7ad 2011-07-17 edb9307a arm arm920t 716f7ad 2011-07-17 edb9312 arm arm920t 716f7ad 2011-07-17 edb9315 arm arm920t 716f7ad 2011-07-17 edb9315a arm arm920t 716f7ad 2011-07-17
but, weirdly, that source file was added in 2014, with opening comment:
/*
* Board initialization for EP93xx
so why is an EP93xx board init file being added under allegedly scrapped board directory board/cirrus/edb93xx?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================