From: Daniel Walker <dwalker@codeaurora.org> To: linux-arm-msm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, davidb@codeaurora.org, Daniel Walker <dwalker@codeaurora.org> Subject: [PATCH 1/7] msm: qsd8x50: add uart platform data Date: Thu, 20 Jan 2011 12:32:39 -0800 [thread overview] Message-ID: <1295555565-21563-2-git-send-email-dwalker@codeaurora.org> (raw) In-Reply-To: <1295555565-21563-1-git-send-email-dwalker@codeaurora.org> This enables the uart for QSD8x50. Signed-off-by: Daniel Walker <dwalker@codeaurora.org> --- arch/arm/mach-msm/devices-qsd8x50.c | 42 +++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-msm/devices-qsd8x50.c b/arch/arm/mach-msm/devices-qsd8x50.c index b1a8f0f..24b2051 100644 --- a/arch/arm/mach-msm/devices-qsd8x50.c +++ b/arch/arm/mach-msm/devices-qsd8x50.c @@ -28,6 +28,32 @@ #include <mach/mmc.h> +static struct resource resources_uart1[] = { + { + .start = INT_UART1, + .end = INT_UART1, + .flags = IORESOURCE_IRQ, + }, + { + .start = MSM_UART1_PHYS, + .end = MSM_UART1_PHYS + MSM_UART1_SIZE - 1, + .flags = IORESOURCE_MEM, + }, +}; + +static struct resource resources_uart2[] = { + { + .start = INT_UART2, + .end = INT_UART2, + .flags = IORESOURCE_IRQ, + }, + { + .start = MSM_UART2_PHYS, + .end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1, + .flags = IORESOURCE_MEM, + }, +}; + static struct resource resources_uart3[] = { { .start = INT_UART3, @@ -41,6 +67,20 @@ static struct resource resources_uart3[] = { }, }; +struct platform_device msm_device_uart1 = { + .name = "msm_serial", + .id = 0, + .num_resources = ARRAY_SIZE(resources_uart1), + .resource = resources_uart1, +}; + +struct platform_device msm_device_uart2 = { + .name = "msm_serial", + .id = 1, + .num_resources = ARRAY_SIZE(resources_uart2), + .resource = resources_uart2, +}; + struct platform_device msm_device_uart3 = { .name = "msm_serial", .id = 2, @@ -345,6 +385,8 @@ struct clk msm_clocks_8x50[] = { CLK_PCOM("tsif_ref_clk", TSIF_REF_CLK, NULL, 0), CLK_PCOM("tv_dac_clk", TV_DAC_CLK, NULL, 0), CLK_PCOM("tv_enc_clk", TV_ENC_CLK, NULL, 0), + CLK_PCOM("uart_clk", UART1_CLK, &msm_device_uart1.dev, OFF), + CLK_PCOM("uart_clk", UART2_CLK, &msm_device_uart2.dev, OFF), CLK_PCOM("uart_clk", UART3_CLK, &msm_device_uart3.dev, OFF), CLK_PCOM("usb_hs_clk", USB_HS_CLK, NULL, OFF), CLK_PCOM("usb_hs_pclk", USB_HS_P_CLK, NULL, OFF), -- 1.7.0.4 -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
WARNING: multiple messages have this Message-ID (diff)
From: dwalker@codeaurora.org (Daniel Walker) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/7] msm: qsd8x50: add uart platform data Date: Thu, 20 Jan 2011 12:32:39 -0800 [thread overview] Message-ID: <1295555565-21563-2-git-send-email-dwalker@codeaurora.org> (raw) In-Reply-To: <1295555565-21563-1-git-send-email-dwalker@codeaurora.org> This enables the uart for QSD8x50. Signed-off-by: Daniel Walker <dwalker@codeaurora.org> --- arch/arm/mach-msm/devices-qsd8x50.c | 42 +++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-msm/devices-qsd8x50.c b/arch/arm/mach-msm/devices-qsd8x50.c index b1a8f0f..24b2051 100644 --- a/arch/arm/mach-msm/devices-qsd8x50.c +++ b/arch/arm/mach-msm/devices-qsd8x50.c @@ -28,6 +28,32 @@ #include <mach/mmc.h> +static struct resource resources_uart1[] = { + { + .start = INT_UART1, + .end = INT_UART1, + .flags = IORESOURCE_IRQ, + }, + { + .start = MSM_UART1_PHYS, + .end = MSM_UART1_PHYS + MSM_UART1_SIZE - 1, + .flags = IORESOURCE_MEM, + }, +}; + +static struct resource resources_uart2[] = { + { + .start = INT_UART2, + .end = INT_UART2, + .flags = IORESOURCE_IRQ, + }, + { + .start = MSM_UART2_PHYS, + .end = MSM_UART2_PHYS + MSM_UART2_SIZE - 1, + .flags = IORESOURCE_MEM, + }, +}; + static struct resource resources_uart3[] = { { .start = INT_UART3, @@ -41,6 +67,20 @@ static struct resource resources_uart3[] = { }, }; +struct platform_device msm_device_uart1 = { + .name = "msm_serial", + .id = 0, + .num_resources = ARRAY_SIZE(resources_uart1), + .resource = resources_uart1, +}; + +struct platform_device msm_device_uart2 = { + .name = "msm_serial", + .id = 1, + .num_resources = ARRAY_SIZE(resources_uart2), + .resource = resources_uart2, +}; + struct platform_device msm_device_uart3 = { .name = "msm_serial", .id = 2, @@ -345,6 +385,8 @@ struct clk msm_clocks_8x50[] = { CLK_PCOM("tsif_ref_clk", TSIF_REF_CLK, NULL, 0), CLK_PCOM("tv_dac_clk", TV_DAC_CLK, NULL, 0), CLK_PCOM("tv_enc_clk", TV_ENC_CLK, NULL, 0), + CLK_PCOM("uart_clk", UART1_CLK, &msm_device_uart1.dev, OFF), + CLK_PCOM("uart_clk", UART2_CLK, &msm_device_uart2.dev, OFF), CLK_PCOM("uart_clk", UART3_CLK, &msm_device_uart3.dev, OFF), CLK_PCOM("usb_hs_clk", USB_HS_CLK, NULL, OFF), CLK_PCOM("usb_hs_pclk", USB_HS_P_CLK, NULL, OFF), -- 1.7.0.4 -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2011-01-20 20:33 UTC|newest] Thread overview: 157+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-20 20:32 [PATCH 0/7] Nexus One Support Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` Daniel Walker [this message] 2011-01-20 20:32 ` [PATCH 1/7] msm: qsd8x50: add uart platform data Daniel Walker 2011-01-20 20:32 ` [PATCH 2/7] [ARM] msm: qsd8k memory base is at 0x20000000 Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` [PATCH 3/7] msm: qsd8x50: add acpuclock code Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` [PATCH 4/7] msm: mahimahi: add mahimahi board file Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` [PATCH 5/7] msm: mahimahi: add in mmc support code Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` [PATCH 6/7] msm: mahimahi: add gpio pin muxing code Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-20 20:32 ` [PATCH 7/7] msm: mahimahi: initialize mmc at start up Daniel Walker 2011-01-20 20:32 ` Daniel Walker 2011-01-21 0:42 ` [PATCH 0/7] Nexus One Support Dima Zavin 2011-01-21 0:42 ` Dima Zavin 2011-01-21 0:42 ` Dima Zavin 2011-01-21 0:55 ` Daniel Walker 2011-01-21 0:55 ` Daniel Walker 2011-01-21 1:41 ` Joe Perches 2011-01-21 1:41 ` Joe Perches 2011-01-21 1:58 ` Daniel Walker 2011-01-21 1:58 ` Daniel Walker 2011-01-21 2:13 ` Dima Zavin 2011-01-21 2:13 ` Dima Zavin 2011-01-21 15:47 ` Daniel Walker 2011-01-21 15:47 ` Daniel Walker 2011-01-21 2:25 ` Joe Perches 2011-01-21 2:25 ` Joe Perches 2011-01-21 3:41 ` Theodore Tso 2011-01-21 3:41 ` Theodore Tso 2011-01-21 15:46 ` Daniel Walker 2011-01-21 15:46 ` Daniel Walker 2011-01-21 17:48 ` Jesse Barnes 2011-01-21 17:48 ` Jesse Barnes 2011-01-21 17:56 ` Daniel Walker 2011-01-21 17:56 ` Daniel Walker 2011-01-21 17:59 ` Christoph Hellwig 2011-01-21 17:59 ` Christoph Hellwig 2011-01-21 17:56 ` Jesse Barnes 2011-01-21 17:56 ` Jesse Barnes 2011-01-21 17:56 ` Jesse Barnes 2011-01-21 18:00 ` Daniel Walker 2011-01-21 18:00 ` Daniel Walker 2011-01-21 18:04 ` Jesse Barnes 2011-01-21 18:04 ` Jesse Barnes 2011-01-21 18:18 ` Daniel Walker 2011-01-21 18:18 ` Daniel Walker 2011-01-21 18:27 ` Jesse Barnes 2011-01-21 18:27 ` Jesse Barnes 2011-01-21 18:35 ` Daniel Walker 2011-01-21 18:35 ` Daniel Walker 2011-01-21 20:44 ` Dima Zavin 2011-01-21 20:44 ` Dima Zavin 2011-01-21 20:49 ` Daniel Walker 2011-01-21 20:49 ` Daniel Walker 2011-01-21 20:49 ` Daniel Walker 2011-01-21 21:01 ` Jesse Barnes 2011-01-21 21:01 ` Jesse Barnes 2011-01-21 21:01 ` Jesse Barnes 2011-01-21 21:26 ` Daniel Walker 2011-01-21 21:26 ` Daniel Walker 2011-01-21 21:42 ` Dima Zavin 2011-01-21 21:42 ` Dima Zavin 2011-01-21 21:42 ` Dima Zavin 2011-01-22 13:58 ` David Woodhouse 2011-01-22 13:58 ` David Woodhouse 2011-01-21 21:02 ` Joe Perches 2011-01-21 21:02 ` Joe Perches 2011-01-21 21:02 ` Joe Perches 2011-01-21 21:24 ` Daniel Walker 2011-01-21 21:24 ` Daniel Walker 2011-01-21 21:24 ` Daniel Walker 2011-01-22 11:18 ` Pekka Enberg 2011-01-22 11:18 ` Pekka Enberg 2011-01-22 11:18 ` Pekka Enberg 2011-01-22 12:20 ` Russell King - ARM Linux 2011-01-22 12:20 ` Russell King - ARM Linux 2011-01-22 18:06 ` Dima Zavin 2011-01-22 18:06 ` Dima Zavin 2011-01-22 18:06 ` Dima Zavin 2011-01-22 18:49 ` Russell King - ARM Linux 2011-01-22 18:49 ` Russell King - ARM Linux 2011-01-22 18:49 ` Russell King - ARM Linux 2011-01-22 20:50 ` Christoph Hellwig 2011-01-22 20:50 ` Christoph Hellwig 2011-01-22 19:22 ` Brian Swetland 2011-01-22 19:22 ` Brian Swetland 2011-01-22 19:49 ` Nicolas Pitre 2011-01-22 19:49 ` Nicolas Pitre 2011-01-22 19:59 ` Brian Swetland 2011-01-22 19:59 ` Brian Swetland 2011-01-22 19:59 ` Brian Swetland 2011-01-22 20:53 ` Christoph Hellwig 2011-01-22 20:53 ` Christoph Hellwig 2011-01-22 21:04 ` Russell King - ARM Linux 2011-01-22 21:04 ` Russell King - ARM Linux 2011-01-22 21:57 ` Alan Cox 2011-01-22 21:57 ` Alan Cox 2011-01-23 2:38 ` David Woodhouse 2011-01-23 2:38 ` David Woodhouse 2011-01-22 20:41 ` Christoph Hellwig 2011-01-22 20:41 ` Christoph Hellwig 2011-01-21 21:05 ` Pekka Enberg 2011-01-21 21:05 ` Pekka Enberg 2011-01-21 21:05 ` Pekka Enberg 2011-01-21 21:17 ` Joe Perches 2011-01-21 21:17 ` Joe Perches 2011-01-21 23:49 ` Ted Ts'o 2011-01-21 23:49 ` Ted Ts'o 2011-01-22 0:03 ` Daniel Walker 2011-01-22 0:03 ` Daniel Walker 2011-01-22 1:58 ` Steven Rostedt 2011-01-22 1:58 ` Steven Rostedt 2011-01-22 2:13 ` Daniel Walker 2011-01-22 2:13 ` Daniel Walker 2011-01-22 2:32 ` Steven Rostedt 2011-01-22 2:32 ` Steven Rostedt 2011-01-22 2:31 ` Ted Ts'o 2011-01-22 2:31 ` Ted Ts'o 2011-01-22 8:19 ` Pekka Enberg 2011-01-22 8:19 ` Pekka Enberg 2011-01-22 10:35 ` Dima Zavin 2011-01-22 10:35 ` Dima Zavin 2011-01-22 10:35 ` Dima Zavin 2011-01-22 10:45 ` Anca Emanuel 2011-01-22 10:45 ` Anca Emanuel 2011-01-22 10:45 ` Anca Emanuel 2011-01-22 11:03 ` Pekka Enberg 2011-01-22 11:03 ` Pekka Enberg 2011-01-22 11:15 ` Pekka Enberg 2011-01-22 11:15 ` Pekka Enberg 2011-01-22 17:28 ` Thomas Gleixner 2011-01-22 17:28 ` Thomas Gleixner 2011-01-22 18:07 ` Denis 'GNUtoo' Carikli 2011-01-22 18:07 ` Denis 'GNUtoo' Carikli 2011-01-22 18:07 ` Denis 'GNUtoo' Carikli 2011-01-22 18:15 ` Dima Zavin 2011-01-22 18:15 ` Dima Zavin 2011-01-22 18:15 ` Dima Zavin 2011-01-22 20:55 ` Christoph Hellwig 2011-01-22 20:55 ` Christoph Hellwig 2011-01-22 21:56 ` Pekka Enberg 2011-01-22 21:56 ` Pekka Enberg 2011-01-22 21:56 ` Pekka Enberg 2011-01-22 21:58 ` Christoph Hellwig 2011-01-22 21:58 ` Christoph Hellwig 2011-01-22 22:13 ` Pekka Enberg 2011-01-22 22:13 ` Pekka Enberg 2011-01-22 22:13 ` Pekka Enberg 2011-02-04 13:36 ` Pavel Machek 2011-02-04 13:36 ` Pavel Machek 2011-02-07 17:36 ` Daniel Walker 2011-02-07 17:36 ` Daniel Walker 2011-02-07 17:36 ` Daniel Walker
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1295555565-21563-2-git-send-email-dwalker@codeaurora.org \ --to=dwalker@codeaurora.org \ --cc=davidb@codeaurora.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.