From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] A23 u-boot with SPL / dram init available in my personal git repo
Date: Tue, 09 Dec 2014 11:25:38 +0100 [thread overview]
Message-ID: <5486CE22.8020302@redhat.com> (raw)
In-Reply-To: <CAGb2v65KG2zZcQBz-jF07eHjH0aV277mzLj=QL1ppmA-9thQnQ@mail.gmail.com>
Hi,
On 09-12-14 11:17, Chen-Yu Tsai wrote:
> Hi,
>
> On Tue, Dec 9, 2014 at 2:53 AM, Hans de Goede <hdegoede@redhat.com> wrote:
>> Hi,
>>
>> On 08-12-14 15:28, Chen-Yu Tsai wrote:
>>>
>>> On Mon, Dec 8, 2014 at 4:27 AM, Hans de Goede <hdegoede@redhat.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> This is still a bit rough around the edges, I'll clean it up as
>>>> time permits and then post it upstream.
>>>>
>>>> In the mean time people interested can find $subject here:
>>>> https://github.com/jwrdegoede/u-boot-sunxi/commits/sunxi-wip
>>>
>>>
>>> Hopefully I'll get around to testing this. BTW, what tablet do
>>> you have?
>>
>>
>> I've an Ippo q8h v1.2, there are at least 2 differences from the
>> v5 you've. The dram clk speed and zq value are different, and the wifi
>> is different. The wifi does not matter for u-boot, but does mean we
>> need separate dtb files for the 2.
>>
>> My u-boot sunxi-wip branch has a defconfig for the v1.2, you should be
>> able to copy that over to the v5 defconfig, adjust dram clk and zq values
>> with the ones from the v5 fix, change v1.2 to v5 in the CONFIG_FDTFILE
>> setting and thats it.
>>
>> Let me know if this works, then I'll also include an update for the v5
>> defconfig to enable the SPL when I send this upstream.
>
> Just gave it a spin, and it works. The dram clock and zq can be
> found in sunxi-boards.
Good, I'll update my patch-set to reflect this.
> Note that the actual settings fetched from
> stock u-boot has the highest bit of tpr13 set, disabling auto
> detection AFAICU. As you've not implemented that part, I used
> auto detection and it seems to work.
It is implemented in the actual dram_init code, but for now I've
all the dram_paras hardcoded except the clk and the zq value. If
autodetect works I see no reason to change this, but for future models,
if necessary the code for dealing with manual config is there, to test
just put the values directly in the dram_para struct at the top of
dram_sun8i.c .
> The only problem I have now is it has no connectivity to the
> outside world lol. I would've liked a v2, with a Realtek USB
> WiFi chip. What chip does the v1.2 have?
An sdio based chip, the RDA RDA5990P, as mentioned here:
http://linux-sunxi.org/Ippo_q8h#Q8H-V1.2
It does have an empty spot on the pcb for a usb wifi module, I plan to
hookup a usb connector to that one of these days, and see if I can get
a USB host working this way.
>>>> ChenYu, this also has a mmc fix which you may find interesting,
>>>> it may explain some of the problems with mmc you've been having
>>>> on both the A80 board, as well as the A31 dev board you've.
>>>
>>>
>>> Yes. With that fix my Hummingbird A31 boots properly without
>>> raising DCDC1 to 3.3V.
>>>
>>> Thanks! I'll send the defconfig out later.
>>
>>
>> Good, so I guess this means that DCDC1 should be 3V for your board,
>> since that is what the factory firmware uses, right ?
>>
>> I guess it is time to make DCDC1 voltage configurable.
>
> 3V seems to be the lowest tolerable voltage for some bits. Making it
> 3.3V might be a bit better. But with my light usage, I don't see any
> stability issues.
Right, I guess 3V is used to safe battery, which makes sense (in tablets /
phones)
As said I'll make this configurable making 3V the default and set 3V3
in the defconfig where the original firmware does that.
Regards,
Hans
next prev parent reply other threads:[~2014-12-09 10:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-07 20:27 [U-Boot] A23 u-boot with SPL / dram init available in my personal git repo Hans de Goede
2014-12-08 12:59 ` mike.valk at gmail.com
2014-12-08 14:28 ` Chen-Yu Tsai
2014-12-08 18:53 ` Hans de Goede
2014-12-09 10:17 ` Chen-Yu Tsai
2014-12-09 10:25 ` Hans de Goede [this message]
2014-12-09 12:31 ` Chen-Yu Tsai
2014-12-13 13:58 ` Hans de Goede
2014-12-13 16:07 ` Chen-Yu Tsai
2014-12-14 9:44 ` Hans de Goede
2014-12-15 6:01 ` Ricky Xian
2014-12-15 9:36 ` [U-Boot] [linux-sunxi] " Siarhei Siamashka
2014-12-15 14:59 ` Ricky Xian
2014-12-18 11:41 ` [U-Boot] " Hans de Goede
2014-12-08 22:12 ` Maxime Ripard
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=5486CE22.8020302@redhat.com \
--to=hdegoede@redhat.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