* [PATCH v2 0/2] Enable CAN peripheral support on AM3517
@ 2010-02-26 12:07 Sriramakrishnan
2010-02-26 12:07 ` [PATCH v2 1/2] can:ti_hecc: board specific hookup on AM3517EVM Sriramakrishnan
2010-04-01 14:11 ` [PATCH v2 0/2] Enable CAN peripheral " Govindarajan, Sriramakrishnan
0 siblings, 2 replies; 5+ messages in thread
From: Sriramakrishnan @ 2010-02-26 12:07 UTC (permalink / raw
To: linux-omap; +Cc: anantgole, Sriramakrishnan
AM3517 platform includes the ti-hecc CAN peripheral. This patch
series enables support for the ti-hecc peripheral on AM3517 platform.
This patch series has been validated on AM3517EVM.
This patch is generated against tip of linux-omap.
Sriramakrishnan (2):
can:ti_hecc: board specific hookup on AM3517EVM
can:ti_hecc: Enable CAN support on AM3517.
arch/arm/configs/am3517_evm_defconfig | 22 +++++++++++++---
arch/arm/mach-omap2/board-am3517evm.c | 38 +++++++++++++++++++++++++++++
arch/arm/mach-omap2/include/mach/am35xx.h | 9 +++++++
3 files changed, 65 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] can:ti_hecc: board specific hookup on AM3517EVM
2010-02-26 12:07 [PATCH v2 0/2] Enable CAN peripheral support on AM3517 Sriramakrishnan
@ 2010-02-26 12:07 ` Sriramakrishnan
2010-02-26 12:07 ` [PATCH v2 2/2] can:ti_hecc: Enable CAN support on AM3517 Sriramakrishnan
2010-04-01 14:11 ` [PATCH v2 0/2] Enable CAN peripheral " Govindarajan, Sriramakrishnan
1 sibling, 1 reply; 5+ messages in thread
From: Sriramakrishnan @ 2010-02-26 12:07 UTC (permalink / raw
To: linux-omap; +Cc: anantgole, Sriramakrishnan
Add board specific hookup for TI HECC driver on
AM3517 EVM
Signed-off-by: Sriramakrishnan <srk@ti.com>
---
Addressed review comments about formatting and patch ordering.
arch/arm/mach-omap2/board-am3517evm.c | 38 +++++++++++++++++++++++++++++
arch/arm/mach-omap2/include/mach/am35xx.h | 9 +++++++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index e6b8967..ddcfa07 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -21,6 +21,7 @@
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/i2c/pca953x.h>
+#include <linux/can/platform/ti_hecc.h>
#include <mach/hardware.h>
#include <mach/am35xx.h>
@@ -292,6 +293,42 @@ static struct omap_board_mux board_mux[] __initdata = {
#define board_mux NULL
#endif
+
+static struct resource am3517_hecc_resources[] = {
+ {
+ .start = AM35XX_IPSS_HECC_BASE,
+ .end = AM35XX_IPSS_HECC_BASE + 0x3FFF,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .start = INT_35XX_HECC0_IRQ,
+ .end = INT_35XX_HECC0_IRQ,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device am3517_hecc_device = {
+ .name = "ti_hecc",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(am3517_hecc_resources),
+ .resource = am3517_hecc_resources,
+};
+
+static struct ti_hecc_platform_data am3517_evm_hecc_pdata = {
+ .scc_hecc_offset = AM35XX_HECC_SCC_HECC_OFFSET,
+ .scc_ram_offset = AM35XX_HECC_SCC_RAM_OFFSET,
+ .hecc_ram_offset = AM35XX_HECC_RAM_OFFSET,
+ .mbx_offset = AM35XX_HECC_MBOX_OFFSET,
+ .int_line = AM35XX_HECC_INT_LINE,
+ .version = AM35XX_HECC_VERSION,
+};
+
+static void am3517_evm_hecc_init(struct ti_hecc_platform_data *pdata)
+{
+ am3517_hecc_device.dev.platform_data = pdata;
+ platform_device_register(&am3517_hecc_device);
+}
+
static void __init am3517_evm_init(void)
{
am3517_evm_i2c_init();
@@ -302,6 +339,7 @@ static void __init am3517_evm_init(void)
omap_serial_init();
usb_ehci_init(&ehci_pdata);
+ am3517_evm_hecc_init(&am3517_evm_hecc_pdata);
/* DSS */
am3517_evm_display_init();
diff --git a/arch/arm/mach-omap2/include/mach/am35xx.h b/arch/arm/mach-omap2/include/mach/am35xx.h
index a705f94..0636263 100644
--- a/arch/arm/mach-omap2/include/mach/am35xx.h
+++ b/arch/arm/mach-omap2/include/mach/am35xx.h
@@ -23,4 +23,13 @@
#define AM35XX_IPSS_HECC_BASE 0x5C050000
#define AM35XX_IPSS_VPFE_BASE 0x5C060000
+
+/* HECC module specifc offset definitions */
+#define AM35XX_HECC_SCC_HECC_OFFSET (0x0)
+#define AM35XX_HECC_SCC_RAM_OFFSET (0x3000)
+#define AM35XX_HECC_RAM_OFFSET (0x3000)
+#define AM35XX_HECC_MBOX_OFFSET (0x2000)
+#define AM35XX_HECC_INT_LINE (0x0)
+#define AM35XX_HECC_VERSION (0x1)
+
#endif /* __ASM_ARCH_AM35XX_H */
--
1.6.2.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] can:ti_hecc: Enable CAN support on AM3517.
2010-02-26 12:07 ` [PATCH v2 1/2] can:ti_hecc: board specific hookup on AM3517EVM Sriramakrishnan
@ 2010-02-26 12:07 ` Sriramakrishnan
2010-05-04 22:26 ` [APPLIED] " Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Sriramakrishnan @ 2010-02-26 12:07 UTC (permalink / raw
To: linux-omap; +Cc: anantgole, Sriramakrishnan
Modify the default kernel configuration on AM3517 to enable CAN.
Signed-off-by: Sriramakrishnan <srk@ti.com>
---
arch/arm/configs/am3517_evm_defconfig | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/arch/arm/configs/am3517_evm_defconfig b/arch/arm/configs/am3517_evm_defconfig
index abe9966..d5e15ba 100644
--- a/arch/arm/configs/am3517_evm_defconfig
+++ b/arch/arm/configs/am3517_evm_defconfig
@@ -422,15 +422,29 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
-# CONFIG_CAN is not set
+CONFIG_CAN=y
+CONFIG_CAN_RAW=y
+CONFIG_CAN_BCM=y
+
+#
+# CAN Device Drivers
+#
+CONFIG_CAN_VCAN=y
+CONFIG_CAN_DEV=y
+CONFIG_CAN_CALC_BITTIMING=y
+CONFIG_CAN_TI_HECC=y
+# CONFIG_CAN_SJA1000 is not set
+
+#
+# CAN USB interfaces
+#
+# CONFIG_CAN_EMS_USB is not set
+CONFIG_CAN_DEBUG_DEVICES=y
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
CONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
-CONFIG_CFG80211_DEFAULT_PS_VALUE=0
-# CONFIG_WIRELESS_OLD_REGULATORY is not set
-# CONFIG_WIRELESS_EXT is not set
# CONFIG_LIB80211 is not set
#
--
1.6.2.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH v2 0/2] Enable CAN peripheral support on AM3517
2010-02-26 12:07 [PATCH v2 0/2] Enable CAN peripheral support on AM3517 Sriramakrishnan
2010-02-26 12:07 ` [PATCH v2 1/2] can:ti_hecc: board specific hookup on AM3517EVM Sriramakrishnan
@ 2010-04-01 14:11 ` Govindarajan, Sriramakrishnan
1 sibling, 0 replies; 5+ messages in thread
From: Govindarajan, Sriramakrishnan @ 2010-04-01 14:11 UTC (permalink / raw
To: Govindarajan, Sriramakrishnan, linux-omap@vger.kernel.org; +Cc: Gole, Anant
> -----Original Message-----
> From: Govindarajan, Sriramakrishnan
> Sent: Friday, February 26, 2010 5:37 PM
> To: linux-omap@vger.kernel.org
> Cc: Gole, Anant; Govindarajan, Sriramakrishnan
> Subject: [PATCH v2 0/2] Enable CAN peripheral support on AM3517
>
> AM3517 platform includes the ti-hecc CAN peripheral. This patch
> series enables support for the ti-hecc peripheral on AM3517 platform.
> This patch series has been validated on AM3517EVM.
>
> This patch is generated against tip of linux-omap.
>
> Sriramakrishnan (2):
> can:ti_hecc: board specific hookup on AM3517EVM
> can:ti_hecc: Enable CAN support on AM3517.
>
> arch/arm/configs/am3517_evm_defconfig | 22 +++++++++++++---
> arch/arm/mach-omap2/board-am3517evm.c | 38
> +++++++++++++++++++++++++++++
> arch/arm/mach-omap2/include/mach/am35xx.h | 9 +++++++
> 3 files changed, 65 insertions(+), 4 deletions(-)
[Sriram] Tony,
Any comments on this patch
Thanks,
Sriram
^ permalink raw reply [flat|nested] 5+ messages in thread
* [APPLIED] [PATCH v2 2/2] can:ti_hecc: Enable CAN support on AM3517.
2010-02-26 12:07 ` [PATCH v2 2/2] can:ti_hecc: Enable CAN support on AM3517 Sriramakrishnan
@ 2010-05-04 22:26 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2010-05-04 22:26 UTC (permalink / raw
To: linux-omap
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.
Branch in linux-omap: for-next
Initial commit ID (Likely to change): 7241145120e803b600fc5aa1ef911c80ab68d1d5
PatchWorks
http://patchwork.kernel.org/patch/82312/
Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=7241145120e803b600fc5aa1ef911c80ab68d1d5
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-04 22:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 12:07 [PATCH v2 0/2] Enable CAN peripheral support on AM3517 Sriramakrishnan
2010-02-26 12:07 ` [PATCH v2 1/2] can:ti_hecc: board specific hookup on AM3517EVM Sriramakrishnan
2010-02-26 12:07 ` [PATCH v2 2/2] can:ti_hecc: Enable CAN support on AM3517 Sriramakrishnan
2010-05-04 22:26 ` [APPLIED] " Tony Lindgren
2010-04-01 14:11 ` [PATCH v2 0/2] Enable CAN peripheral " Govindarajan, Sriramakrishnan
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.