From 2cf546a6ab68e74eeb2962d77d21ee011a15b380 Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Fri, 11 Apr 2014 15:44:15 +0800 Subject: ENGR00308036 iMX6SX:SABRESD Add RDC settings to MX6SX SABRESD BSP According to the SRS, in the M4 CAN demo, the GPIO group1 will be shared between A9 and M4. At A9 side, the pins 0, 1, 2, 3 are used. M4 also uses one pin in its application. To synchronize the registers setttings of GPIO1, must enable RDC and RDC semaphore on the GPIO1. Signed-off-by: Ye.Li --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index d2c8132..3a6c8d6 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -26,6 +26,10 @@ #include #include #endif +#ifdef CONFIG_MXC_RDC +#include +#include +#endif #ifdef CONFIG_FASTBOOT #include @@ -645,8 +649,18 @@ void ldo_mode_set(int ldo_bypass) #endif #endif +#ifdef CONFIG_MXC_RDC +static rdc_peri_cfg_t const shared_resources[] = { + (RDC_PER_GPIO1 | RDC_DOMAIN(0) | RDC_DOMAIN(1)), +}; +#endif + int board_early_init_f(void) { +#ifdef CONFIG_MXC_RDC + imx_rdc_setup_peripherals(shared_resources, ARRAY_SIZE(shared_resources)); +#endif + setup_iomux_uart(); return 0; } -- cgit v1.1