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) |
| unsigned int omap_uart_read | ( | unsigned long | base, | |
| unsigned char | reg_idx | |||
| ) |
Uart port register read function for OMAP3.
| base | base address of UART | |
| reg_idx | register index |
| 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.
| val | value to write | |
| base | base address of UART | |
| reg_idx | register index |
| 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
| [in] | loops | number of loops |
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.
| [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 |
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.
| [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 |
Referenced by prcm_init().
1.5.6