public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 08/11] colibri-vf: Enable SPI support
Date: Mon, 1 Jun 2015 17:57:17 +0530	[thread overview]
Message-ID: <556C4FA5.2010209@toradex.com> (raw)
In-Reply-To: <b4775c9e4ad027153983683637f138c6@agner.ch>

Hello Stefan,

On 06/01/2015 04:02 PM, Stefan Agner wrote:
> On 2015-06-01 10:51, Bhuvanchandra DV wrote:
>> Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
>> ---
>>   include/configs/colibri_vf.h | 11 +++++++++++
>>   1 file changed, 11 insertions(+)
>>
>> diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
>> index 195102b..3e57417 100644
>> --- a/include/configs/colibri_vf.h
>> +++ b/include/configs/colibri_vf.h
>> @@ -272,4 +272,15 @@
>>   #define CONFIG_USB_GADGET_MASS_STORAGE
>>   #define CONFIG_CMD_USB_MASS_STORAGE
>>
>> +/* Enable SPI support */
>> +#define CONFIG_DM_SPI
>> +#define CONFIG_CMD_SPI
>> +#define CONFIG_FSL_DSPI
>> +
>> +#ifndef CONFIG_OF_CONTROL
>> +#undef CONFIG_DM_SPI
>> +#undef CONFIG_CMD_SPI
>> +#undef CONFIG_FSL_DSPI
>> +#endif
>> +
>>   #endif /* __CONFIG_H */
>
> Hm, any specific reason we need to define them unconditionally first?
 >
> Couldn't we just inverse the logic and safe the undefs?
>
> #ifdef CONFIG_OF_CONTROL
> #define CONFIG_DM_SPI
> #define CONFIG_CMD_SPI
> #define CONFIG_FSL_DSPI
> #endif
>
Agreed to inverse the logic, as in both the above cases DSPI support is 
enabled by default when OF_CONTROL was defined. Your suggestion sounds 
good. Will update it accordingly, thanks!

> --
> Stefan
>

Best regards,
Bhuvan

  reply	other threads:[~2015-06-01 12:27 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 13:06 [U-Boot] [PATCH 00/11] Add GPIO driver for Freescale Vybrid platform Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 01/11] dm: gpio: uclass: Add flag to control sequence numbering Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 02/11] dm: gpio: vf610: Add GPIO driver support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 03/11] colibri_vf: Add pinmux entries for GPIOs Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 04/11] colibri_vf: Enable GPIO support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 05/11] arm: vf610: Add clock support for DSPI Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 06/11] arm: vf610: Add iomux " Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 07/11] vf610: dts: Add device tree support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 08/11] colibri-vf: Enable SPI support Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 09/11] colibri_vf: Add separate defconfig for device tree support Bhuvanchandra DV
2015-06-01  7:45   ` Stefano Babic
2015-06-01  8:07     ` Bhuvanchandra DV
2015-05-18 13:06 ` [U-Boot] [PATCH 10/11] usb: ehci-vf: Add weak function for board specific initialisation Bhuvanchandra DV
2015-05-18 17:09   ` Marek Vasut
2015-05-18 18:52     ` maitysanchayan at gmail.com
2015-05-18 19:04       ` Marek Vasut
2015-05-18 13:06 ` [U-Boot] [PATCH 11/11] colibri_vf: Enable board specific USB initialisation for USB pen gpio Bhuvanchandra DV
2015-05-24 19:34 ` [U-Boot] [PATCH 00/11] Add GPIO driver for Freescale Vybrid platform Bhuvanchandra DV
2015-05-26 11:27   ` Stefano Babic
2015-06-01  5:34     ` Bhuvanchandra DV
2015-06-01  7:17       ` Stefano Babic
2015-06-01  8:51 ` [U-Boot] [PATCH V2 " Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 01/11] dm: gpio: uclass: Add flag to control sequence numbering Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 02/11] dm: gpio: vf610: Add GPIO driver support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 03/11] colibri_vf: Add pinmux entries for GPIOs Bhuvanchandra DV
2015-06-01 10:26     ` Stefan Agner
2015-06-01  8:51   ` [U-Boot] [PATCH V2 04/11] colibri_vf: Enable GPIO support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 05/11] arm: vf610: Add clock support for DSPI Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 06/11] arm: vf610: Add iomux " Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 07/11] vf610: dts: Add device tree support Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 08/11] colibri-vf: Enable SPI support Bhuvanchandra DV
2015-06-01 10:32     ` Stefan Agner
2015-06-01 12:27       ` Bhuvanchandra DV [this message]
2015-06-01  8:51   ` [U-Boot] [PATCH V2 09/11] colibri_vf: Add separate defconfig for device tree support Bhuvanchandra DV
2015-06-01 10:35     ` Stefan Agner
2015-06-01 12:28       ` Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 10/11] usb: ehci-vf: Add weak function for board specific initialisation Bhuvanchandra DV
2015-06-01  8:51   ` [U-Boot] [PATCH V2 11/11] colibri_vf: Enable board specific USB initialisation for USB pen gpio Bhuvanchandra DV
2015-06-01 10:25     ` Stefan Agner

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=556C4FA5.2010209@toradex.com \
    --to=bhuvanchandra.dv@toradex.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