| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: Question: about Physical Address mapping |
| From: | "Dennis.Yxun" <dennis.yxun@gmail.com> |
| Date: | Wed, 9 Dec 2009 09:58:26 +0800 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8w1kWHiVqUBQakr8iN6vmd9d/yK4h5kZly9AFD6Luzw=; b=avjfvxS9qsZejKKkD5kCOXFq6wETvyXxpXphX/IYEYJJ8tJWZMSeiLqCIRYqg7kjgr f+Ptu0/sK8yHTG27xEgYuf/XydaxwaZ5NMe+F/+K4fkuwbsilqmyEZGMHdzY9SpeStYj cGAtnUIjZSs38UKRBE8K28OkSO1b7+KXXgpWk= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HBbk/mWuf8dD2lEvSmBhvxnD/zDpy8AsrCoWSdEP2kBqg6rl8YFAZR+MqvZKH9Q8aC 5qem+jGfzkacTgKO0ODM/VbdaNeftoOEnrEc0gT3p8N8xrqkzcbYEXlGK/eX/mJ78wJR DC2J3jfWVY7fMZMYuUSVPDXKCqgA/nq+nZktQ= |
| In-reply-to: | <20091207131034.GA5119@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <7b09df4c0912062339g418f432cr28d92c18ed273d2@mail.gmail.com> <20091207131034.GA5119@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
|
On Mon, Dec 7, 2009 at 9:10 PM, Ralf Baechle <ralf@linux-mips.org> wrote:
As you suggested, I plan to use ioremap() it generally works if I use in my driver code after kernel initialization finished but I still have a problem: How can I access hardware register very early? say that, use early_printk() to access UART registers, And I try to put ioremap() at prom_init() to try to remap UART register but, found that kernel will hang.. the UART register is start from physical address 0x700007c0 (> 512M) but address below 512M can be remaped successfully I spend a few minutes digging into the ioremap() function it simply remap <512M space to KSEG1, while other physical space use different scheme (map to KSEG2), quite complicated.... |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH -queue] MIPS: Alchemy: get rid of common/reset.c, Manuel Lauss |
|---|---|
| Next by Date: | Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE, Yoichi Yuasa |
| Previous by Thread: | Re: Question: about Physical Address mapping, Ralf Baechle |
| Next by Thread: | Dma addr should use Kuseg1 for MIPS32?, figo zhang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |