public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Acccessing IRAM in MX53
@ 2012-06-11  9:09 Teemu Keskinarkaus
  2012-06-11 10:20 ` Stefano Babic
  0 siblings, 1 reply; 3+ messages in thread
From: Teemu Keskinarkaus @ 2012-06-11  9:09 UTC (permalink / raw)
  To: u-boot

Hi,

I need to access IRAM from U-boot in MX53 based HW. This is part of the data transfer between kernel and U-boot. I've already done the kernel part and now I need to do the U-boot part.

I tried this:

#define IRAM_ADDRESS IRAM_BASE_ADDR + IRAM_SIZE - SZ_4K

unsigned long *iram = (unsigned long*)IRAM_ADDRESS;
unsigned long data;

data = *iram;

But with that code the U-boot just gets stuck when trying to access the IRAM. I looked and it seems that IRAM is added to MMU definitions and virtual address is the same as physical.

So questions is. How should I access the IRAM if the method I'm using is not correct or what's wrong in my method?

Teemu Keskinarkaus

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-18  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-11  9:09 [U-Boot] Acccessing IRAM in MX53 Teemu Keskinarkaus
2012-06-11 10:20 ` Stefano Babic
2012-06-18  4:37   ` Teemu Keskinarkaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox