mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Giorgio Dal Molin <giorgio.nicole@arcor.de>
To: barebox@lists.infradead.org
Subject: problems with am335x_sdram_size()
Date: Thu, 1 Mar 2018 15:23:33 +0100 (CET)	[thread overview]
Message-ID: <377910125.70611.1519914213534@mail.vodafone.de> (raw)

Hi,

working with the TI AM335x Evaluation Module I noticed that the function
am335x_sdram_size() always returns 0 instead of the computed sdram size.

I could trace back the problem to the fact that the function does its 
computation based on the value of the register CM_EMIF_SDRAM_CONFIG
(addr. 0x44e10110), but this register is not written to by the function
am33xx_config_sdram() and just returns its initial value (0).
The datasheet says CM_EMIF_SDRAM_CONFIG should have the same value as
AM33XX_EMIF4_0_REG(SDRAM_CONFIG) (addr. 0x4c000008)

To conclude, to fix the problem with am335x_sdram_size() you can either
use AM33XX_EMIF4_0_REG(SDRAM_CONFIG) instead of CM_EMIF_SDRAM_CONFIG
in am335x_sdram_size()

 or

initialize CM_EMIF_SDRAM_CONFIG in am33xx_config_sdram() with the same value
as AM33XX_EMIF4_0_REG(SDRAM_CONFIG) (regs->sdram_config)

giorgio

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2018-03-01 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01 14:23 Giorgio Dal Molin [this message]
2018-03-02  7:26 ` Sascha Hauer
2018-03-02 14:11   ` Giorgio Dal Molin

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=377910125.70611.1519914213534@mail.vodafone.de \
    --to=giorgio.nicole@arcor.de \
    --cc=barebox@lists.infradead.org \
    /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