public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [v3 PATCH 02/12] arm, at91: add spi dataflash support for the taurus board
Date: Thu, 06 Nov 2014 00:36:58 +0100	[thread overview]
Message-ID: <545AB49A.2040307@googlemail.com> (raw)
In-Reply-To: <54538117.5070606@denx.de>

Dear Jagan Teki,

On 31.10.14 13:31, Heiko Schocher wrote:
> Hello Jagan,
> 
> Am 31.10.2014 11:48, schrieb Jagan Teki:
>> On 31 October 2014 13:00, Heiko Schocher<hs@denx.de>  wrote:
>>> Signed-off-by: Heiko Schocher<hs@denx.de>
>>> Reviewed-by: Bo Shen<voice.shen@atmel.com>
>>>
>>> ---
>>>
>>> Changes in v3:
>>> add Reviewed-by from Bo Shen
>>>
>>> Changes in v2:
>>> - add comment from Jagan Teki:
>>>    - remove spi_init_f() from board file
>>>    - remove CONFIG_SYS_SPI_WRITE_TOUT from board config file
>>>      instead define a default in the spi driver ->  new patch for v2
>>>
>>>   board/siemens/taurus/taurus.c | 18 ++++++++++++++++++
>>>   include/configs/taurus.h      | 10 ++++++++++
>>>   2 files changed, 28 insertions(+)
>>>
>>> diff --git a/board/siemens/taurus/taurus.c
>>> b/board/siemens/taurus/taurus.c
>>> index 673b302..76609c7 100644
>>> --- a/board/siemens/taurus/taurus.c
>>> +++ b/board/siemens/taurus/taurus.c
>>> @@ -22,6 +22,8 @@
>>>   #include<asm/arch/gpio.h>
>>>   #include<asm/arch/at91sam9_sdramc.h>
>>>   #include<atmel_mci.h>
>>> +#include<asm/arch/at91_spi.h>
>>> +#include<spi.h>
>>>
>>>   #include<net.h>
>>>   #include<netdev.h>
>>> @@ -127,6 +129,21 @@ int board_early_init_f(void)
>>>          return 0;
>>>   }
>>>
>>> +int spi_cs_is_valid(unsigned int bus, unsigned int cs)
>>> +{
>>> +       return bus == 0&&  cs == 0;
>>> +}
>>> +
>>> +void spi_cs_activate(struct spi_slave *slave)
>>> +{
>>> +       at91_set_gpio_value(TAURUS_SPI_CS_PIN, 0);
>>> +}
>>> +
>>> +void spi_cs_deactivate(struct spi_slave *slave)
>>> +{
>>> +       at91_set_gpio_value(TAURUS_SPI_CS_PIN, 1);
>>> +}
>>> +
>>
>> Please add all these stuff in drivers/spi/atmel_spi.c
>>
>> Did you see any issues?
> 
> Hmm.. this is board specific ... or?

Heiko is right, this is board specific and follows the current way to
implement spi for the atmel driver.
But Jagan is also right, we should move this code to the driver code
cause in fact it is parametrisation of generic code. Unfortunately this
change will blow up this series. I think we should consider this when
rewriting the atmel spi driver for dm, which will be done soon (but I
think not in this merge window). Jagan, is this Ok for you?

Best regards

Andreas Bie?mann

  reply	other threads:[~2014-11-05 23:36 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-31  7:30 [U-Boot] [v3 PATCH 0/12] arm, at91, spl: add spl support for the taurus and corvus boards Heiko Schocher
2014-10-31  7:30 ` [U-Boot] [v3 PATCH 01/12] spi, atmel: move CONFIG_SYS_SPI_WRITE_TOUT into common header Heiko Schocher
2014-10-31 11:18   ` Jagan Teki
2014-11-06  0:22   ` Andreas Bießmann
2014-11-17 12:15   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:30 ` [U-Boot] [v3 PATCH 02/12] arm, at91: add spi dataflash support for the taurus board Heiko Schocher
2014-10-31 10:48   ` Jagan Teki
2014-10-31 12:31     ` Heiko Schocher
2014-11-05 23:36       ` Andreas Bießmann [this message]
2014-11-06  6:48         ` Jagan Teki
2014-11-05 23:26   ` Andreas Bießmann
2014-11-17 12:15   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:30 ` [U-Boot] [v3 PATCH 03/12] arm, at91, mpddrc: fix typo in ddr2_init() Heiko Schocher
2014-11-17 12:15   ` [U-Boot] [U-Boot,v3,03/12] " Andreas Bießmann
2014-10-31  7:30 ` [U-Boot] [v3 PATCH 04/12] arm, at91: compile mpddrc ram init code also for AT91SAM9M10G45 Heiko Schocher
2014-11-17 12:15   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:30 ` [U-Boot] [v3 PATCH 05/12] arm, at91: add missing ddr2 cr register MPDDRC_CR_EBISHARE define Heiko Schocher
2014-11-17 12:15   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 06/12] spl, nand: add option to boot raw u-boot.bin image only Heiko Schocher
2014-11-17 12:15   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 07/12] mtd: atmel_nand: add missign include Heiko Schocher
2014-10-31  7:43   ` Bo Shen
2014-10-31  8:02     ` Heiko Schocher
2014-11-05 23:38       ` Andreas Bießmann
2014-11-17 12:16   ` [U-Boot] [U-Boot,v3,07/12] mtd: atmel_nand: add missing include Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 08/12] spl, nand, atmel_nand: add erase one block function Heiko Schocher
2014-11-06  0:12   ` Andreas Bießmann
2014-11-17 12:16   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 09/12] spl, mtd, nand, atmel_nand: invert device ready pin logic Heiko Schocher
2014-11-17 12:16   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 10/12] arm, spl, at91: add at91sam9260 and at91sam9g45 spl support Heiko Schocher
2014-11-06  0:17   ` Andreas Bießmann
2014-11-17 12:16   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 11/12] arm, at91, spl: add spl support for the taurus board Heiko Schocher
2014-11-17 12:16   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-10-31  7:31 ` [U-Boot] [v3 PATCH 12/12] arm, spl, at91: add spl support for the corvus board Heiko Schocher
2014-11-06  0:20   ` Andreas Bießmann
2014-11-17 12:16   ` [U-Boot] [U-Boot, v3, " Andreas Bießmann
2014-11-06  0:24 ` [U-Boot] [v3 PATCH 0/12] arm, at91, spl: add spl support for the taurus and corvus boards Andreas Bießmann
2014-11-06  7:10   ` Heiko Schocher

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=545AB49A.2040307@googlemail.com \
    --to=andreas.devel@googlemail.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