All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Wang Haikun <Haikun.Wang@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/4] arm: ls102xa: Enable Driver Model SPI for ls1021atwr
Date: Wed, 17 Jun 2015 09:11:33 +0000	[thread overview]
Message-ID: <DM2PR0301MB062308EBBA28FCA269CB8C05F8A60@DM2PR0301MB0623.namprd03.prod.outlook.com> (raw)
In-Reply-To: CAD6G_RTJ4aTAND-sL7Ue8znmsWqJu0rppTwiJ7a7BDc1w747ew@mail.gmail.com

On 6/16/2015 4:55 PM, Jagan Teki wrote:
> Pls- resend this series by adding Data Flash driver to it.
In fact we only have Atmel Dataflash on ls1021aqds board.
And I have add the "#define CONFIG_SF_DATAFLASH" in ls1021aqds.h.
Please see below patch:
[U-Boot,v3,3/4] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

Best regards,
Wang Haikun
>
> On 18 May 2015 at 18:55, Haikun Wang <haikun.wang@freescale.com> wrote:
>> From: Haikun Wang <Haikun.Wang@freescale.com>
>>
>> Enable Driver Model SPI for ls1021atwr board.
>> DSPI and QSPI only be enabled when boot from QSPI.
>> DSPI and QSPI are compatible under Driver Model SPI.
>>
>> Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
>> Change-Id: I6342807da7725ae8b678952117c8758c75a61d3d
>> Reviewed-on: http://git.am.freescale.net:8181/33447
>> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
>> Reviewed-by: Prabhakar Kushwaha <prabhakar@freescale.com>
>> ---
>> Changes in v3:
>> - IS_ENABLED(CONFIG_XXX) is only work with configure option in Kconfig,
>>    and DM core code use IS_ENABLED(), so configure option in head file
>>    can't work, so remove CONFIG_OF_CONTROL CONFIG_OF_SEPARATE CONFIG_DM CONFIG_DM_SPI
>>
>> Changes in v2:
>> - Move all changes inside of CONFIG_QSPI_BOOT
>>
>> Changes in v1: None
>>   include/configs/ls1021atwr.h | 10 ++++++++--
>>   1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
>> index 729205f..13e3aa4 100644
>> --- a/include/configs/ls1021atwr.h
>> +++ b/include/configs/ls1021atwr.h
>> @@ -229,16 +229,22 @@
>>   #define CONFIG_CMD_FAT
>>   #define CONFIG_DOS_PARTITION
>>
>> -/* QSPI */
>> +/* SPI */
>>   #ifdef CONFIG_QSPI_BOOT
>> +/* QSPI */
>>   #define CONFIG_FSL_QSPI
>>   #define QSPI0_AMBA_BASE                        0x40000000
>>   #define FSL_QSPI_FLASH_SIZE            (1 << 24)
>>   #define FSL_QSPI_FLASH_NUM             2
>>
>> +#define CONFIG_SPI_FLASH_STMICRO
>> +
>> +/* DM SPI */
>> +#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
>>   #define CONFIG_CMD_SF
>> +#define CONFIG_DM_SPI_FLASH
>>   #define CONFIG_SPI_FLASH
>> -#define CONFIG_SPI_FLASH_STMICRO
>> +#endif
>>   #endif
>>
>>   /*
>> --
>> 2.1.0.27.g96db324
>>
>
>
>

  reply	other threads:[~2015-06-17  9:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 13:25 [U-Boot] [PATCH v3 4/4] arm: ls102xa: Enable Driver Model SPI for ls1021atwr Haikun Wang
2015-06-16  8:55 ` Jagan Teki
2015-06-17  9:11   ` Wang Haikun [this message]
2015-06-17  9:36 ` Bin Meng
2015-06-17 12:30   ` Simon Glass
2015-06-18  2:20     ` Wang Haikun
2015-06-18  6:54       ` Jagan Teki
2015-06-18 15:18         ` Simon Glass
2015-06-19  7:34         ` Jagan Teki
2015-06-19  7:50           ` Wang Haikun
2015-06-19  8:14             ` Jagan Teki
2015-06-25 13:24               ` Jagan Teki
2015-06-26  3:13                 ` Wang Haikun
2015-06-26  6:43                   ` Jagan Teki
2015-06-26  8:18                     ` Wang Haikun

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=DM2PR0301MB062308EBBA28FCA269CB8C05F8A60@DM2PR0301MB0623.namprd03.prod.outlook.com \
    --to=haikun.wang@freescale.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 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.