From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Tue, 25 Nov 2014 08:55:49 +0000 Subject: [U-Boot] [PATCH v2 1/5] sun6i: Make dram clk and zq value Kconfig options In-Reply-To: <1416750195-25318-2-git-send-email-hdegoede@redhat.com> References: <1416750195-25318-1-git-send-email-hdegoede@redhat.com> <1416750195-25318-2-git-send-email-hdegoede@redhat.com> Message-ID: <1416905749.16888.11.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2014-11-23 at 14:43 +0100, Hans de Goede wrote: > It turns out that there is a too large spread between boards to handle this > with a default value, turn this into Kconfig options, and set the values > the factory images are using for the Colombus and Mele_M9 boards. > > Note this changes the ZQ default when not overriden through defconfig from > 120 to 123, as that is what most boards seem to actually use. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell With one minor query: > +config DRAM_CLK > + int "sun6i dram clock speed" > + default 312 > + ---help--- > + Set the dram clock speed, valid range 240 - 480, must be a multiple > + of 24. > [...] > diff --git a/configs/Mele_M9_defconfig b/configs/Mele_M9_defconfig > index 40eabce..740b931 100644 > --- a/configs/Mele_M9_defconfig > +++ b/configs/Mele_M9_defconfig > @@ -5,6 +5,8 @@ CONFIG_FDTFILE="sun6i-a31-m9.dtb" > +S:CONFIG_ARCH_SUNXI=y > +S:CONFIG_MACH_SUN6I=y > +S:CONFIG_TARGET_MELE_M9=y > ++S:CONFIG_DRAM_CLK=312 You are overriding this to be the default, is that deliberate/necessary? I suspect it's just to keep both or neither of CLK and ZQ explicitly give, which is a fine reason. Ian.