From: Andrew Jeffery <andrew@aj.id.au>
To: "Cédric Le Goater" <clg@kaod.org>,
"Alastair D'Silva" <alastair@au1.ibm.com>,
qemu-arm@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
qemu-devel@nongnu.org, Joel Stanley <joel@jms.id.au>
Subject: Re: [Qemu-arm] [PATCH 4/4] arm: Add an RX8900 RTC to the ASpeed board
Date: Thu, 24 Nov 2016 10:45:12 +1030 [thread overview]
Message-ID: <1479946512.2503.48.camel@aj.id.au> (raw)
In-Reply-To: <db1b87d9-8e3a-af86-a7ac-c960698f606e@kaod.org>
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
On Wed, 2016-11-23 at 09:48 +0100, Cédric Le Goater wrote:
> On 11/23/2016 01:46 AM, Alastair D'Silva wrote:
> > On Tue, 2016-11-22 at 17:56 +0100, Cédric Le Goater wrote:
> > > On 11/17/2016 05:36 AM, Alastair D'Silva wrote:
> > > >
> > > > > > > > From: Alastair D'Silva <alastair@d-silva.org>
> > > >
> > > > Connect an RX8900 RTC to i2c12 of the AST2500 SOC at address 0x32
> > >
> > > If this is a board device, we should include it under a machine
> > > routine.
> > >
> > > Is that for the palmetto ? The ast2500 does not have a RTC.
> > >
> > > Thanks,
> > >
> > > C.
> >
> > Ok
>
>
> I suppose we could change aspeed_board_init() to return
> a AspeedSoCState* and use the soc object in the specific
> <machine>_init routines to add devices.
>
> Andrew, what is your opinion on that ?
I see the I2C bus configuration as a declarative problem. In a similar
vein we already have AspeedBoardConfig, so I think we should try to
describe the buses and attached devices there. That way we can have a
generic aspeed_i2c_bus_init() routine that we call inside
aspeed_board_init().
This would avoid encoding the buses and their slaves in the board-
specific init code.
Is that a reasonable alternative? I agree that we need to use a
different approach to that which the current patch is using.
Andrew
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Jeffery <andrew@aj.id.au>
To: "Cédric Le Goater" <clg@kaod.org>,
"Alastair D'Silva" <alastair@au1.ibm.com>,
qemu-arm@nongnu.org
Cc: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
Joel Stanley <joel@jms.id.au>
Subject: Re: [Qemu-devel] [PATCH 4/4] arm: Add an RX8900 RTC to the ASpeed board
Date: Thu, 24 Nov 2016 10:45:12 +1030 [thread overview]
Message-ID: <1479946512.2503.48.camel@aj.id.au> (raw)
In-Reply-To: <db1b87d9-8e3a-af86-a7ac-c960698f606e@kaod.org>
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
On Wed, 2016-11-23 at 09:48 +0100, Cédric Le Goater wrote:
> On 11/23/2016 01:46 AM, Alastair D'Silva wrote:
> > On Tue, 2016-11-22 at 17:56 +0100, Cédric Le Goater wrote:
> > > On 11/17/2016 05:36 AM, Alastair D'Silva wrote:
> > > >
> > > > > > > > From: Alastair D'Silva <alastair@d-silva.org>
> > > >
> > > > Connect an RX8900 RTC to i2c12 of the AST2500 SOC at address 0x32
> > >
> > > If this is a board device, we should include it under a machine
> > > routine.
> > >
> > > Is that for the palmetto ? The ast2500 does not have a RTC.
> > >
> > > Thanks,
> > >
> > > C.
> >
> > Ok
>
>
> I suppose we could change aspeed_board_init() to return
> a AspeedSoCState* and use the soc object in the specific
> <machine>_init routines to add devices.
>
> Andrew, what is your opinion on that ?
I see the I2C bus configuration as a declarative problem. In a similar
vein we already have AspeedBoardConfig, so I think we should try to
describe the buses and attached devices there. That way we can have a
generic aspeed_i2c_bus_init() routine that we call inside
aspeed_board_init().
This would avoid encoding the buses and their slaves in the board-
specific init code.
Is that a reasonable alternative? I agree that we need to use a
different approach to that which the current patch is using.
Andrew
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2016-11-24 0:15 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 4:36 [Qemu-devel] [PATCH 0/4] Add support for the Epson RX8900 RTC to the aspeed board Alastair D'Silva
2016-11-17 4:36 ` Alastair D'Silva
2016-11-17 4:36 ` [Qemu-devel] [PATCH 1/4] arm: Uniquely name imx25 I2C buses Alastair D'Silva
2016-11-17 4:36 ` Alastair D'Silva
2016-11-17 7:50 ` [Qemu-arm] " Cédric Le Goater
2016-11-17 7:50 ` [Qemu-devel] " Cédric Le Goater
2016-11-17 4:36 ` [Qemu-arm] [PATCH 2/4] qtest: Support named interrupts Alastair D'Silva
2016-11-17 4:36 ` [Qemu-devel] " Alastair D'Silva
2016-11-22 17:22 ` Cédric Le Goater
2016-11-22 17:22 ` Cédric Le Goater
2016-11-22 17:24 ` [Qemu-arm] " Paolo Bonzini
2016-11-22 17:24 ` [Qemu-devel] " Paolo Bonzini
2016-11-22 22:31 ` Alastair D'Silva
2016-11-22 22:31 ` Alastair D'Silva
2016-11-22 22:39 ` [Qemu-arm] " Paolo Bonzini
2016-11-22 22:39 ` [Qemu-devel] " Paolo Bonzini
2016-11-22 23:19 ` [Qemu-arm] " Alastair D'Silva
2016-11-22 23:19 ` [Qemu-devel] " Alastair D'Silva
2016-11-23 9:43 ` [Qemu-arm] " Paolo Bonzini
2016-11-23 9:43 ` [Qemu-devel] " Paolo Bonzini
2016-11-23 10:05 ` [Qemu-arm] " Edgar E. Iglesias
2016-11-23 10:05 ` [Qemu-devel] " Edgar E. Iglesias
2016-11-23 10:34 ` Paolo Bonzini
2016-11-23 10:34 ` [Qemu-devel] " Paolo Bonzini
2016-11-17 4:36 ` [Qemu-arm] [PATCH 3/4] hw/timer: Add Epson RX8900 RTC support Alastair D'Silva
2016-11-17 4:36 ` [Qemu-devel] " Alastair D'Silva
2016-11-17 8:29 ` [Qemu-arm] " Cédric Le Goater
2016-11-17 8:29 ` [Qemu-devel] " Cédric Le Goater
2016-11-18 0:19 ` [Qemu-arm] " Alastair D'Silva
2016-11-18 0:19 ` [Qemu-devel] " Alastair D'Silva
2016-11-18 8:52 ` [Qemu-arm] " Cédric Le Goater
2016-11-18 8:52 ` [Qemu-devel] " Cédric Le Goater
2016-11-17 4:36 ` [Qemu-arm] [PATCH 4/4] arm: Add an RX8900 RTC to the ASpeed board Alastair D'Silva
2016-11-17 4:36 ` [Qemu-devel] " Alastair D'Silva
2016-11-22 16:56 ` [Qemu-arm] " Cédric Le Goater
2016-11-22 16:56 ` [Qemu-devel] " Cédric Le Goater
2016-11-23 0:46 ` [Qemu-arm] " Alastair D'Silva
2016-11-23 0:46 ` [Qemu-devel] " Alastair D'Silva
2016-11-23 8:48 ` [Qemu-arm] " Cédric Le Goater
2016-11-23 8:48 ` [Qemu-devel] " Cédric Le Goater
2016-11-24 0:15 ` Andrew Jeffery [this message]
2016-11-24 0:15 ` Andrew Jeffery
2016-11-17 15:33 ` [Qemu-arm] [Qemu-devel] [PATCH 0/4] Add support for the Epson RX8900 RTC to the aspeed board no-reply
2016-11-17 15:33 ` no-reply
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=1479946512.2503.48.camel@aj.id.au \
--to=andrew@aj.id.au \
--cc=alastair@au1.ibm.com \
--cc=clg@kaod.org \
--cc=joel@jms.id.au \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.