Changeset 3130


Ignore:
Timestamp:
Aug 4, 2012, 9:37:33 AM (2 years ago)
Author:
wmb
Message:

OLPC ARM - factored UART and SDHCI stuff out of platform versions of fw.bth into separate files, added device node for internal SD on CL4.

Location:
cpu/arm/olpc
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/fw.bth

    r3084 r3130  
    2222: boot-dev-sel-gpio#  ( -- n )  clx-touch?  if  2  else  d# 56  then  ; 
    2323 
    24 fload ${BP}/cpu/arm/olpc/emmc.fth 
    25  
    26 \ Setup UART configuration  
    27 h# d4018000 to uart-base     \ UART3 
    28 devalias com1 /uart@d4018000 
    29  
    30 dev /uart@d4030000  \ UART1 
    31    0 " linux,unit#" integer-property 
    32 device-end 
    33  
    34 dev /uart@d4017000  \ UART2 
    35    " disabled" " status" string-property 
    36 device-end 
    37  
    38 dev /uart@d4018000  \ UART3 
    39    1 " linux,unit#" integer-property 
    40 device-end 
    41  
    42 dev /uart@d4016000  \ UART4 
    43    " disabled" " status" string-property 
    44 device-end 
    45  
    46 \ Device node for internal microSD 
    47 dev /sd 
    48    new-device 
    49       1 encode-int " reg" property 
    50       fload ${BP}/dev/mmc/sdhci/sdmmc.fth 
    51       fload ${BP}/dev/mmc/sdhci/selftest.fth 
    52       " external" " slot-name" string-property 
    53    finish-device 
    54 device-end 
    55  
    56 devalias int /sd/disk@3 
    57 devalias ext /sd/disk@1 
    58  
     24fload ${BP}/cpu/arm/olpc/1.75/uart.fth 
     25fload ${BP}/cpu/arm/olpc/1.75/sdhci.fth 
    5926fload ${BP}/cpu/arm/olpc/1.75/lcdcfg.fth 
    6027fload ${BP}/cpu/arm/olpc/1.75/usb.fth 
  • cpu/arm/olpc/3.0/fw.bth

    r3084 r3130  
    1010fload ${BP}/cpu/arm/olpc/build-fw.fth 
    1111 
    12 \ Setup UART configuration  
    13 h# d4018000 to uart-base     \ UART3 
    14 devalias com1 /uart@d4018000 
    15  
    16 dev /uart@d4030000  \ UART1 
    17    0 " linux,unit#" integer-property 
    18 device-end 
    19  
    20 dev /uart@d4017000  \ UART2 
    21    " disabled" " status" string-property 
    22 device-end 
    23  
    24 dev /uart@d4018000  \ UART3 
    25    1 " linux,unit#" integer-property 
    26 device-end 
    27  
    28 dev /uart@d4016000  \ UART4 
    29    " disabled" " status" string-property 
    30 device-end 
    31  
    32 fload ${BP}/cpu/arm/olpc/emmc.fth 
    33 devalias int /sd/disk@3 
    34  
     12fload ${BP}/cpu/arm/olpc/3.0/uart.fth 
     13fload ${BP}/cpu/arm/olpc/3.0/sdhci.fth 
    3514fload ${BP}/cpu/arm/olpc/3.0/lcdcfg.fth 
    3615fload ${BP}/cpu/arm/olpc/3.0/usb.fth 
  • cpu/arm/olpc/cl4/fw.bth

    r3117 r3130  
    1515\ true to stand-init-debug? 
    1616 
    17 \ Setup UART configuration  
    18 h# d4017000 to uart-base     \ UART2 
    19 devalias com1 /uart@d4017000 
    20  
    21 dev /uart@d4030000  \ UART1 
    22    0 " linux,unit#" integer-property 
    23 device-end 
    24  
    25 dev /uart@d4017000  \ UART2 
    26    1 " linux,unit#" integer-property 
    27 device-end 
    28  
    29 dev /uart@d4018000  \ UART3 
    30    " disabled" " status" string-property 
    31 device-end 
    32  
    33 dev /uart@d4016000  \ UART4 
    34    " disabled" " status" string-property  \ Used for touchscreen BSL 
    35 device-end 
    36  
    37 dev /sd 
    38    new-device 
    39    1 encode-int " reg" property 
    40    fload ${BP}/dev/mmc/sdhci/sdmmc.fth 
    41    fload ${BP}/dev/mmc/sdhci/selftest.fth 
    42    " external" " slot-name" string-property 
    43    finish-device 
    44 device-end 
    45  
    46 devalias ext     /sd/disk@1 
    47 \ 2 is WLAN 
    48 devalias int     /sd/disk@3 
    49 devalias emmc    /sd/disk@3 
    50 \ Nothing on channel 4 
    51 devalias int-sd  /sd/disk@5 
    52  
    53 stand-init: 
    54    boot-dev-sel-gpio# gpio-pin@  0=  if 
    55       " int" " /sd/disk@5"  $devalias 
    56    then 
    57 ; 
    58  
     17fload ${BP}/cpu/arm/olpc/cl4/uart.fth 
     18fload ${BP}/cpu/arm/olpc/cl4/sdhci.fth 
    5919fload ${BP}/cpu/arm/olpc/1.75/lcdcfg.fth 
    6020fload ${BP}/cpu/arm/olpc/1.75/usb.fth 
Note: See TracChangeset for help on using the changeset viewer.