From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] video, lg4573: make spi bus and cs configurable
Date: Mon, 31 Aug 2015 18:52:12 +0200 [thread overview]
Message-ID: <55E4863C.2030600@denx.de> (raw)
In-Reply-To: <1440409001-25732-1-git-send-email-hs@denx.de>
On 24/08/2015 11:36, Heiko Schocher wrote:
> make the spi bus and the spi chipselect configurable
> for the lg4573 driver. Use it on the aristainetos
> boards.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
>
> ---
>
> Changes in v2:
> - add comments from Stefano Babic
> - move this patch before the 2b aristainetos board support
> and add there the spi bus settings for the display
> - rebased against u-boot-imx
> e1518ebda736a1225c4c2a651e21c446dee3fdb0
>
> drivers/video/lg4573.c | 3 ++-
> include/configs/aristainetos2.h | 2 ++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c
> index 43670fc..11fef27 100644
> --- a/drivers/video/lg4573.c
> +++ b/drivers/video/lg4573.c
> @@ -220,7 +220,8 @@ err_claim_bus:
> static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc,
> char * const argv[])
> {
> - lg4573_spi_startup(0, 0, 10000000, SPI_MODE_0);
> + lg4573_spi_startup(CONFIG_LG4573_BUS, CONFIG_LG4573_CS, 10000000,
> + SPI_MODE_0);
> return 0;
> }
>
> diff --git a/include/configs/aristainetos2.h b/include/configs/aristainetos2.h
> index faeafe2..dd090c5 100644
> --- a/include/configs/aristainetos2.h
> +++ b/include/configs/aristainetos2.h
> @@ -45,6 +45,8 @@
> /* Framebuffer */
> #define CONFIG_SYS_LDB_CLOCK 33246000
> #define CONFIG_LG4573
> +#define CONFIG_LG4573_BUS 0
> +#define CONFIG_LG4573_CS 0
>
> #define CONFIG_CMD_BMP
>
>
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
prev parent reply other threads:[~2015-08-31 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 9:36 [U-Boot] [PATCH v2 1/2] video, lg4573: make spi bus and cs configurable Heiko Schocher
2015-08-24 9:36 ` [U-Boot] [PATCH v2 2/2] arm, imx6: add aristainetos 2b board version Heiko Schocher
2015-08-31 16:52 ` Stefano Babic
2015-08-24 10:27 ` [U-Boot] [PATCH v2 1/2] video, lg4573: make spi bus and cs configurable Anatolij Gustschin
2015-08-31 16:52 ` Stefano Babic [this message]
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=55E4863C.2030600@denx.de \
--to=sbabic@denx.de \
--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 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.