# HG changeset patch # User Paul Boddie # Date 1714779006 -7200 # Node ID 672a2ee47bfde0c38fc1dd36f708fe06b2b0ae38 # Parent c4c278adb02affb537cd33a16d72b63bdb95ccc4 Fixed the CI20 I2C example, introducing the missing RTC device to the IO bus. diff -r c4c278adb02a -r 672a2ee47bfd conf/landfall-examples/mips-ci20-i2c.cfg --- a/conf/landfall-examples/mips-ci20-i2c.cfg Sat May 04 01:27:36 2024 +0200 +++ b/conf/landfall-examples/mips-ci20-i2c.cfg Sat May 04 01:30:06 2024 +0200 @@ -6,12 +6,12 @@ local io_buses = { - i2c = l:new_channel(); + common = l:new_channel(); }; l:start({ caps = { - i2c = io_buses.i2c:svr(), + common = io_buses.common:svr(), icu = L4.Env.icu, sigma0 = L4.cast(L4.Proto.Factory, L4.Env.sigma0):create(L4.Proto.Sigma0), }, @@ -23,7 +23,7 @@ l:start({ caps = { icu = L4.Env.icu, - vbus = io_buses.i2c, + vbus = io_buses.common, }, }, "rom/ex_ci20_i2c"); diff -r c4c278adb02a -r 672a2ee47bfd conf/landfall-examples/mips-ci20-i2c.io --- a/conf/landfall-examples/mips-ci20-i2c.io Sat May 04 01:27:36 2024 +0200 +++ b/conf/landfall-examples/mips-ci20-i2c.io Sat May 04 01:30:06 2024 +0200 @@ -8,6 +8,7 @@ CPM = wrap(hw:match("jz4780-cpm")); GPIO = wrap(hw:match("jz4780-gpio")); I2C = wrap(hw:match("jz4780-i2c")); + RTC = wrap(hw:match("jz4780-rtc")); } -Io.add_vbus("i2c", bus) +Io.add_vbus("common", bus)