Skip to content
Snippets Groups Projects
  1. Jul 15, 2011
  2. Jul 14, 2011
  3. Jul 13, 2011
  4. Jul 08, 2011
  5. Jul 07, 2011
    • Lothar Waßmann's avatar
      gpio/mxc: add missing initialization of basic_mmio_gpio shadow variables · fb149218
      Lothar Waßmann authored
      
      The bgpio_init() function does not initialise the shadow register for
      the GPIO direction register. Thus, when configuring the first GPIO with
      gpio_set_direction() all other GPIOs of the same bank will be
      configured as inputs. Since the bgpio layer cannot know whether the
      register is readable, the initialisation should be done by the caller
      of bgpio_init().
      
      Also, the 'data' shadow variable that is used inside basic_mmio_gpio
      to cache the current value of the GPIO_DR register is initialised from
      the GPIO_PSR register within bgpio_init(). Thus when setting the
      output value of a certain GPIO, the other GPIO outputs of the same
      bank will be set or cleared depending on the pin state of the GPIO
      inputs during bgpio_init().
      
      Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      fb149218
  6. Jul 06, 2011
  7. Jul 05, 2011
  8. Jun 28, 2011
  9. Jun 16, 2011
  10. Jun 15, 2011
  11. Jun 13, 2011
Loading