Author: wmb Date: Sun Oct 16 03:19:56 2011 New Revision: 2622 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2622
Log: Checked in sdkit build kit for XO-1.75
Added: cpu/arm/olpc/1.75/sdkit/ (props changed) cpu/arm/olpc/1.75/sdkit/Makefile cpu/arm/olpc/1.75/sdkit/sdkit.fth cpu/arm/olpc/1.75/sdkit/sdkit.sh (contents, props changed)
Added: cpu/arm/olpc/1.75/sdkit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ cpu/arm/olpc/1.75/sdkit/Makefile Sun Oct 16 03:19:56 2011 (r2622) @@ -0,0 +1,27 @@ +FTHFILES= \ + ../accelerometer.fth \ + ../../../mmp2/gpio.fth \ + ../../../mmp2/mfpr.fth \ + ../../../mmap.fth \ + ../smbus.fth \ + ../../../mmp2/twsi.fth \ + ./sdkit.fth + +SHFILES= ./sdkit.sh + +DICFILES= ../build/prefw.dic + +WRAPPER=../../../Linux/armforth.static + +D=sdkit-xo175 + +sdkit-xo175.tgz: FORCE + mkdir -p $D + cp $(WRAPPER) $D/forth + cp $(FTHFILES) $D + cp $(DICFILES) $D + cp $(SHFILES) $D + tar cfz $@ $D/forth $D/*.fth $D/*.sh $D/*.dic + rm -rf $D + +FORCE:
Added: cpu/arm/olpc/1.75/sdkit/sdkit.fth ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ cpu/arm/olpc/1.75/sdkit/sdkit.fth Sun Oct 16 03:19:56 2011 (r2622) @@ -0,0 +1,13 @@ +fload mmap.fth +0 constant acgr-pa \ Dummy definition +fload mfpr.fth +apb-pa h# 40.0000 mmap to io-va +fload gpio.fth +: us ( n -- ) d# 40 * 0 do loop ; +: ms ( n -- ) 0 ?do d# 1000 us loop ; +fload smbus.fth +fload camera-test.fth +fload twsi.fth +fload accelerometer.fth +.( See http://wiki.laptop.org/go/Forth_Lesson_22) cr +hex
Added: cpu/arm/olpc/1.75/sdkit/sdkit.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ cpu/arm/olpc/1.75/sdkit/sdkit.sh Sun Oct 16 03:19:56 2011 (r2622) @@ -0,0 +1,2 @@ +#!/bin/sh +./forth prefw.dic sdkit.fth -