boards: mps2_an385: Enable I2C devices

The FPGA on the MPS2 board implements 4 SBCon devices for I2C which are
connected to:
- a touchscreen controller
- the audio device (for configuration)
- both shield connectors

Change-Id: I55ca985e18b45d68f5e7421c4768dfc9bf2fcb3f
Signed-off-by: Jon Medhurst <tixy@linaro.org>
This commit is contained in:
Jon Medhurst 2017-03-24 16:32:38 +00:00 committed by Anas Nashif
commit 14ce362972
4 changed files with 45 additions and 1 deletions

View file

@ -58,6 +58,13 @@
#define CMSDK_APB_DUALTIMER_IRQ IRQ_DUAL_TIMER
#endif /* CONFIG_COUNTER */
#if defined(CONFIG_I2C_SBCON)
#define I2C_SBCON_0_BASE_ADDR I2C_TOUCH_BASE_ADDR
#define I2C_SBCON_1_BASE_ADDR I2C_AUDIO_CONF_BASE_ADDR
#define I2C_SBCON_2_BASE_ADDR I2C_SHIELD0_BASE_ADDR
#define I2C_SBCON_3_BASE_ADDR I2C_SHIELD1_BASE_ADDR
#endif
#ifndef _ASMLANGUAGE
#include "soc_registers.h"

View file

@ -35,6 +35,10 @@
#define UART_4_BASE_ADDR (MPS2_APB_BASE_ADDR + 0x9000)
/* MPS2 peripherals in FPGA APB subsystem */
#define FPGAIO_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0x8000)
#define I2C_TOUCH_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0x2000)
#define I2C_AUDIO_CONF_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0x3000)
#define FPGAIO_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0x8000)
#define I2C_SHIELD0_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0x9000)
#define I2C_SHIELD1_BASE_ADDR (MPS2_FPGA_APB_BASE_ADDR + 0xa000)
#endif /* _SOC_MEMORY_MAP_H_ */