Changeset 2800


Ignore:
Timestamp:
Jan 6, 2012, 5:31:16 PM (3 years ago)
Author:
wmb
Message:

OLPC trac #11568 - ARM - added flattened device tree support.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/linux.fth

    r2644 r2800  
    9090; 
    9191 
     920 value use-fdt? 
     93: use-fdt  ( -- )  true to use-fdt?  ; 
    9294 
    9395: linux-fixup  ( -- ) 
    9496[ifdef] linux-logo  linux-logo  [then] 
    95    args-buf cscount set-parameters          ( ) 
     97   use-fdt? 0=  if 
     98      args-buf cscount set-parameters          ( ) 
     99   then 
    96100   disable-interrupts 
    97101 
     
    99103   0 to r0 
    100104   arm-linux-machine-type to r1 
     105[ifdef] flatten-device-tree 
     106   use-fdt?  if 
     107      flatten-device-tree to r2 
     108   else 
     109      linux-params to r2 
     110   then 
     111[else] 
    101112   linux-params to r2 
     113[then] 
    102114   linux-hook 
    103115; 
     
    115127\  dup to linux-memtop 
    116128   to ramdisk-adr 
     129 
     130   ramdisk-adr " linux,initd-start"  chosen-int-property 
     131   ramdisk-adr /ramdisk +  " linux,initd-end"  chosen-int-property 
    117132; 
    118133: $load-ramdisk  ( name$ -- ) 
  • cpu/arm/olpc/build-fw.fth

    r2790 r2800  
    362362fload ${BP}/cpu/arm/marvell/utmiphy.fth 
    363363 
     364fload ${BP}/ofw/core/fdt.fth 
    364365fload ${BP}/cpu/arm/linux.fth 
    365366 
Note: See TracChangeset for help on using the changeset viewer.