public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 05/12] sunxi: Add sun4i support
Date: Sun, 01 Jun 2014 11:54:07 +0200	[thread overview]
Message-ID: <538AF83F.3090707@redhat.com> (raw)
In-Reply-To: <1401554804.15871.107.camel@hastur.hellion.org.uk>

Hi,

On 05/31/2014 06:46 PM, Ian Campbell wrote:
> On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote:
>> Add support for the Allwinner A10 SoC also know as the Allwinner sun4i family.
>
> "known".
>
> Could you enumerate the main differences vs the existing sun7i stuff.
> e.g.:
>     - dram init and timing (hpcr?) values
>     - CCM_AHB_GATE_DLL
>     - ...
>

Fixed / done.

>> Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>>   arch/arm/cpu/armv7/sunxi/Makefile   |  2 +
>>   arch/arm/cpu/armv7/sunxi/cpu_info.c |  7 ++++
>>   arch/arm/cpu/armv7/sunxi/dram.c     | 81 +++++++++++++++++++++++++++++++++++--
>>   board/sunxi/Makefile                |  1 +
>>   board/sunxi/dram_cubieboard.c       | 31 ++++++++++++++
>>   boards.cfg                          |  1 +
>
> Please mention that you are enabling cb with this patch in the commit
> message.

Done.

>
>>   static void mctl_set_drive(void)
>>   {
>>   	struct sunxi_dram_reg *dram = (struct sunxi_dram_reg *)SUNXI_DRAMC_BASE;
>>
>> +#ifdef CONFIG_SUN7I
>>   	clrsetbits_le32(&dram->mcr, DRAM_MCR_MODE_NORM(0x3) | (0x3 << 28),
>> +#else
>> +	clrsetbits_le32(&dram->mcr, DRAM_MCR_MODE_NORM(0x3),
>> +#endif
>
> This could be written as an ifdef around the "0x3<< 28 |" only (moved to
> its own line). Is that a better way though?

I believe that that only will make the code harder to read, so lets keep this
as is.

>> @@ -490,6 +549,22 @@ unsigned long dramc_init(struct dram_para *para)
>>
>>   	mctl_enable_dllx(para->tpr3);
>>
>> +#ifdef CONFIG_SUN4I
>> +	/* set odt impendance divide ratio */
>
> "impedance"

Fixed.

Thanks for the review.

Regards,

Hans

  reply	other threads:[~2014-06-01  9:54 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  9:06 [U-Boot] sunxi: Bug fixes, sun4i and sun5i support, pmic support and network improvements Hans de Goede
2014-05-30  9:06 ` [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4 Hans de Goede
2014-05-30  9:19   ` Ian Campbell
2014-07-23 17:29     ` Siarhei Siamashka
2014-07-23 17:40       ` Ian Campbell
2014-07-23 18:30         ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 02/12] sunxi: Fix u-boot-spl.lds to refer to .vectors Hans de Goede
2014-05-30  9:20   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 03/12] sunxi: Remove mmc DMA support Hans de Goede
2014-05-30  9:22   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 04/12] sunxi: Implement reset_cpu Hans de Goede
2014-05-30  9:48   ` Ian Campbell
2014-05-30 13:21     ` Hans de Goede
2014-05-30  9:06 ` [U-Boot] [PATCH 05/12] sunxi: Add sun4i support Hans de Goede
2014-05-31 16:46   ` Ian Campbell
2014-06-01  9:54     ` Hans de Goede [this message]
2014-05-30  9:06 ` [U-Boot] [PATCH 06/12] sunxi: Add sun5i support Hans de Goede
2014-05-31 16:51   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 07/12] sunxi: Add i2c support Hans de Goede
2014-05-31 16:53   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 08/12] sunxi: Add axp209 pmic support Hans de Goede
2014-05-31 17:08   ` Ian Campbell
2014-06-03 17:12     ` Hans de Goede
2014-05-30  9:06 ` [U-Boot] [PATCH 09/12] sunxi: Add axp152 " Hans de Goede
2014-05-31 17:10   ` Ian Campbell
2014-06-03 17:31     ` Hans de Goede
2014-05-30  9:06 ` [U-Boot] [PATCH 10/12] net: Rename and cleanup sunxi (Allwinner) emac driver Hans de Goede
2014-05-31 17:19   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 11/12] sunxi: enable emac for sun4i Hans de Goede
2014-05-31 17:20   ` Ian Campbell
2014-05-30  9:06 ` [U-Boot] [PATCH 12/12] sunxi: Add support for using MII phy-s with the GMAC nic Hans de Goede
2014-05-30 10:26   ` Ian Campbell
2014-05-30 13:18     ` Hans de Goede
2014-05-31  9:51       ` Ian Campbell
2014-05-31  9:59         ` Ian Campbell
2014-05-31 11:45         ` Hans de Goede
2014-05-31 12:13           ` Ian Campbell
2014-05-31 14:08             ` Hans de Goede
2014-05-31 14:25               ` Ian Campbell

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=538AF83F.3090707@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