/* Copyright (c) 2018 PHYTEC America, LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef __RPI_GPIO_BOARD_H_ #define __RPI_GPIO_BOARD_H_ /* Usable GPIO banks on the PHYTEC i.MX7D platform */ #define BOARD_GPIO_BANKS 7 /* Number of valid Broadcom pins associated with PHYTEC i.MX7D and PEB-D-RPI */ #define BOARD_VALID_PINS 28 /* * BOARD_VALID_PINS_MAP is used to instantiate board_pins[] in common.c and * provides an array that associates PHYTEC i.MX7D GPIOs with Broadcom * Processor GPIO pin numbers for use with the PHYTEC PEB-D-RPI expansion board * * Format is {gpio bank, gpio pin}. For a Broadcom pin that isn't supported on * your board, use {0, 0}. */ #define BOARD_VALID_PINS_MAP { \ {4, 15}, \ {4, 14}, \ {4, 9}, \ {4, 8}, \ {4, 21}, \ {5, 14}, \ {1, 2}, \ {5, 9}, \ {6, 22}, \ {6, 19}, \ {6, 20}, \ {6, 21}, \ {5, 13}, \ {4, 18}, \ {4, 5}, \ {4, 4}, \ {4, 19}, \ {4, 20}, \ {5, 15}, \ {5, 16}, \ {4, 17}, \ {5, 17}, \ {4, 23}, \ {1, 15}, \ {1, 14}, \ {5, 11}, \ {4, 16}, \ {4, 22}, \ } #endif /* __RPI_GPIO_BOARD_H_ */