Home > OS >  Someone played myir IMX6ULL series of science and technology development board? Uboot lit backlight
Someone played myir IMX6ULL series of science and technology development board? Uboot lit backlight

Time:11-20

Uboot configuration, I want to lit backlight uboot phase, need to support the GPIO driver
I use the default configuration development board [*] Enable Driver Model for GPIO drivers
Drivers/gpio/mxc_gpio. C: 405:27: error: 'GPIO6_BASE_ADDR undeclared here (not in a function)
{5, (struct gpio_regs *) GPIO6_BASE_ADDR},
^
Drivers/gpio/mxc_gpio. C: 408:27: error: 'GPIO7_BASE_ADDR undeclared here (not in a function)
{6, (struct gpio_regs *) GPIO7_BASE_ADDR},

MYiR - took iMX - uboot/drivers/gpio/mxc_gpio c under this file
# if defined (CONFIG_MX27) | | defined (CONFIG_MX53) | | defined (CONFIG_MX6)
{4, (struct gpio_regs *) GPIO5_BASE_ADDR},
{5, (struct gpio_regs *) GPIO6_BASE_ADDR},
# endif
# if defined (CONFIG_MX53) | | defined (CONFIG_MX6)
{6, (struct gpio_regs *) GPIO7_BASE_ADDR},
# endif

MYiR - took iMX - uboot/arch/arm/include/asm/arch - mx6 \ took iMX regs. H
# if defined (CONFIG_MX6UL)
# define SNVS_LP_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0 x30000)
# define ENET2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0 x34000)
# the else
# define GPIO6_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0 x30000)
# define GPIO7_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0 x34000)

MYiR - took iMX - uboot \ include \ generated \ auto conf. H
The default configuration is configured with both a macro definition
# define CONFIG_MX6 1
# define CONFIG_MX6UL 1

Now how to solve
  • Related