From: Dirk Behme <dirk.behme@de.bosch.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mx31: Setup AIPS registers
Date: Thu, 1 Mar 2012 07:30:18 +0100 [thread overview]
Message-ID: <4F4F177A.7050005@de.bosch.com> (raw)
In-Reply-To: <CAOMZO5Af8ATuXXH9BBAZqkfdz6N2hrMErtkPQ57N=U2MhuQ7MQ@mail.gmail.com>
On 29.02.2012 21:56, Fabio Estevam wrote:
> On Wed, Feb 29, 2012 at 5:03 PM, Dirk Behme <dirk.behme@googlemail.com> wrote:
>
>> Hmm, sorry if I missed anything because it's too late here. But:
>>
>> Why now an U-Boot patch? What's about the kernel patch you sent earlier?
>>
>> http://www.spinics.net/lists/arm-kernel/msg162109.html
>
> The motivation for this patch came after I was debugging audio
> playback on mx31pdk.
>
> I noticed that audio only worked when I used Redboot.
>
> Comparing the sources of Redboot and U-boot I saw that the aips
> registers were not set.
>
> Setting them in U-boot allowed me to get audio playback working.
>
> Why did I send the aips setting to the kernel? Well, it is not always
> possible for customers to change the bootloader.
>
> In case the bootloader does not set aips, then this should be done in
> the kernel.
>
> You can also think on the possibility of someone using the mainline
> U-boot with a kernel that does not set aips, so the safest thing is to
> have such settings in the bootloader and in the kernel.
Ah, thanks for the explanation! :)
This does mean that you want the change in both, U-Boot and kernel, correct?
>> And why don't you try to create some common parts with
>>
>> http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commitdiff;h=f2f7745825ee5f6bae5b480c8e9c6641a7ffa73b
>
> I thought about that, but I realized the AIPS settings were not
> exactly the same. My main goal at this point was to get the aips
> settings in mx31, but I can work on factoring out this code later.
Yes, we definitely should look at which parts are common. I haven't
looked at the details, but at least the register definitions [1] are the
same?
Best regards
Dirk
[1]
+/* AIPS registers */
+struct aipstz_regs {
+ u32 mprot0;
+ u32 mprot1;
+ u32 rsvd[0xe];
+ u32 opacr0;
+ u32 opacr1;
+ u32 opacr2;
+ u32 opacr3;
+ u32 opacr4;
+};
+
next prev parent reply other threads:[~2012-03-01 6:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 19:44 [U-Boot] [PATCH v2] mx31: Setup AIPS registers Fabio Estevam
2012-02-29 20:03 ` Dirk Behme
2012-02-29 20:56 ` Fabio Estevam
2012-03-01 6:30 ` Dirk Behme [this message]
2012-03-01 12:29 ` Fabio Estevam
2012-03-03 9:59 ` 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=4F4F177A.7050005@de.bosch.com \
--to=dirk.behme@de.bosch.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