From: Wolfgang Grandegger <wg@grandegger.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] CAN framework in U-Boot
Date: Thu, 02 May 2013 09:01:59 +0200 [thread overview]
Message-ID: <51820F67.6020305@grandegger.com> (raw)
In-Reply-To: <CAFTCetRKTSnxKP5egKEc+V7=Oin7ryYHuU3xtU8kKJz12Aw5hA@mail.gmail.com>
Hi Bhupesh,
On 05/01/2013 06:17 AM, Bhupesh SHARMA wrote:
> Hi Wolfgang G. and list,
>
> I was looking to do some basic tests on a C_CAN module inside our SOC at
> u-boot
> level, till the Linux OS is up and working to test basic CAN features.
>
> I couldn't figure out if CAN framework is supported in u-boot and would
> really appreciate if
> someone can help me out regarding the same.
>
> I could see the sja1000 header present inside 'include/sja1000.h', and some
> old patches
> from Wolfgang G. (see [1]), but couldn't figure out if these patches were
> accepted into u-boot.
>
> Any help will be much appreaciated.
>
> [1]. http://article.gmane.org/gmane.comp.boot-loaders.u-boot/70864
There is no generic CAN interface in U-Boot yet. The "sja1000.h" header
file is used for some basic CAN loopback test commands and there are
others, e.g. for the MSCAN. I have hacked something recently for Flexcan:
+U_BOOT_CMD(
+ can_test, CONFIG_SYS_MAXARGS, 1, do_can_test,
+ "transfer and check messages between two CAN controllers",
+ "[kb-per-sec] [repeat-count]"
+);
Unfortunately, those commands are all board specific. A more generic
approach is appreciated, of course.
Wolfgang.
next prev parent reply other threads:[~2013-05-02 7:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 4:17 [U-Boot] CAN framework in U-Boot Bhupesh SHARMA
2013-05-02 7:01 ` Wolfgang Grandegger [this message]
2013-05-02 8:51 ` Bhupesh SHARMA
2013-05-02 9:08 ` Wolfgang Grandegger
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=51820F67.6020305@grandegger.com \
--to=wg@grandegger.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox