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) |
| 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 | |||
| ) |
clear & set a value in a bit range for a 32 bit address
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