2016-05-21 12:23:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016, Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-05-21 12:23:34 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INC_BOARD_H
|
|
|
|
#define __INC_BOARD_H
|
|
|
|
|
|
|
|
#include <soc.h>
|
|
|
|
|
boards: Update arc em_starterkit support from 2.2 to 2.3
Here are the main changes:
* board: Update EMSK onboard resources such as Button, Switch and LEDs
+ update soc.h for em7d, em9d, em11d
+ update board.h for em_starterkit board
* arc: Add floating point support and code density support
+ add kconfig configuration
+ add compiler options
+ add register definitions, marcos, assembly codes
+ fixes in existing codes and configurations.
* arc: Update detailed board configurations for cores of emsk 2.3
* script: Provide arc_debugger.sh for debugging em_starterkit board
+ make BOARD=em_starterkit debug
This will start openocd server for emsk, and arc gdb will connect
to this debug server, user can run `continue` command if user just
want to run the application, or other commands if debugging needed.
+ make BOARD=em_starterkit debugserver
This will start an openocd debugger server for emsk, and user can
connect to this debugserver using arc gdb and do what they want to.
+ make BOARD=em_starterkit flash
This will download the zephyr application elf file to emsk,
and run it.
Signed-off-by: Huaqi Fang <huaqi.fang@synopsys.com>
2017-05-17 15:18:51 +08:00
|
|
|
/* Switches */
|
|
|
|
#define SW0_GPIO_PIN 0
|
|
|
|
#define SW0_GPIO_NAME CONFIG_GPIO_DW_2_NAME
|
|
|
|
|
|
|
|
#define SW1_GPIO_PIN 1
|
|
|
|
#define SW1_GPIO_NAME CONFIG_GPIO_DW_2_NAME
|
|
|
|
|
|
|
|
#define SW2_GPIO_PIN 2
|
|
|
|
#define SW2_GPIO_NAME CONFIG_GPIO_DW_2_NAME
|
|
|
|
|
|
|
|
#define SW3_GPIO_PIN 3
|
|
|
|
#define SW3_GPIO_NAME CONFIG_GPIO_DW_2_NAME
|
|
|
|
|
|
|
|
/* Buttons */
|
|
|
|
#define BTN0_GPIO_PIN 0
|
|
|
|
#define BTN0_GPIO_NAME CONFIG_GPIO_DW_0_NAME
|
|
|
|
|
|
|
|
#define BTN1_GPIO_PIN 1
|
|
|
|
#define BTN1_GPIO_NAME CONFIG_GPIO_DW_0_NAME
|
|
|
|
|
|
|
|
#define BTN2_GPIO_PIN 2
|
|
|
|
#define BTN2_GPIO_NAME CONFIG_GPIO_DW_0_NAME
|
|
|
|
|
|
|
|
/* Onboard LEDs */
|
|
|
|
#define LED0_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED0_GPIO_PIN 0
|
|
|
|
|
|
|
|
#define LED1_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED1_GPIO_PIN 1
|
|
|
|
|
|
|
|
#define LED2_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED2_GPIO_PIN 2
|
|
|
|
|
|
|
|
#define LED3_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED3_GPIO_PIN 3
|
|
|
|
|
|
|
|
#define LED4_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED4_GPIO_PIN 4
|
|
|
|
|
|
|
|
#define LED5_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED5_GPIO_PIN 5
|
|
|
|
|
|
|
|
#define LED6_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED6_GPIO_PIN 6
|
|
|
|
|
|
|
|
#define LED7_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED7_GPIO_PIN 7
|
|
|
|
|
|
|
|
#define LED8_GPIO_PORT CONFIG_GPIO_DW_1_NAME
|
|
|
|
#define LED8_GPIO_PIN 8
|
|
|
|
|
2016-05-21 12:23:34 +08:00
|
|
|
#endif /* __INC_BOARD_H */
|