From: "Sébastien Chrétien" <sebastien.chretien.enseirb@gmail.com>
To: "Juergen Beisert" <j.beisert@pengutronix.de>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Powerpc and ioremap
Date: Thu, 7 Aug 2008 14:56:51 +0200 [thread overview]
Message-ID: <319b0ac50808070556t5291474bhcae9ff3fd45f1fab@mail.gmail.com> (raw)
In-Reply-To: <319b0ac50808070515o7a28cf34ue190dd3dba0ee157@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
Can we call ioremap() during udbg_early_init ?
2008/8/7, Sébastien Chrétien <sebastien.chretien.enseirb@gmail.com>:
>
> Thanks for your answer.
> But it doesn't work.
> I think ioremap create a kernel panic. But I can't see because i have no
> UART ready.
> Is there a way in order to trace the failure ?
>
> 2008/8/7, Juergen Beisert <j.beisert@pengutronix.de>:
>>
>> Am Donnerstag, 7. August 2008 11:54 schrieb Sébastien Chrétien:
>>
>> > Hello,
>> >
>> > I am trying to port linux on my Powerpc Board. I have used Linux 2.6.26
>> and
>> > gcc 3.4.5.
>> > I have used Uboot 1.2.
>> > Linux seems running from _start to udbg_early_init(). That's why I
>> > develloped a udbg_driver.
>> > It must write in a register which is located at 0x2001b044. So I wrote :
>> >
>> > void __iomem *p;
>> > p=ioremap(0x2001b044,4);
>> > iowrite32('O',p);
>> > iowrite32('K',p);
>>
>>
>> try
>>
>> p=ioremap(0x2001b000, 0x1000);
>> iowrite32('O',p + 0x44);
>> iowrite32('K',p + 0x44);
>>
>> instead.
>>
>> jbe
>>
>> --
>> Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
>> Pengutronix - Linux Solutions for Science and Industry
>> Handelsregister: Amtsgericht Hildesheim, HRA 2686
>> Hannoversche Str. 2, 31134 Hildesheim, Germany
>> Phone: +49-5121-206917-7 | Fax: +49-5121-206917-9
>>
>
>
[-- Attachment #2: Type: text/html, Size: 2358 bytes --]
prev parent reply other threads:[~2008-08-07 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 9:54 Powerpc and ioremap Sébastien Chrétien
2008-08-07 10:23 ` Juergen Beisert
2008-08-07 12:15 ` Sébastien Chrétien
2008-08-07 12:56 ` Sébastien Chrétien [this message]
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=319b0ac50808070556t5291474bhcae9ff3fd45f1fab@mail.gmail.com \
--to=sebastien.chretien.enseirb@gmail.com \
--cc=j.beisert@pengutronix.de \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).