[PATCH 2/3] Connect an RX8900 RTC to i2c12 of the AST2500 SOC at address 0x32

Alastair D'Silva alastair at au1.ibm.com
Tue Nov 1 15:44:02 AEDT 2016


On Mon, 2016-10-31 at 07:41 +0100, Cédric Le Goater wrote:
> On 10/27/2016 04:27 AM, alastair at au1.ibm.com wrote:
> > 
> > From: Alastair D'Silva <alastair at d-silva.org>
> > 
> > Signed-off-by: Alastair D'Silva <alastair at d-silva.org>
> > ---
> >  hw/arm/aspeed.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
> > index c7206fd..8ccac3e 100644
> > --- a/hw/arm/aspeed.c
> > +++ b/hw/arm/aspeed.c
> > @@ -100,6 +100,7 @@ static void aspeed_board_init(MachineState
> > *machine,
> >  {
> >      AspeedBoardState *bmc;
> >      AspeedSoCClass *sc;
> > +    I2CBus *i2c12;
> >  
> >      bmc = g_new0(AspeedBoardState, 1);
> >      object_initialize(&bmc->soc, (sizeof(bmc->soc)), cfg-
> > >soc_name);
> > @@ -137,6 +138,9 @@ static void aspeed_board_init(MachineState
> > *machine,
> >      aspeed_board_binfo.ram_size = ram_size;
> >      aspeed_board_binfo.loader_start = sc->info->sdram_base;
> >  
> > +    i2c12 = aspeed_i2c_get_bus((DeviceState *)&bmc->soc.i2c, 11);
> > +    i2c_create_slave(i2c12, "rx8900", 0x32);
> > +
> 
> hmm, so that is a board device ? or a SoC ?
> 
> C. 
> 

It's a board device.

-- 
Alastair D'Silva
Open Source Developer
Linux Technology Centre, IBM Australia
mob: 0423 762 819



More information about the openbmc mailing list