reg_gpio.h 584 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
  4. */
  5. #define GPIO1_BASE 0x00044000
  6. #define GPIO2_BASE 0x00048000
  7. /* Instances */
  8. #define GPIO_INSTANCES 2
  9. /* Relative offsets of the register adresses */
  10. #define GPIO_SWPORTA_DR_OFFS 0x00000000
  11. #define GPIO_SWPORTA_DR(base) ((base) + GPIO_SWPORTA_DR_OFFS)
  12. #define GPIO_SWPORTA_DDR_OFFS 0x00000004
  13. #define GPIO_SWPORTA_DDR(base) ((base) + GPIO_SWPORTA_DDR_OFFS)
  14. #define GPIO_EXT_PORTA_OFFS 0x00000050
  15. #define GPIO_EXT_PORTA(base) ((base) + GPIO_EXT_PORTA_OFFS)