Author: wmb Date: 2007-08-15 05:27:30 +0200 (Wed, 15 Aug 2007) New Revision: 544
Added: cpu/x86/pc/olpc/sdtools/ecdump.fth Modified: cpu/x86/pc/olpc/sdtools/maketar cpu/x86/pc/olpc/sdtools/sd.fth Log: sdkit - added EC register dumping commands.
Added: cpu/x86/pc/olpc/sdtools/ecdump.fth =================================================================== --- cpu/x86/pc/olpc/sdtools/ecdump.fth (rev 0) +++ cpu/x86/pc/olpc/sdtools/ecdump.fth 2007-08-15 03:27:30 UTC (rev 544) @@ -0,0 +1,33 @@ +: .3r space <# u# u# u#> type ; +: dump-ec ( adr len -- ) + dup h# 10 < if + over 4 u.r ." : " bounds do i ec@ .3r loop cr + else + bounds ?do + i 4 u.r ." : " + i h# 10 bounds ?do i ec@ .3r loop cr + h# 10 +loop + then +; +: dump-ec-regs ( -- ) +." GPIOO " fc00 4 dump-ec +." GPIOE " fc10 6 dump-ec +." GPIOD " fc20 6 dump-ec +." GPIOIN " fc30 7 dump-ec +." GPIOPU " fc40 6 dump-ec +." GPIOOD " fc50 4 dump-ec +." GPIOIE " fc60 7 dump-ec +." GPIOM " fc70 1 dump-ec +." KBC " fc80 7 dump-ec +." PWM " fe00 e dump-ec +." GPT " fe50 a dump-ec +." SPI " fea0 10 dump-ec +." WDT " fe80 6 dump-ec +." LPC " fe90 10 dump-ec +." PS2 " fee0 7 dump-ec +." EC " ff00 20 dump-ec +." GPWUEN " ff30 4 dump-ec +." GPWUPF " ff40 4 dump-ec +." GPWUPS " ff50 4 dump-ec +." GPWUEL " ff60 4 dump-ec +;
Modified: cpu/x86/pc/olpc/sdtools/maketar =================================================================== --- cpu/x86/pc/olpc/sdtools/maketar 2007-08-15 03:26:50 UTC (rev 543) +++ cpu/x86/pc/olpc/sdtools/maketar 2007-08-15 03:27:30 UTC (rev 544) @@ -6,6 +6,6 @@ cp ../../../../../cpu/x86/pc/olpc/mfgdata.fth sdkit cp ../../../../../dev/olpc/dcon/dconsmb.fth sdkit cp ../../../../../dev/olpc/kb3700/ecio.fth sdkit -cp sd sd.fth dumpgamma.fth sdkit +cp sd sd.fth ecdump.fth dumpgamma.fth sdkit tar cfz sdkit.tgz sdkit # rm sdkit/*
Modified: cpu/x86/pc/olpc/sdtools/sd.fth =================================================================== --- cpu/x86/pc/olpc/sdtools/sd.fth 2007-08-15 03:26:50 UTC (rev 543) +++ cpu/x86/pc/olpc/sdtools/sd.fth 2007-08-15 03:27:30 UTC (rev 544) @@ -66,6 +66,7 @@ defer spi-start defer spi@ defer spi! defer spi-out defer spi-reprogrammed 1 value spi-us \needs ec@ fload ecio.fth +\needs ec-range fload ecdump.fth
\ LICENSE_BEGIN \ Copyright (c) 2006 FirmWorks