]> git.karo-electronics.de Git - karo-tx-linux.git/commit
samples/rpmsg: add an rpmsg driver sample
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 20 Oct 2011 19:41:24 +0000 (21:41 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Fri, 9 Dec 2011 14:32:12 +0000 (16:32 +0200)
commitd275b1bfd2a7ecb180174cc8ac9bcc9497cb8e27
treec299d49c75d409ef343cacde426d23259f4a3648
parent061c8adb19b4b7a45454fcb3eb844616af26643c
samples/rpmsg: add an rpmsg driver sample

Add an rpmsg driver sample, which demonstrates how to communicate with
an AMP-configured remote processor over the rpmsg bus.

Note how once probed, the driver can immediately start sending messages
using the rpmsg_send() API, without having to worry about creating endpoints
or allocating rpmsg addresses: all that work is done by the rpmsg bus,
and the required information is already embedded in the rpmsg channel
that the driver is probed with.

In this sample, the driver simply sends a "Hello World!" message to the remote
processor repeatedly.

Designed with Brian Swetland <swetland@google.com>.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <greg@kroah.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
samples/Kconfig
samples/Makefile
samples/rpmsg/Makefile [new file with mode: 0644]
samples/rpmsg/rpmsg_client_sample.c [new file with mode: 0644]