arch/arm/mach-omap/syslib.c File Reference


Detailed Description

FileName: arch/arm/mach-omap/syslib.c

Provide APIs which can be used from platform/architecture code to operate on

Originally from http://linux.omap.com/pub/bootloader/3430sdp/u-boot-v1.tar.gz


Functions

void sdelay (unsigned long loops)
void sr32 (u32 addr, u32 start_bit, u32 num_bits, u32 value)
u32 wait_on_value (u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)


Function Documentation

void sdelay ( unsigned long  loops  ) 

simple spin loop

Will be constant time as its generally used in bypass conditions only. This is necessary until timers are accessible. if you need timed delays use mdelay or udelay instead

Parameters:
[in] loops number of loops
Returns:
void

Referenced by a_init(), and prcm_init().

void sr32 ( u32  addr,
u32  start_bit,
u32  num_bits,
u32  value 
)

clear & set a value in a bit range for a 32 bit address

System Independent functions.

Parameters:
[in] addr Address to set/read from
[in] start_bit Where to put the value
[in] num_bits number of bits the value should be set
[in] value the value to set
Returns:
void

Referenced by prcm_init().

u32 wait_on_value ( u32  read_bit_mask,
u32  match_value,
u32  read_addr,
u32  bound 
)

common routine to allow waiting for changes in volatile regs.

Parameters:
[in] read_bit_mask the bit mask to read
[in] match_value match to which value
[in] read_addr address to read from
[in] bound max iterations
Returns:
1 if match_value is found, else if bound iterations reached, returns 0

Referenced by prcm_init().


Generated on Fri Dec 25 14:13:15 2009 for barebox by  doxygen 1.5.6