summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/mx1ads/include/board.h21
-rw-r--r--nuttx/configs/mx1ads/ostest/defconfig23
-rw-r--r--nuttx/configs/mx1ads/src/up_leds.c16
3 files changed, 34 insertions, 26 deletions
diff --git a/nuttx/configs/mx1ads/include/board.h b/nuttx/configs/mx1ads/include/board.h
index 6be596e47..4379121d7 100644
--- a/nuttx/configs/mx1ads/include/board.h
+++ b/nuttx/configs/mx1ads/include/board.h
@@ -48,7 +48,26 @@
/************************************************************************************
* Definitions
************************************************************************************/
-
+
+/* Clock settings */
+
+#define IMX_SYS_CLK_FREQ 16780000
+#define IMX_SYSPLL_CLK_FREQ 16000000
+#define IMX_PERCLK1_FREQ 96000000
+
+/* MPCTL */
+
+#define IMX_MPCTL0_VALUE 0x04632410 /* For 150MHz MCU PLL clock */
+#define IMX_MPCTL0_VALUE 0x03AA11B9 /* For 150 MHz ARM clock with 32.768 KHz crystal */
+
+/* SPCTL */
+
+#define IMX_SPCTL0_VALUE 0x07AA16A6; /* For 96MHz peripheral clock with 32.768 KHz crystal */
+
+/* PDCR */
+
+#define IMX_PCDR_VALUE 0x00000055
+
/* LED definitions ******************************************************************/
/* The MX1ADS has only one usable LED: Port A, bit 2 */
diff --git a/nuttx/configs/mx1ads/ostest/defconfig b/nuttx/configs/mx1ads/ostest/defconfig
index 0437684df..164a61fdb 100644
--- a/nuttx/configs/mx1ads/ostest/defconfig
+++ b/nuttx/configs/mx1ads/ostest/defconfig
@@ -76,8 +76,10 @@ CONFIG_ARCH_STACKDUMP=y
#
# IMX specific device driver settings
#
+# CONFIG_UARTn_DISABLE - select to disable all support for
+# the UART
# CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
-# console and ttys0 (default is the UART0).
+# console and ttys0 (default is the UART1).
# CONFIG_UARTn_RXBUFSIZE - Characters are buffered as received.
# This specific the size of the receive buffer
# CONFIG_UARTn_TXBUFSIZE - Characters are buffered before
@@ -87,27 +89,30 @@ CONFIG_ARCH_STACKDUMP=y
# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
# CONFIG_UARTn_2STOP - Two stop bits
#
-CONFIG_UART0_SERIAL_CONSOLE=y
-CONFIG_UART1_SERIAL_CONSOLE=n
+CONFIG_UART1_DISABLE=n
+CONFIG_UART2_DISABLE=y
+CONFIG_UART3_DISABLE=y
+CONFIG_UART1_SERIAL_CONSOLE=y
CONFIG_UART2_SERIAL_CONSOLE=n
-CONFIG_UART0_TXBUFSIZE=256
+CONFIG_UART3_SERIAL_CONSOLE=n
CONFIG_UART1_TXBUFSIZE=256
CONFIG_UART2_TXBUFSIZE=256
-CONFIG_UART0_RXBUFSIZE=256
+CONFIG_UART3_TXBUFSIZE=256
CONFIG_UART1_RXBUFSIZE=256
CONFIG_UART2_RXBUFSIZE=256
-CONFIG_UART0_BAUD=115200
+CONFIG_UART3_RXBUFSIZE=256
CONFIG_UART1_BAUD=115200
CONFIG_UART2_BAUD=115200
-CONFIG_UART0_BITS=8
+CONFIG_UART3_BAUD=115200
CONFIG_UART1_BITS=8
CONFIG_UART2_BITS=8
-CONFIG_UART0_PARITY=0
+CONFIG_UART3_BITS=8
CONFIG_UART1_PARITY=0
CONFIG_UART2_PARITY=0
-CONFIG_UART0_2STOP=0
+CONFIG_UART3_PARITY=0
CONFIG_UART1_2STOP=0
CONFIG_UART2_2STOP=0
+CONFIG_UART3_2STOP=0
#
# General build options
diff --git a/nuttx/configs/mx1ads/src/up_leds.c b/nuttx/configs/mx1ads/src/up_leds.c
index effdb7fa4..ed62d232a 100644
--- a/nuttx/configs/mx1ads/src/up_leds.c
+++ b/nuttx/configs/mx1ads/src/up_leds.c
@@ -55,22 +55,6 @@
****************************************************************************/
/****************************************************************************
- * Name: imx_ledon
- ****************************************************************************/
-
-static inline void imx_ledon(void)
-{
-}
-
-/****************************************************************************
- * Name: imx_ledoff
- ****************************************************************************/
-
-static void imx_ledoff(void)
-{
-}
-
-/****************************************************************************
* Public Funtions
****************************************************************************/