Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1307681 > unrolled thread

Re: DT config of io resource

Started bySebastian Andrzej Siewior <bigeasy@linutronix.de>
First post2016-01-12 18:40 +0100
Last post2016-01-13 03:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: DT config of io resource Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-01-12 18:40 +0100
    Re: DT config of io resource Rongrong Zou <zourongrong@gmail.com> - 2016-01-13 03:00 +0100

#1307681 — Re: DT config of io resource

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2016-01-12 18:40 +0100
SubjectRe: DT config of io resource
Message-ID<qQb5i-491-47@gated-at.bofh.it>
* Rolland Chau | 2015-12-31 13:46:14 [+0800]:

>Hi Sebastian,
Hi,

>I see that your sent a patch contain the below dt config.
>
>I want to konw how can i get IO resource from dts, how is the
>
>parent node configed? thanks.

The complete node can be found in
    arch/x86/platform/ce4100/falconfalls.dts

The ressource should be configured by the platform_device code so a
    platform_get_resource(pdev, IORESOURCE_IO, 0);
should do the trick. The upper bus is ISA and the first 1 in reg
classifies the memory as IO memory and not memory mapped.

Sebastian

[toc] | [next] | [standalone]


#1307969

FromRongrong Zou <zourongrong@gmail.com>
Date2016-01-13 03:00 +0100
Message-ID<qQiT8-Zm-9@gated-at.bofh.it>
In reply to#1307681
On 2016/1/13 1:31, Sebastian Andrzej Siewior wrote:
> * Rolland Chau | 2015-12-31 13:46:14 [+0800]:
>
>> Hi Sebastian,
> Hi,
>
>> I see that your sent a patch contain the below dt config.
>>
>> I want to konw how can i get IO resource from dts, how is the
>>
>> parent node configed? thanks.
>
> The complete node can be found in
>      arch/x86/platform/ce4100/falconfalls.dts
>
> The ressource should be configured by the platform_device code so a
>      platform_get_resource(pdev, IORESOURCE_IO, 0);
> should do the trick. The upper bus is ISA and the first 1 in reg
> classifies the memory as IO memory and not memory mapped.
>

I found your isa node is as subnode of pci node, so does the I/O port on isa
is memory-mapped into PCI address space ?

> Sebastian
>

Regards,
Rongrong

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web