arch/arm/mach-omap/include/mach/syslib.h File Reference


Detailed Description

FileName: include/asm-arm/arch-omap/syslib.h

Implemented by arch/arm/mach-omap/syslib.c

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


Functions

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)
void sdelay (unsigned long loops)
void omap_uart_write (unsigned int val, unsigned long base, unsigned char reg_idx)
unsigned int omap_uart_read (unsigned long base, unsigned char reg_idx)


Function Documentation

unsigned int omap_uart_read ( unsigned long  base,
unsigned char  reg_idx 
)

Uart port register read function for OMAP3.

Parameters:
base base address of UART
reg_idx register index
Returns:
character read from register

void omap_uart_write ( unsigned int  val,
unsigned long  base,
unsigned char  reg_idx 
)

All architectures need to implement these.

All architectures need to implement these.

Parameters:
val value to write
base base address of UART
reg_idx register index
Returns:
void

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 
)

System Independent functions.

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