/* Allwinner A10/A20 SoCs were using pins PC0,PC1,PC2,PC23 for booting from SPI Flash, everything else is using pins PC0,PC1,PC2,PC3.  */
static void spi0_pinmux_setup(unsigned int pin_function)
/* Allwinner A10/A20 SoCs were using pins PC0,PC1,PC2,PC23 for booting from SPI Flash, everything else is using pins PC0,PC1,PC2,PC3.  */
static void spi0_pinmux_setup(unsigned int pin_function)
{
	unsigned int pin;
	for (pin = SUNXI_GPC(0); pin <= SUNXI_GPC(2); pin++)
		sunxi_gpio_set_cfgpin(pin, pin_function);
	if (IS_ENABLED(CONFIG_MACH_SUN4I) || IS_ENABLED(CONFIG_MACH_SUN7I))
		sunxi_gpio_set_cfgpin(SUNXI_GPC(23), pin_function);
	else
		sunxi_gpio_set_cfgpin(SUNXI_GPC(3), pin_function);
}