From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 03/10] sunxi: provide default DRAM config for sun50i in Kconfig
Date: Thu, 3 Nov 2016 10:35:27 +0100 [thread overview]
Message-ID: <e0aee186-e15d-e130-68da-60e214aaeffb@redhat.com> (raw)
In-Reply-To: <cf95d1e4-ea1e-73f7-22d6-cc1b61a12600@arm.com>
Hi,
On 03-11-16 10:17, Andre Przywara wrote:
> Hi Hans,
>
> thanks for having a look.
>
> On 03/11/16 09:13, Hans de Goede wrote:
>> Hi,
>>
>> On 03-11-16 10:10, Andre Przywara wrote:
>>> Hi,
>>>
>>> On 03/11/16 08:54, Alexander Graf wrote:
>>>> On 11/03/2016 02:36 AM, Andre Przywara wrote:
>>>>> To avoid enumerating the very same DRAM values in defconfig files
>>>>> for each and every Allwinner A64 board out there, let's put some sane
>>>>> default values in the Kconfig file.
>>>>> Boards with different needs can override them at any time.
>>>>>
>>>>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>>>>> ---
>>>>> board/sunxi/Kconfig | 3 +++
>>>>> configs/pine64_plus_defconfig | 2 --
>>>>> 2 files changed, 3 insertions(+), 2 deletions(-)
>>>>>
>>>>> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
>>>>> index e1d4ab1..d281a65 100644
>>>>> --- a/board/sunxi/Kconfig
>>>>> +++ b/board/sunxi/Kconfig
>>>>> @@ -145,6 +145,7 @@ config DRAM_CLK
>>>>> default 792 if MACH_SUN9I
>>>>> default 312 if MACH_SUN6I || MACH_SUN8I
>>>>> default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
>>>>> + default 672 if MACH_SUN50I
>>>>> ---help---
>>>>> Set the dram clock speed, valid range 240 - 480 (prior to sun9i),
>>>>> must be a multiple of 24. For the sun9i (A80), the tested values
>>>>> @@ -164,6 +165,7 @@ config DRAM_ZQ
>>>>> default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I ||
>>>>> MACH_SUN8I
>>>>> default 127 if MACH_SUN7I
>>>>> default 4145117 if MACH_SUN9I
>>>>> + default 3881915 if MACH_SUN50I
>>>>> ---help---
>>>>> Set the dram zq value.
>>>>> @@ -171,6 +173,7 @@ config DRAM_ODT_EN
>>>>> bool "sunxi dram odt enable"
>>>>> default n if !MACH_SUN8I_A23
>>>>> default y if MACH_SUN8I_A23
>>>>> + default y if MACH_SUN50I
>>>>
>>>> This change isn't obvious. It's not mentioned in the patch description
>>>> or removed from the defconfig.
>>>
>>> Oh, right, looks like a rebase artifact, since I juggled the patches
>>> around quite a bit. It belongs to patch 10/10, I guess.
>>
>> It is setting a DRAM default, so it is fine, as for it not being
>> removed from the defconfig, it is not yet present in the one defconfig
>> we have for a64. OTOH it would be food to remove the
>
> No breakfast yet? ;-) ^^^^
>
>> DRAM_CLK and DRAM_ZQ values from configs/pine64_plus_defconfig as
>> part of this patch.
>
> Like the hunk below?
Ugh, yes like that one, so from my pov this patch is good to go :)
Regards.
Hans
>
> Cheers,
> Andre.
>
>>>>> ---help---
>>>>> Select this to enable dram odt (on die termination).
>>>>> diff --git a/configs/pine64_plus_defconfig
>>>>> b/configs/pine64_plus_defconfig
>>>>> index 6d0198f..a53e968 100644
>>>>> --- a/configs/pine64_plus_defconfig
>>>>> +++ b/configs/pine64_plus_defconfig
>>>>> @@ -2,8 +2,6 @@ CONFIG_ARM=y
>>>>> CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
>>>>> CONFIG_ARCH_SUNXI=y
>>>>> CONFIG_MACH_SUN50I=y
>>>>> -CONFIG_DRAM_CLK=672
>>>>> -CONFIG_DRAM_ZQ=3881915
>>>>> CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pine64-plus"
>>>>> # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
>>>>> CONFIG_CONSOLE_MUX=y
>>>>
next prev parent reply other threads:[~2016-11-03 9:35 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 1:36 [U-Boot] [RFC PATCH 00/10] sunxi: Allwinner A64 SPL support Andre Przywara
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 01/10] sun6i: Restrict some register initialization to Allwinner A31 SoC Andre Przywara
2016-11-03 8:52 ` Alexander Graf
2016-11-04 13:18 ` Chen-Yu Tsai
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 02/10] Makefile: use "arm64" architecture for U-Boot image files Andre Przywara
2016-11-03 8:54 ` Alexander Graf
2016-11-03 9:08 ` Andre Przywara
2016-11-03 9:10 ` Alexander Graf
2016-11-03 9:14 ` Andre Przywara
2016-11-05 16:11 ` Simon Glass
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 03/10] sunxi: provide default DRAM config for sun50i in Kconfig Andre Przywara
2016-11-03 8:54 ` Alexander Graf
2016-11-03 9:10 ` Andre Przywara
2016-11-03 9:13 ` Hans de Goede
2016-11-03 9:17 ` Andre Przywara
2016-11-03 9:35 ` Hans de Goede [this message]
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 04/10] sunxi: H3: add and rename some DRAM contoller registers Andre Przywara
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 05/10] sunxi: H3: add DRAM controller single bit delay support Andre Przywara
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 06/10] sunxi: A64: use H3 DRAM initialization code for A64 Andre Przywara
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 07/10] sunxi: H3/A64: fix non-ODT setting Andre Przywara
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 08/10] SPL: read and store arch property from U-Boot image Andre Przywara
2016-11-05 16:10 ` Simon Glass
2016-11-18 1:50 ` André Przywara
2016-11-19 13:49 ` Simon Glass
2016-11-19 16:35 ` André Przywara
2016-11-19 19:59 ` Simon Glass
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 09/10] sunxi: introduce RMR switch to enter payloads in 64-bit mode Andre Przywara
2016-11-05 16:10 ` Simon Glass
2016-11-03 1:36 ` [U-Boot] [RFC PATCH 10/10] sunxi: A64: add 32-bit SPL support Andre Przywara
2016-11-03 8:49 ` [U-Boot] [RFC PATCH 00/10] sunxi: Allwinner A64 " Alexander Graf
2016-11-03 9:34 ` Hans de Goede
2016-11-03 9:51 ` Andre Przywara
2016-11-03 10:36 ` Alexander Graf
2016-11-03 10:49 ` Hans de Goede
2016-11-03 11:36 ` Alexander Graf
2016-11-03 9:38 ` Andre Przywara
2016-11-03 9:45 ` Hans de Goede
2016-11-09 9:21 ` Andre Przywara
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=e0aee186-e15d-e130-68da-60e214aaeffb@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