* [PATCH V3 1/1] mx35pdk: add debug board support
@ 2010-10-21 8:15 jgq516 at gmail.com
2010-10-22 10:38 ` xiao jiang
0 siblings, 1 reply; 4+ messages in thread
From: jgq516 at gmail.com @ 2010-10-21 8:15 UTC (permalink / raw)
To: linux-arm-kernel
From: Xiao Jiang <jgq516@gmail.com>
Enable debug board support for mx35pdk.
Signed-off-by: Xiao Jiang <jgq516@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Change since v2:
- s/board/debugboard per Bacuch's comment.
Change since v1:
- Add MXC_DEBUG_BOARD in Kconfig per Fabio's comment.
- Redefinition EXPIO_PARENT_INT per Fabio's comment.
arch/arm/mach-mx3/Kconfig | 1 +
arch/arm/mach-mx3/mach-mx35_3ds.c | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig
index 85beece..cdf6ac5 100644
--- a/arch/arm/mach-mx3/Kconfig
+++ b/arch/arm/mach-mx3/Kconfig
@@ -139,6 +139,7 @@ config MACH_ARMADILLO5X0
config MACH_MX35_3DS
bool "Support MX35PDK platform"
select ARCH_MX35
+ select MXC_DEBUG_BOARD
select IMX_HAVE_PLATFORM_IMX_UART
default n
help
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c
index 1c30d72..eafe168 100644
--- a/arch/arm/mach-mx3/mach-mx35_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
@@ -35,10 +35,14 @@
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/iomux-mx35.h>
+#include <mach/irqs.h>
+#include <mach/3ds_debugboard.h>
#include "devices-imx35.h"
#include "devices.h"
+#define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTA + 1)
+
static const struct imxuart_platform_data uart_pdata __initconst = {
.flags = IMXUART_HAVE_RTSCTS,
};
@@ -95,6 +99,10 @@ static void __init mxc_board_init(void)
imx35_add_imx_uart0(&uart_pdata);
mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
+
+ if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
+ pr_warn("Init of the debugboard failed, all "
+ "devices on the debugboard are unusable.\n");
}
static void __init mx35pdk_timer_init(void)
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH V3 1/1] mx35pdk: add debug board support
2010-10-21 8:15 [PATCH V3 1/1] mx35pdk: add debug board support jgq516 at gmail.com
@ 2010-10-22 10:38 ` xiao jiang
2010-10-22 11:05 ` Fabio Estevam
0 siblings, 1 reply; 4+ messages in thread
From: xiao jiang @ 2010-10-22 10:38 UTC (permalink / raw)
To: linux-arm-kernel
Hi Sascha,
Could you apply the patch in your tree, I have regenrated the patch based on
for-rmk-next branch of your tree, pls check the attached patch.
Thanks,
Xiao Jiang
2010/10/21 <jgq516@gmail.com>
> From: Xiao Jiang <jgq516@gmail.com>
>
> Enable debug board support for mx35pdk.
>
> Signed-off-by: Xiao Jiang <jgq516@gmail.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Change since v2:
> - s/board/debugboard per Bacuch's comment.
>
> Change since v1:
> - Add MXC_DEBUG_BOARD in Kconfig per Fabio's comment.
> - Redefinition EXPIO_PARENT_INT per Fabio's comment.
>
> arch/arm/mach-mx3/Kconfig | 1 +
> arch/arm/mach-mx3/mach-mx35_3ds.c | 8 ++++++++
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig
> index 85beece..cdf6ac5 100644
> --- a/arch/arm/mach-mx3/Kconfig
> +++ b/arch/arm/mach-mx3/Kconfig
> @@ -139,6 +139,7 @@ config MACH_ARMADILLO5X0
> config MACH_MX35_3DS
> bool "Support MX35PDK platform"
> select ARCH_MX35
> + select MXC_DEBUG_BOARD
> select IMX_HAVE_PLATFORM_IMX_UART
> default n
> help
> diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c
> b/arch/arm/mach-mx3/mach-mx35_3ds.c
> index 1c30d72..eafe168 100644
> --- a/arch/arm/mach-mx3/mach-mx35_3ds.c
> +++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
> @@ -35,10 +35,14 @@
> #include <mach/hardware.h>
> #include <mach/common.h>
> #include <mach/iomux-mx35.h>
> +#include <mach/irqs.h>
> +#include <mach/3ds_debugboard.h>
>
> #include "devices-imx35.h"
> #include "devices.h"
>
> +#define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTA + 1)
> +
> static const struct imxuart_platform_data uart_pdata __initconst = {
> .flags = IMXUART_HAVE_RTSCTS,
> };
> @@ -95,6 +99,10 @@ static void __init mxc_board_init(void)
> imx35_add_imx_uart0(&uart_pdata);
>
> mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
> +
> + if (mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
> + pr_warn("Init of the debugboard failed, all "
> + "devices on the debugboard are unusable.\n");
> }
>
> static void __init mx35pdk_timer_init(void)
> --
> 1.6.3.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101022/863e0fe4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mx35pdk-add-debug-board-support-based-rmk-next.patch
Type: application/octet-stream
Size: 1814 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101022/863e0fe4/attachment.obj>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V3 1/1] mx35pdk: add debug board support
2010-10-22 10:38 ` xiao jiang
@ 2010-10-22 11:05 ` Fabio Estevam
2010-10-22 12:58 ` xiao jiang
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2010-10-22 11:05 UTC (permalink / raw)
To: linux-arm-kernel
Xiao,
On Fri, Oct 22, 2010 at 8:38 AM, xiao jiang <jgq516@gmail.com> wrote:
> Hi Sascha,
>
> Could you apply the patch in your tree, I have regenrated the patch based on
> for-rmk-next branch of your tree, pls check the attached patch.
This patch is in imx-for-2.6.37 git tree now.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V3 1/1] mx35pdk: add debug board support
2010-10-22 11:05 ` Fabio Estevam
@ 2010-10-22 12:58 ` xiao jiang
0 siblings, 0 replies; 4+ messages in thread
From: xiao jiang @ 2010-10-22 12:58 UTC (permalink / raw)
To: linux-arm-kernel
Good to know! :0
Thanks,
Xiao Jiang
2010/10/22, Fabio Estevam <festevam@gmail.com>:
> Xiao,
>
> On Fri, Oct 22, 2010 at 8:38 AM, xiao jiang <jgq516@gmail.com> wrote:
>> Hi Sascha,
>>
>> Could you apply the patch in your tree, I have regenrated the patch based
>> on
>> for-rmk-next branch of your tree, pls check the attached patch.
>
> This patch is in imx-for-2.6.37 git tree now.
>
> Regards,
>
> Fabio Estevam
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-22 12:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 8:15 [PATCH V3 1/1] mx35pdk: add debug board support jgq516 at gmail.com
2010-10-22 10:38 ` xiao jiang
2010-10-22 11:05 ` Fabio Estevam
2010-10-22 12:58 ` xiao jiang
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).