beautypg.com

4 dtt, 16 spi – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual

Page 105

background image

BSP

COMX-P40x0 ENP2 Installation and Use (6806800R95B)

105

wdt reset
System reset.

7.15.4 DTT

An I2C thermal sensor ADT7411 (U36) is installed and is located on I2C<1>. The ADT7411 is
used to monitor the CPU temperature. Boot up message in the U-Boot will read as "DTT:
ADT7411@4C".

U-Boot provides "dtt" to display the CPU temperature. Here is an example of dtt usage:

dtt
DTT1: CPU Temperature: 48 C

7.16 SPI

The COMX-P40x0 ENP2 provides a SPI bus from the P40x0 CPU with 3 chip-select signals. All SPI
bus signals are routed to COM Express connectors.

For more information on the distribution of the SPI bus, see

SPI Interface

on page 70

.

U-Boot provides "sf" utilities to operate SPI Flash.

Below are usage samples for "sf".

sf probe 0
4096 KiB S25FL032A(P) at 0:0 is now current device

sf erase 0 80000

sf probe [bus:]cs [hz] [mode]

-

Initializes flash device on given SPI bus and chip select.

sf read addr offset len

-

Reads ’len’ bytes starting at ’offset’ to memory at ’addr’

sf write addr offset len

-

Writes ’len’ bytes from memory at ’addr’ to flash at
’offset’

sf erase offset len

-

Erases ’len’ bytes from ’offset’