All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: "AnilKumar, Chimata" <anilkumar@ti.com>
Cc: Wolfgang Grandegger <wg@grandegger.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	"m.kleine-budde@pengutronix.de" <m.kleine-budde@pengutronix.de>,
	"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
	"Gole, Anant" <anantgole@ti.com>, "Nori, Sekhar" <nsekhar@ti.com>
Subject: Re: [PATCH] ARM: OMAP: AM33XX: CAN: d_can: Add support for Bosch D_CAN controller
Date: Thu, 05 Apr 2012 08:20:01 -0600	[thread overview]
Message-ID: <4F7DAA11.6080109@mlbassoc.com> (raw)
In-Reply-To: <331ABD5ECB02734CA317220B2BBEABC1317DACC6@DBDE01.ent.ti.com>

On 2012-04-05 08:15, AnilKumar, Chimata wrote:
> [dropped some cross-posted lists I had added as requested by Oliver]
>
> On Wed, Apr 04, 2012 at 21:51:41, Wolfgang Grandegger wrote:
>
>> I did look into the manual. Unfortunately, a direct mapping of the C_CAN
>> to the D_CAN registers seems not possible. It's not just a different
>> alignment but sometimes two 16-bit C_CAN registers are folded into *one*
>> 32-bit D_CAN register. Therefore we need something more clever, e.g.
>
> Yes, it's definitely not straightforward.
>
>> using a separate struct or union or handling those register separately.
>> I still think, if feasible, we should avoid an extra driver for the
>> D_CAN controller, also because we sooner than later need the same
>> infrastructure (register_c_can_dev etc.).
>
> Okay, I started hacking the c_can driver to add d_can support
> this way. I will update soon with results/patches.
>
> I hope too that we don't have to add an extra driver.

Sorry to drop in late on this discussion, but what's wrong with
just using the d_can driver from TI?  I have successfully used
it on AM3874 and I'm pretty sure that maps onto AM33xx as well.

Note: as far as I know, this driver is only in the TI PSP kernels.
I extracted it from an Angstrom build for the BeagleBone which
is AM33xx based.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

  reply	other threads:[~2012-04-05 14:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 12:32 [PATCH] ARM: OMAP: AM33XX: CAN: d_can: Add support for Bosch D_CAN controller AnilKumar Ch
2012-04-03 12:32 ` AnilKumar Ch
2012-04-03 12:39 ` AnilKumar, Chimata
2012-04-03 15:54   ` Oliver Hartkopp
2012-04-03 18:07     ` AnilKumar, Chimata
2012-04-03 12:44 ` Wolfgang Grandegger
2012-04-03 12:49   ` Marc Kleine-Budde
2012-04-03 13:41   ` AnilKumar, Chimata
2012-04-03 13:49     ` Marc Kleine-Budde
2012-04-03 14:29       ` AnilKumar, Chimata
2012-04-03 15:33         ` Marc Kleine-Budde
2012-04-03 15:58           ` AnilKumar, Chimata
2012-04-04  3:43             ` Bhupesh SHARMA
2012-04-04 16:21             ` Wolfgang Grandegger
2012-04-05 14:15               ` AnilKumar, Chimata
2012-04-05 14:20                 ` Gary Thomas [this message]
2012-04-05 15:54                   ` Gole, Anant
2012-04-05 16:00                     ` Gary Thomas

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=4F7DAA11.6080109@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=anantgole@ti.com \
    --cc=anilkumar@ti.com \
    --cc=linux-can@vger.kernel.org \
    --cc=m.kleine-budde@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=nsekhar@ti.com \
    --cc=wg@grandegger.com \
    /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: link
Be 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.