From: Markus Niebel <list-09_u-boot@tqsc.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] arm: mx6: tqma6: Update to optionally configure an alternative SPI setup
Date: Fri, 13 Mar 2015 17:52:03 +0100 [thread overview]
Message-ID: <550315B3.9020900@tqsc.de> (raw)
In-Reply-To: <5502E545.5050209@denx.de>
Hello Stefan,
Am 13.03.2015 um 14:25 schrieb Stefan Roese:
> Hi Markus,
>
> On 13.03.2015 10:05, Markus Niebel wrote:
>>>
>>> Not sure if I understand this correctly. Could you give an example? Again, my current baseboard has no SPI at all.
>>>
>>
>> tqma6_iomux_spi is for the SPI controller the serial nor is connected,
>> so baseboard specific data are additional CS.
>>
>> You could solve the data duplication using
>>
>> #define TQMA6_BB_ECSPI1_CS_GPIO IMX_GPIO_NR(n, mm),
>> #define TQMA6_BB_CS_PAD_CTRL NEW_PAD_CTRL(MX6_PAD_bla__GPIOn, IOmm, <PAD_CTRL)
>>
>> and in the board file:
>>
>> if !defined(TQMA6_BB_ECSPI1_CS_GPIO)
>> #define TQMA6_BB_ECSPI1_CS_GPIO
>> #endif
>>
>> static unsigned const tqma6_ecspi1_cs[] = {
>> TQMA6_SF_CS_GPIO,
>> TQMA6_BB_ECSPI1_CS_GPIO
>> };
>>
>> But OK, this looks not very nice
>>
>> As I said, not completely ready, but would prevent some code duplication.
>
> With my current approach we have code duplication. I suggest we give this version a try and see if it scales for other, future baseboards as well. If not, we can always try a solution like you described above.
>
> Okay?
Yes, Okay.
you can add my Acked-by
>
> Thanks,
> Stefan
>
Regards
Markus
next prev parent reply other threads:[~2015-03-13 16:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 12:34 [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems Stefan Roese
2015-03-12 12:34 ` [U-Boot] [PATCH 2/3] arm: mx6: tqma6: Update to optionally configure an alternative SPI setup Stefan Roese
2015-03-12 14:25 ` Markus Niebel
2015-03-12 15:18 ` Stefan Roese
2015-03-13 9:05 ` Markus Niebel
2015-03-13 13:25 ` Stefan Roese
2015-03-13 13:27 ` Stefan Roese
2015-03-13 16:52 ` Markus Niebel [this message]
2015-05-05 9:37 ` Stefan Roese
2015-05-05 15:17 ` Stefano Babic
2015-03-12 12:34 ` [U-Boot] [PATCH 3/3] arm: mx6: tqma6: Extract baseboard configs into separate config file Stefan Roese
2015-03-12 14:17 ` Markus Niebel
2015-03-12 15:24 ` Stefan Roese
2015-03-12 14:09 ` [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems Markus Niebel
2015-05-05 9:36 ` Stefan Roese
2015-05-05 9:59 ` Stefano Babic
2015-05-05 15:16 ` Stefano Babic
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=550315B3.9020900@tqsc.de \
--to=list-09_u-boot@tqsc.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.