2017-01-19 00:57:29 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INC_BOARD_H
|
|
|
|
#define __INC_BOARD_H
|
|
|
|
|
|
|
|
#include <soc.h>
|
|
|
|
|
2017-01-06 21:59:03 +08:00
|
|
|
#if defined(CONFIG_GPIO_MMIO32)
|
|
|
|
|
|
|
|
/* USERLED0 */
|
|
|
|
#define LED0_GPIO_PORT FPGAIO_LED0_GPIO_NAME
|
|
|
|
#define LED0_GPIO_PIN FPGAIO_LED0_USERLED0
|
|
|
|
|
|
|
|
/* USERLED1 */
|
|
|
|
#define LED1_GPIO_PORT FPGAIO_LED0_GPIO_NAME
|
|
|
|
#define LED1_GPIO_PIN FPGAIO_LED0_USERLED1
|
|
|
|
|
|
|
|
/* USERPB0 */
|
|
|
|
#define SW0_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
|
|
|
|
#define SW0_GPIO_PIN FPGAIO_BUTTON_USERPB0
|
|
|
|
|
|
|
|
/* USERPB1 */
|
|
|
|
#define SW1_GPIO_NAME FPGAIO_BUTTON_GPIO_NAME
|
|
|
|
#define SW1_GPIO_PIN FPGAIO_BUTTON_USERPB1
|
|
|
|
|
|
|
|
#endif /* CONFIG_GPIO_MMIO32 */
|
|
|
|
|
2017-01-19 00:57:29 +08:00
|
|
|
#endif /* __INC_BOARD_H */
|