[openfirmware] [commit] r2175 - cpu/x86/pc/olpc dev/olpc/dcon dev/olpc/kb3700
repository service
svn at openfirmware.info
Mon Feb 28 18:36:42 CET 2011
Author: wmb
Date: Mon Feb 28 18:36:42 2011
New Revision: 2175
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2175
Log:
>From Daniel Drake:
In Linux we plan to use the device tree for probing the DCON, battery, and
XO-1 RTC drivers.
Add the required information using the naming scheme suggested by
Grant Likely.
The dcon node and battery's compatible property apply for both XO-1 and
XO-1.5. The RTC's compatible property is only added for XO-1, in order
to trigger the XO-1-specific RTC wakeup driver.
Modified:
cpu/x86/pc/olpc/devices.fth
dev/olpc/dcon/dcon.fth
dev/olpc/dcon/viadcon.fth
dev/olpc/kb3700/batstat.fth
Modified: cpu/x86/pc/olpc/devices.fth
==============================================================================
--- cpu/x86/pc/olpc/devices.fth Mon Feb 14 08:15:27 2011 (r2174)
+++ cpu/x86/pc/olpc/devices.fth Mon Feb 28 18:36:42 2011 (r2175)
@@ -152,6 +152,12 @@
" /rtc" open-dev clock-node !
;
+\ Linux identifies XO-1 RTC with EC-based wakeup capabilities through this
+\ device property.
+dev /rtc
+" olpc,xo1-rtc" +compatible
+dend
+
fload ${BP}/cpu/x86/pc/cpunode.fth
fload ${BP}/cpu/x86/k6cputest.fth \ Burnin test for K6 CPU
Modified: dev/olpc/dcon/dcon.fth
==============================================================================
--- dev/olpc/dcon/dcon.fth Mon Feb 14 08:15:27 2011 (r2174)
+++ dev/olpc/dcon/dcon.fth Mon Feb 28 18:36:42 2011 (r2175)
@@ -1,5 +1,9 @@
\ See license at end of file
-\ " dcon" device-name
+
+new-device
+" dcon" device-name
+" olpc,xo1-dcon" +compatible
+finish-device
\ DCON internal registers, accessed via I2C
\ 0 constant DCON_ID
Modified: dev/olpc/dcon/viadcon.fth
==============================================================================
--- dev/olpc/dcon/viadcon.fth Mon Feb 14 08:15:27 2011 (r2174)
+++ dev/olpc/dcon/viadcon.fth Mon Feb 28 18:36:42 2011 (r2175)
@@ -1,5 +1,9 @@
\ See license at end of file
-\ " dcon" device-name
+
+new-device
+" dcon" device-name
+" olpc,xo1-dcon" +compatible
+finish-device
\ DCON internal registers, accessed via I2C
\ 0 constant DCON_ID
Modified: dev/olpc/kb3700/batstat.fth
==============================================================================
--- dev/olpc/kb3700/batstat.fth Mon Feb 14 08:15:27 2011 (r2174)
+++ dev/olpc/kb3700/batstat.fth Mon Feb 28 18:36:42 2011 (r2175)
@@ -145,6 +145,8 @@
dev /
new-device
" battery" device-name
+" olpc,xo1-battery" +compatible
+
0 0 reg \ Needed so test-all will run the selftest
\ Test that the battery is inserted and not broken.
More information about the openfirmware
mailing list