From: Randy Dunlap <rdunlap@xenotime.net>
To: "Igor M. Liplianin" <liplianin@me.by>
Cc: mchehab@infradead.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, aospan@netup.ru
Subject: Re: [PATCH 01/18] Altera FPGA firmware download module.
Date: Thu, 30 Dec 2010 21:39:15 -0800 [thread overview]
Message-ID: <20101230213915.3842b3ca.rdunlap@xenotime.net> (raw)
In-Reply-To: <201012310726.31851.liplianin@netup.ru>
On Fri, 31 Dec 2010 08:26:31 +0300 Igor M. Liplianin wrote:
> It uses STAPL files and programs Altera FPGA through JTAG.
> Interface to JTAG must be provided from main device module,
> for example through cx23885 GPIO.
>
> Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
> ---
> drivers/misc/Kconfig | 1 +
> drivers/misc/Makefile | 1 +
> drivers/misc/altera-stapl/Kconfig | 8 +
> drivers/misc/altera-stapl/Makefile | 3 +
> drivers/misc/altera-stapl/altera-comp.c | 142 ++
> drivers/misc/altera-stapl/altera-exprt.h | 33 +
> drivers/misc/altera-stapl/altera-jtag.c | 1010 ++++++++++++
> drivers/misc/altera-stapl/altera-jtag.h | 113 ++
> drivers/misc/altera-stapl/altera-lpt.c | 70 +
> drivers/misc/altera-stapl/altera.c | 2484 ++++++++++++++++++++++++++++++
> include/misc/altera.h | 49 +
> 11 files changed, 3914 insertions(+), 0 deletions(-)
> create mode 100644 drivers/misc/altera-stapl/Kconfig
> create mode 100644 drivers/misc/altera-stapl/Makefile
> create mode 100644 drivers/misc/altera-stapl/altera-comp.c
> create mode 100644 drivers/misc/altera-stapl/altera-exprt.h
> create mode 100644 drivers/misc/altera-stapl/altera-jtag.c
> create mode 100644 drivers/misc/altera-stapl/altera-jtag.h
> create mode 100644 drivers/misc/altera-stapl/altera-lpt.c
> create mode 100644 drivers/misc/altera-stapl/altera.c
> create mode 100644 include/misc/altera.h
>
> diff --git a/drivers/misc/altera-stapl/Kconfig b/drivers/misc/altera-stapl/Kconfig
> new file mode 100644
> index 0000000..711a4a2
> --- /dev/null
> +++ b/drivers/misc/altera-stapl/Kconfig
> @@ -0,0 +1,8 @@
> +comment "Altera FPGA firmware download module"
> +
> +config ALTERA_STAPL
> + tristate "Altera FPGA firmware download module"
> + depends on I2C
> + default m
> + help
Please do not enable random drivers to build by default.
> +static int altera_get_note(u8 *p, s32 program_size,
> + s32 *offset, char *key, char *value, int length)
> +/*
> +Gets key and value of NOTE fields in the JBC file.
> +Can be called in two modes: if offset pointer is NULL,
> +then the function searches for note fields which match
> +the key string provided. If offset is not NULL, then
> +the function finds the next note field of any key,
> +starting at the offset specified by the offset pointer.
> +Returns 0 for success, else appropriate error code */
> +{
/*
* Throughout all source files:
* The multi-line comment format for Linux kernel is like this multi-line comment.
*/
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
desserts: http://www.xenotime.net/linux/recipes/
next prev parent reply other threads:[~2010-12-31 5:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-31 5:26 Igor M. Liplianin
2010-12-31 5:39 ` Randy Dunlap [this message]
2010-12-31 10:53 ` Mauro Carvalho Chehab
2011-01-01 0:39 ` Igor M. Liplianin
2010-12-31 11:12 ` Laurent Pinchart
2010-12-31 11:27 ` Mauro Carvalho Chehab
2010-12-31 11:30 ` Laurent Pinchart
2010-12-31 11:47 ` Mauro Carvalho Chehab
2010-12-31 15:04 ` Ben Gamari
2011-01-05 10:26 ` Laurent Pinchart
2011-01-10 20:10 ` Igor M. Liplianin
2011-01-07 19:31 ` Ben Gamari
2011-01-16 17:04 ` Mauro Carvalho Chehab
2010-12-31 11:37 Igor M. Liplianin
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=20101230213915.3842b3ca.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=aospan@netup.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=liplianin@me.by \
--cc=mchehab@infradead.org \
/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
all inboxes | Powered by JetHome®