* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
@ 2009-11-24 18:21 Alan Carvalho de Assis
2009-11-24 19:39 ` saeed bishara
2009-11-24 23:19 ` Fabio Estevam
0 siblings, 2 replies; 7+ messages in thread
From: Alan Carvalho de Assis @ 2009-11-24 18:21 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
---
arch/arm/mach-mx2/Kconfig | 7 ++
arch/arm/mach-mx2/Makefile | 1 +
arch/arm/mach-mx2/mxt_td60.c | 245 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 253 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/mach-mx2/mxt_td60.c
diff --git a/arch/arm/mach-mx2/Kconfig b/arch/arm/mach-mx2/Kconfig
index 3e14da3..b96c6a3 100644
--- a/arch/arm/mach-mx2/Kconfig
+++ b/arch/arm/mach-mx2/Kconfig
@@ -104,4 +104,11 @@ config MACH_PCA100
Include support for phyCARD-s (aka pca100) platform. This
includes specific configurations for the module and its peripherals.
+config MACH_MXT_TD60
+ bool "Maxtrack i-MXT TD60"
+ depends on MACH_MX27
+ help
+ Include support for i-MXT (aka td60) platform. This
+ includes specific configurations for the module and its peripherals.
+
endif
diff --git a/arch/arm/mach-mx2/Makefile b/arch/arm/mach-mx2/Makefile
index 19560f0..52aca0a 100644
--- a/arch/arm/mach-mx2/Makefile
+++ b/arch/arm/mach-mx2/Makefile
@@ -20,4 +20,5 @@ obj-$(CONFIG_MACH_MX27LITE) += mx27lite.o
obj-$(CONFIG_MACH_EUKREA_CPUIMX27) += eukrea_cpuimx27.o
obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o
obj-$(CONFIG_MACH_PCA100) += pca100.o
+obj-$(CONFIG_MACH_MXT_TD60) += mxt_td60.o
diff --git a/arch/arm/mach-mx2/mxt_td60.c b/arch/arm/mach-mx2/mxt_td60.c
new file mode 100644
index 0000000..4b288c5
--- /dev/null
+++ b/arch/arm/mach-mx2/mxt_td60.c
@@ -0,0 +1,245 @@
+/*
+ * Copyright (C) 2000 Deep Blue Solutions Ltd
+ * Copyright (C) 2002 Shane Nay (shane at minirl.com)
+ * Copyright 2006-2007 Freescale Semiconductor, Inc. All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <linux/platform_device.h>
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/map.h>
+#include <linux/mtd/partitions.h>
+#include <linux/mtd/physmap.h>
+#include <linux/i2c.h>
+#include <linux/irq.h>
+#include <mach/common.h>
+#include <mach/hardware.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+#include <asm/mach/time.h>
+#include <asm/mach/map.h>
+#include <linux/gpio.h>
+#include <mach/imx-uart.h>
+#include <mach/iomux.h>
+#include <mach/mxc_nand.h>
+#include <mach/i2c.h>
+#include <mach/imxfb.h>
+#include <mach/mmc.h>
+
+#include "devices.h"
+
+static unsigned int mxt_td60_pins[] = {
+ /* UART0 */
+ PE12_PF_UART1_TXD,
+ PE13_PF_UART1_RXD,
+ PE14_PF_UART1_CTS,
+ PE15_PF_UART1_RTS,
+ /* UART1 */
+ PE3_PF_UART2_CTS,
+ PE4_PF_UART2_RTS,
+ PE6_PF_UART2_TXD,
+ PE7_PF_UART2_RXD,
+ /* UART2 */
+ PE8_PF_UART3_TXD,
+ PE9_PF_UART3_RXD,
+ PE10_PF_UART3_CTS,
+ PE11_PF_UART3_RTS,
+ /* UART3 */
+ PB26_AF_UART4_RTS,
+ PB28_AF_UART4_TXD,
+ PB29_AF_UART4_CTS,
+ PB31_AF_UART4_RXD,
+ /* UART4 */
+ PB18_AF_UART5_TXD,
+ PB19_AF_UART5_RXD,
+ PB20_AF_UART5_CTS,
+ PB21_AF_UART5_RTS,
+ /* UART5 */
+ PB10_AF_UART6_TXD,
+ PB12_AF_UART6_CTS,
+ PB11_AF_UART6_RXD,
+ PB13_AF_UART6_RTS,
+ /* FEC */
+ PD0_AIN_FEC_TXD0,
+ PD1_AIN_FEC_TXD1,
+ PD2_AIN_FEC_TXD2,
+ PD3_AIN_FEC_TXD3,
+ PD4_AOUT_FEC_RX_ER,
+ PD5_AOUT_FEC_RXD1,
+ PD6_AOUT_FEC_RXD2,
+ PD7_AOUT_FEC_RXD3,
+ PD8_AF_FEC_MDIO,
+ PD9_AIN_FEC_MDC,
+ PD10_AOUT_FEC_CRS,
+ PD11_AOUT_FEC_TX_CLK,
+ PD12_AOUT_FEC_RXD0,
+ PD13_AOUT_FEC_RX_DV,
+ PD14_AOUT_FEC_RX_CLK,
+ PD15_AOUT_FEC_COL,
+ PD16_AIN_FEC_TX_ER,
+ PF23_AIN_FEC_TX_EN,
+ /* I2C1 */
+ PD17_PF_I2C_DATA,
+ PD18_PF_I2C_CLK,
+ /* I2C2 */
+ PC5_PF_I2C2_SDA,
+ PC6_PF_I2C2_SCL,
+ /* FB */
+ PA5_PF_LSCLK,
+ PA6_PF_LD0,
+ PA7_PF_LD1,
+ PA8_PF_LD2,
+ PA9_PF_LD3,
+ PA10_PF_LD4,
+ PA11_PF_LD5,
+ PA12_PF_LD6,
+ PA13_PF_LD7,
+ PA14_PF_LD8,
+ PA15_PF_LD9,
+ PA16_PF_LD10,
+ PA17_PF_LD11,
+ PA18_PF_LD12,
+ PA19_PF_LD13,
+ PA20_PF_LD14,
+ PA21_PF_LD15,
+ PA22_PF_LD16,
+ PA23_PF_LD17,
+ PA25_PF_CLS,
+ PA27_PF_SPL_SPR,
+ PA28_PF_HSYNC,
+ PA29_PF_VSYNC,
+ PA30_PF_CONTRAST,
+ PA31_PF_OE_ACD,
+ /* OWIRE */
+ PE16_AF_OWIRE,
+ /* SDHC1*/
+ PE18_PF_SD1_D0,
+ PE19_PF_SD1_D1,
+ PE20_PF_SD1_D2,
+ PE21_PF_SD1_D3,
+ PE22_PF_SD1_CMD,
+ PE23_PF_SD1_CLK,
+ /* SDHC2*/
+ PB4_PF_SD2_D0,
+ PB5_PF_SD2_D1,
+ PB6_PF_SD2_D2,
+ PB7_PF_SD2_D3,
+ PB8_PF_SD2_CMD,
+ PB9_PF_SD2_CLK,
+};
+
+static struct mxc_nand_platform_data mxt_td60_nand_board_info = {
+ .width = 1,
+ .hw_ecc = 1,
+};
+
+static struct imxi2c_platform_data mxt_td60_i2c_data = {
+ .bitrate = 100000,
+};
+
+static struct i2c_board_info mxt_td60_i2c_devices[] = {
+};
+
+static struct imxi2c_platform_data mxt_td60_i2c2_data = {
+ .bitrate = 100000,
+};
+
+static struct i2c_board_info mxt_td60_i2c2_devices[] = {
+};
+
+static int mxt_td60_sdhc1_init(struct device *dev, irq_handler_t detect_irq,
+ void *data)
+{
+ return request_irq(IRQ_GPIOE(21), detect_irq, IRQF_TRIGGER_RISING,
+ "sdhc1-card-detect", data);
+}
+
+static void mxt_td60_sdhc1_exit(struct device *dev, void *data)
+{
+ free_irq(IRQ_GPIOE(21), data);
+}
+
+static struct imxmmc_platform_data sdhc1_pdata = {
+ .init = mxt_td60_sdhc1_init,
+ .exit = mxt_td60_sdhc1_exit,
+};
+
+static struct platform_device *platform_devices[] __initdata = {
+ &mxc_fec_device,
+};
+
+static struct imxuart_platform_data uart_pdata[] = {
+ {
+ .flags = IMXUART_HAVE_RTSCTS,
+ }, {
+ .flags = IMXUART_HAVE_RTSCTS,
+ }, {
+ .flags = IMXUART_HAVE_RTSCTS,
+ }, {
+ .flags = IMXUART_HAVE_RTSCTS,
+ }, {
+ .flags = IMXUART_HAVE_RTSCTS,
+ }, {
+ .flags = IMXUART_HAVE_RTSCTS,
+ },
+};
+
+static void __init mxt_td60_board_init(void)
+{
+ mxc_gpio_setup_multiple_pins(mxt_td60_pins, ARRAY_SIZE(mxt_td60_pins),
+ "mxt_td60");
+
+ mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
+ mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
+ mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
+ mxc_register_device(&mxc_uart_device3, &uart_pdata[3]);
+ mxc_register_device(&mxc_uart_device4, &uart_pdata[4]);
+ mxc_register_device(&mxc_uart_device5, &uart_pdata[5]);
+ mxc_register_device(&mxc_nand_device, &mxt_td60_nand_board_info);
+
+ i2c_register_board_info(0, mxt_td60_i2c_devices,
+ ARRAY_SIZE(mxt_td60_i2c_devices));
+
+ i2c_register_board_info(1, mxt_td60_i2c2_devices,
+ ARRAY_SIZE(mxt_td60_i2c2_devices));
+
+ mxc_register_device(&mxc_i2c_device0, &mxt_td60_i2c_data);
+ mxc_register_device(&mxc_i2c_device1, &mxt_td60_i2c2_data);
+ mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata);
+
+ platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
+}
+
+static void __init mxt_td60_timer_init(void)
+{
+ mx27_clocks_init(26000000);
+}
+
+static struct sys_timer mxt_td60_timer = {
+ .init = mxt_td60_timer_init,
+};
+
+MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60")
+ /* maintainer: Maxtrack Industrial */
+ .phys_io = AIPI_BASE_ADDR,
+ .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
+ .boot_params = PHYS_OFFSET + 0x100,
+ .map_io = mx27_map_io,
+ .init_irq = mx27_init_irq,
+ .init_machine = mxt_td60_board_init,
+ .timer = &mxt_td60_timer,
+MACHINE_END
+
--
1.6.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-24 18:21 [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60 Alan Carvalho de Assis
@ 2009-11-24 19:39 ` saeed bishara
2009-11-25 10:52 ` Alan Carvalho de Assis
2009-11-24 23:19 ` Fabio Estevam
1 sibling, 1 reply; 7+ messages in thread
From: saeed bishara @ 2009-11-24 19:39 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Nov 24, 2009 at 8:21 PM, Alan Carvalho de Assis
<acassis@gmail.com> wrote:
> Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
> ---
> ?arch/arm/mach-mx2/Kconfig ? ?| ? ?7 ++
> ?arch/arm/mach-mx2/Makefile ? | ? ?1 +
> ?arch/arm/mach-mx2/mxt_td60.c | ?245 ++++++++++++++++++++++++++++++++++++++++++
> ?3 files changed, 253 insertions(+), 0 deletions(-)
> ?create mode 100644 arch/arm/mach-mx2/mxt_td60.c
>
> diff --git a/arch/arm/mach-mx2/Kconfig b/arch/arm/mach-mx2/Kconfig
> index 3e14da3..b96c6a3 100644
> --- a/arch/arm/mach-mx2/Kconfig
> +++ b/arch/arm/mach-mx2/Kconfig
> @@ -104,4 +104,11 @@ config MACH_PCA100
> ? ? ? ? ?Include support for phyCARD-s (aka pca100) platform. This
> ? ? ? ? ?includes specific configurations for the module and its peripherals.
>
> +config MACH_MXT_TD60
> + ? ? ? bool "Maxtrack i-MXT TD60"
> + ? ? ? depends on MACH_MX27
> + ? ? ? help
> + ? ? ? ? Include support for i-MXT (aka td60) platform. This
> + ? ? ? ? includes specific configurations for the module and its peripherals.
> +
> ?endif
> diff --git a/arch/arm/mach-mx2/Makefile b/arch/arm/mach-mx2/Makefile
> index 19560f0..52aca0a 100644
> --- a/arch/arm/mach-mx2/Makefile
> +++ b/arch/arm/mach-mx2/Makefile
> @@ -20,4 +20,5 @@ obj-$(CONFIG_MACH_MX27LITE) += mx27lite.o
> ?obj-$(CONFIG_MACH_EUKREA_CPUIMX27) += eukrea_cpuimx27.o
> ?obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o
> ?obj-$(CONFIG_MACH_PCA100) += pca100.o
> +obj-$(CONFIG_MACH_MXT_TD60) += mxt_td60.o
>
> diff --git a/arch/arm/mach-mx2/mxt_td60.c b/arch/arm/mach-mx2/mxt_td60.c
> new file mode 100644
> index 0000000..4b288c5
> --- /dev/null
> +++ b/arch/arm/mach-mx2/mxt_td60.c
> @@ -0,0 +1,245 @@
> +/*
> + * ?Copyright (C) 2000 Deep Blue Solutions Ltd
> + * ?Copyright (C) 2002 Shane Nay (shane at minirl.com)
> + * ?Copyright 2006-2007 Freescale Semiconductor, Inc. All Rights Reserved.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ?02111-1307 ?USA
> + */
> +
> +#include <linux/platform_device.h>
> +#include <linux/mtd/mtd.h>
> +#include <linux/mtd/map.h>
> +#include <linux/mtd/partitions.h>
> +#include <linux/mtd/physmap.h>
> +#include <linux/i2c.h>
> +#include <linux/irq.h>
> +#include <mach/common.h>
> +#include <mach/hardware.h>
> +#include <asm/mach-types.h>
> +#include <asm/mach/arch.h>
> +#include <asm/mach/time.h>
> +#include <asm/mach/map.h>
> +#include <linux/gpio.h>
> +#include <mach/imx-uart.h>
> +#include <mach/iomux.h>
> +#include <mach/mxc_nand.h>
> +#include <mach/i2c.h>
> +#include <mach/imxfb.h>
> +#include <mach/mmc.h>
> +
> +#include "devices.h"
> +
> +static unsigned int mxt_td60_pins[] = {
shouldn't this be __initdata?
> + ? ? ? /* UART0 */
> + ? ? ? PE12_PF_UART1_TXD,
> + ? ? ? PE13_PF_UART1_RXD,
> + ? ? ? PE14_PF_UART1_CTS,
> + ? ? ? PE15_PF_UART1_RTS,
> + ? ? ? /* UART1 */
> + ? ? ? PE3_PF_UART2_CTS,
> + ? ? ? PE4_PF_UART2_RTS,
> + ? ? ? PE6_PF_UART2_TXD,
> + ? ? ? PE7_PF_UART2_RXD,
> + ? ? ? /* UART2 */
> + ? ? ? PE8_PF_UART3_TXD,
> + ? ? ? PE9_PF_UART3_RXD,
> + ? ? ? PE10_PF_UART3_CTS,
> + ? ? ? PE11_PF_UART3_RTS,
> + ? ? ? /* UART3 */
> + ? ? ? PB26_AF_UART4_RTS,
> + ? ? ? PB28_AF_UART4_TXD,
> + ? ? ? PB29_AF_UART4_CTS,
> + ? ? ? PB31_AF_UART4_RXD,
> + ? ? ? /* UART4 */
> + ? ? ? PB18_AF_UART5_TXD,
> + ? ? ? PB19_AF_UART5_RXD,
> + ? ? ? PB20_AF_UART5_CTS,
> + ? ? ? PB21_AF_UART5_RTS,
> + ? ? ? /* UART5 */
> + ? ? ? PB10_AF_UART6_TXD,
> + ? ? ? PB12_AF_UART6_CTS,
> + ? ? ? PB11_AF_UART6_RXD,
> + ? ? ? PB13_AF_UART6_RTS,
> + ? ? ? /* FEC */
> + ? ? ? PD0_AIN_FEC_TXD0,
> + ? ? ? PD1_AIN_FEC_TXD1,
> + ? ? ? PD2_AIN_FEC_TXD2,
> + ? ? ? PD3_AIN_FEC_TXD3,
> + ? ? ? PD4_AOUT_FEC_RX_ER,
> + ? ? ? PD5_AOUT_FEC_RXD1,
> + ? ? ? PD6_AOUT_FEC_RXD2,
> + ? ? ? PD7_AOUT_FEC_RXD3,
> + ? ? ? PD8_AF_FEC_MDIO,
> + ? ? ? PD9_AIN_FEC_MDC,
> + ? ? ? PD10_AOUT_FEC_CRS,
> + ? ? ? PD11_AOUT_FEC_TX_CLK,
> + ? ? ? PD12_AOUT_FEC_RXD0,
> + ? ? ? PD13_AOUT_FEC_RX_DV,
> + ? ? ? PD14_AOUT_FEC_RX_CLK,
> + ? ? ? PD15_AOUT_FEC_COL,
> + ? ? ? PD16_AIN_FEC_TX_ER,
> + ? ? ? PF23_AIN_FEC_TX_EN,
> + ? ? ? /* I2C1 */
> + ? ? ? PD17_PF_I2C_DATA,
> + ? ? ? PD18_PF_I2C_CLK,
> + ? ? ? /* I2C2 */
> + ? ? ? PC5_PF_I2C2_SDA,
> + ? ? ? PC6_PF_I2C2_SCL,
> + ? ? ? /* FB */
> + ? ? ? PA5_PF_LSCLK,
> + ? ? ? PA6_PF_LD0,
> + ? ? ? PA7_PF_LD1,
> + ? ? ? PA8_PF_LD2,
> + ? ? ? PA9_PF_LD3,
> + ? ? ? PA10_PF_LD4,
> + ? ? ? PA11_PF_LD5,
> + ? ? ? PA12_PF_LD6,
> + ? ? ? PA13_PF_LD7,
> + ? ? ? PA14_PF_LD8,
> + ? ? ? PA15_PF_LD9,
> + ? ? ? PA16_PF_LD10,
> + ? ? ? PA17_PF_LD11,
> + ? ? ? PA18_PF_LD12,
> + ? ? ? PA19_PF_LD13,
> + ? ? ? PA20_PF_LD14,
> + ? ? ? PA21_PF_LD15,
> + ? ? ? PA22_PF_LD16,
> + ? ? ? PA23_PF_LD17,
> + ? ? ? PA25_PF_CLS,
> + ? ? ? PA27_PF_SPL_SPR,
> + ? ? ? PA28_PF_HSYNC,
> + ? ? ? PA29_PF_VSYNC,
> + ? ? ? PA30_PF_CONTRAST,
> + ? ? ? PA31_PF_OE_ACD,
> + ? ? ? /* OWIRE */
> + ? ? ? PE16_AF_OWIRE,
> + ? ? ? /* SDHC1*/
> + ? ? ? PE18_PF_SD1_D0,
> + ? ? ? PE19_PF_SD1_D1,
> + ? ? ? PE20_PF_SD1_D2,
> + ? ? ? PE21_PF_SD1_D3,
> + ? ? ? PE22_PF_SD1_CMD,
> + ? ? ? PE23_PF_SD1_CLK,
> + ? ? ? /* SDHC2*/
> + ? ? ? PB4_PF_SD2_D0,
> + ? ? ? PB5_PF_SD2_D1,
> + ? ? ? PB6_PF_SD2_D2,
> + ? ? ? PB7_PF_SD2_D3,
> + ? ? ? PB8_PF_SD2_CMD,
> + ? ? ? PB9_PF_SD2_CLK,
> +};
> +
> +static struct mxc_nand_platform_data mxt_td60_nand_board_info = {
> + ? ? ? .width = 1,
> + ? ? ? .hw_ecc = 1,
> +};
> +
> +static struct imxi2c_platform_data mxt_td60_i2c_data = {
> + ? ? ? .bitrate = 100000,
> +};
> +
> +static struct i2c_board_info mxt_td60_i2c_devices[] = {
> +};
> +
> +static struct imxi2c_platform_data mxt_td60_i2c2_data = {
> + ? ? ? .bitrate = 100000,
> +};
> +
> +static struct i2c_board_info mxt_td60_i2c2_devices[] = {
> +};
> +
> +static int mxt_td60_sdhc1_init(struct device *dev, irq_handler_t detect_irq,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? void *data)
> +{
> + ? ? ? return request_irq(IRQ_GPIOE(21), detect_irq, IRQF_TRIGGER_RISING,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "sdhc1-card-detect", data);
> +}
> +
> +static void mxt_td60_sdhc1_exit(struct device *dev, void *data)
> +{
> + ? ? ? free_irq(IRQ_GPIOE(21), data);
> +}
> +
> +static struct imxmmc_platform_data sdhc1_pdata = {
> + ? ? ? .init = mxt_td60_sdhc1_init,
> + ? ? ? .exit = mxt_td60_sdhc1_exit,
> +};
> +
> +static struct platform_device *platform_devices[] __initdata = {
> + ? ? ? &mxc_fec_device,
> +};
> +
> +static struct imxuart_platform_data uart_pdata[] = {
> + ? ? ? {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .flags = IMXUART_HAVE_RTSCTS,
> + ? ? ? },
> +};
> +
> +static void __init mxt_td60_board_init(void)
> +{
> + ? ? ? mxc_gpio_setup_multiple_pins(mxt_td60_pins, ARRAY_SIZE(mxt_td60_pins),
> + ? ? ? ? ? ? ? ? ? ? ? "mxt_td60");
> +
> + ? ? ? mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
> + ? ? ? mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
> + ? ? ? mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
> + ? ? ? mxc_register_device(&mxc_uart_device3, &uart_pdata[3]);
> + ? ? ? mxc_register_device(&mxc_uart_device4, &uart_pdata[4]);
> + ? ? ? mxc_register_device(&mxc_uart_device5, &uart_pdata[5]);
> + ? ? ? mxc_register_device(&mxc_nand_device, &mxt_td60_nand_board_info);
> +
> + ? ? ? i2c_register_board_info(0, mxt_td60_i2c_devices,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(mxt_td60_i2c_devices));
> +
> + ? ? ? i2c_register_board_info(1, mxt_td60_i2c2_devices,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(mxt_td60_i2c2_devices));
> +
> + ? ? ? mxc_register_device(&mxc_i2c_device0, &mxt_td60_i2c_data);
> + ? ? ? mxc_register_device(&mxc_i2c_device1, &mxt_td60_i2c2_data);
> + ? ? ? mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata);
> +
> + ? ? ? platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
> +}
> +
> +static void __init mxt_td60_timer_init(void)
> +{
> + ? ? ? mx27_clocks_init(26000000);
> +}
> +
> +static struct sys_timer mxt_td60_timer = {
> + ? ? ? .init ? = mxt_td60_timer_init,
> +};
> +
> +MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60")
> + ? ? ? /* maintainer: Maxtrack Industrial */
> + ? ? ? .phys_io ? ? ? ?= AIPI_BASE_ADDR,
> + ? ? ? .io_pg_offst ? ?= ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc,
> + ? ? ? .boot_params ? ?= PHYS_OFFSET + 0x100,
> + ? ? ? .map_io ? ? ? ? = mx27_map_io,
> + ? ? ? .init_irq ? ? ? = mx27_init_irq,
> + ? ? ? .init_machine ? = mxt_td60_board_init,
> + ? ? ? .timer ? ? ? ? ?= &mxt_td60_timer,
> +MACHINE_END
> +
> --
> 1.6.0.4
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-24 18:21 [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60 Alan Carvalho de Assis
2009-11-24 19:39 ` saeed bishara
@ 2009-11-24 23:19 ` Fabio Estevam
2009-11-25 7:27 ` Sascha Hauer
2009-11-25 10:48 ` Alan Carvalho de Assis
1 sibling, 2 replies; 7+ messages in thread
From: Fabio Estevam @ 2009-11-24 23:19 UTC (permalink / raw)
To: linux-arm-kernel
Hi Alan,
--- On Tue, 11/24/09, Alan Carvalho de Assis <acassis@gmail.com> wrote:
> From: Alan Carvalho de Assis <acassis@gmail.com>
> Subject: [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
> To: "linux-arm-kernel" <linux-arm-kernel@lists.infradead.org>
> Cc: "Sascha Hauer" <s.hauer@pengutronix.de>, "Russell King - ARM Linux" <linux@arm.linux.org.uk>, "Daniel Mack" <daniel@caiaq.de>
> Date: Tuesday, November 24, 2009, 4:21 PM
> Signed-off-by: Alan Carvalho de Assis
> <acassis@gmail.com>
> ---
> arch/arm/mach-mx2/Kconfig? ? |? ? 7
> ++
> arch/arm/mach-mx2/Makefile???|? ?
> 1 +
> arch/arm/mach-mx2/mxt_td60.c |? 245
> ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 253 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/mach-mx2/mxt_td60.c
Don't you need to add entries to include/asm-arm/arch-mxc/debug-macro.S and arch /arm/plat-mxc/include/mach/board-mxt_td60.h like other MX27 based boards?
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-24 23:19 ` Fabio Estevam
@ 2009-11-25 7:27 ` Sascha Hauer
2009-11-25 10:48 ` Alan Carvalho de Assis
1 sibling, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2009-11-25 7:27 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Nov 24, 2009 at 03:19:42PM -0800, Fabio Estevam wrote:
> Hi Alan,
>
> --- On Tue, 11/24/09, Alan Carvalho de Assis <acassis@gmail.com> wrote:
>
> > From: Alan Carvalho de Assis <acassis@gmail.com>
> > Subject: [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
> > To: "linux-arm-kernel" <linux-arm-kernel@lists.infradead.org>
> > Cc: "Sascha Hauer" <s.hauer@pengutronix.de>, "Russell King - ARM Linux" <linux@arm.linux.org.uk>, "Daniel Mack" <daniel@caiaq.de>
> > Date: Tuesday, November 24, 2009, 4:21 PM
> > Signed-off-by: Alan Carvalho de Assis
> > <acassis@gmail.com>
> > ---
> > arch/arm/mach-mx2/Kconfig? ? |? ? 7
> > ++
> > arch/arm/mach-mx2/Makefile???|? ?
> > 1 +
> > arch/arm/mach-mx2/mxt_td60.c |? 245
> > ++++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 253 insertions(+), 0 deletions(-)
> > create mode 100644 arch/arm/mach-mx2/mxt_td60.c
>
> Don't you need to add entries to
> include/asm-arm/arch-mxc/debug-macro.S and arch
> /arm/plat-mxc/include/mach/board-mxt_td60.h like other MX27 based
> boards?
There is no board specific code in debug-macro.S any more.
board-mxt_td60.h is not needed, too. However, adding the board to
uncompress.h might be a good idea to see the "uncompressing Linux"
string.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-24 23:19 ` Fabio Estevam
2009-11-25 7:27 ` Sascha Hauer
@ 2009-11-25 10:48 ` Alan Carvalho de Assis
1 sibling, 0 replies; 7+ messages in thread
From: Alan Carvalho de Assis @ 2009-11-25 10:48 UTC (permalink / raw)
To: linux-arm-kernel
Hi Fabio,
On 11/24/09, Fabio Estevam <fabioestevam@yahoo.com> wrote:
> Hi Alan,
>
> --- On Tue, 11/24/09, Alan Carvalho de Assis <acassis@gmail.com> wrote:
>
>> From: Alan Carvalho de Assis <acassis@gmail.com>
>> Subject: [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
>> To: "linux-arm-kernel" <linux-arm-kernel@lists.infradead.org>
>> Cc: "Sascha Hauer" <s.hauer@pengutronix.de>, "Russell King - ARM Linux"
>> <linux@arm.linux.org.uk>, "Daniel Mack" <daniel@caiaq.de>
>> Date: Tuesday, November 24, 2009, 4:21 PM
>> Signed-off-by: Alan Carvalho de Assis
>> <acassis@gmail.com>
>> ---
>> arch/arm/mach-mx2/Kconfig | 7
>> ++
>> arch/arm/mach-mx2/Makefile |
>> 1 +
>> arch/arm/mach-mx2/mxt_td60.c | 245
>> ++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 253 insertions(+), 0 deletions(-)
>> create mode 100644 arch/arm/mach-mx2/mxt_td60.c
>
> Don't you need to add entries to include/asm-arm/arch-mxc/debug-macro.S and
> arch /arm/plat-mxc/include/mach/board-mxt_td60.h like other MX27 based
> boards?
>
No, it is not necessary, see:
http://www.spinics.net/lists/arm-kernel/msg72159.html
Best Regards,
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-24 19:39 ` saeed bishara
@ 2009-11-25 10:52 ` Alan Carvalho de Assis
2009-11-27 8:05 ` Sascha Hauer
0 siblings, 1 reply; 7+ messages in thread
From: Alan Carvalho de Assis @ 2009-11-25 10:52 UTC (permalink / raw)
To: linux-arm-kernel
Hi Saeed,
On 11/24/09, saeed bishara <saeed.bishara@gmail.com> wrote:
>> ...
>> +#include <mach/i2c.h>
>> +#include <mach/imxfb.h>
>> +#include <mach/mmc.h>
>> +
>> +#include "devices.h"
>> +
>> +static unsigned int mxt_td60_pins[] = {
> shouldn't this be __initdata?
I think it could be used, but I don't see others MX27 boards using it.
Sascha, what you think?
Regards,
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60
2009-11-25 10:52 ` Alan Carvalho de Assis
@ 2009-11-27 8:05 ` Sascha Hauer
0 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2009-11-27 8:05 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 25, 2009 at 08:52:08AM -0200, Alan Carvalho de Assis wrote:
> Hi Saeed,
>
> On 11/24/09, saeed bishara <saeed.bishara@gmail.com> wrote:
> >> ...
> >> +#include <mach/i2c.h>
> >> +#include <mach/imxfb.h>
> >> +#include <mach/mmc.h>
> >> +
> >> +#include "devices.h"
> >> +
> >> +static unsigned int mxt_td60_pins[] = {
> > shouldn't this be __initdata?
>
> I think it could be used, but I don't see others MX27 boards using it.
>
> Sascha, what you think?
Yes, it should be __initdata
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-27 8:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 18:21 [PATCH v2] mx27: Add basic support for Maxtrack i-MXT TD60 Alan Carvalho de Assis
2009-11-24 19:39 ` saeed bishara
2009-11-25 10:52 ` Alan Carvalho de Assis
2009-11-27 8:05 ` Sascha Hauer
2009-11-24 23:19 ` Fabio Estevam
2009-11-25 7:27 ` Sascha Hauer
2009-11-25 10:48 ` Alan Carvalho de Assis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).