sc520: Allow boards to override udelay
If the board has a high precision mico-second timer, it maked sense to use it instead of the on-chip one Signed-off-by: Graeme Russ <graeme.russ@gmail.com>utp
parent
95ffaba390
commit
5204566e53
|
@ -69,7 +69,11 @@ int timer_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Allow boards to override udelay implementation */
|
||||||
void __udelay(unsigned long usec)
|
void __udelay(unsigned long usec)
|
||||||
|
__attribute__((weak, alias("sc520_udelay")));
|
||||||
|
|
||||||
|
void sc520_udelay(unsigned long usec)
|
||||||
{
|
{
|
||||||
int m = 0;
|
int m = 0;
|
||||||
long u;
|
long u;
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
void init_sc520(void);
|
void init_sc520(void);
|
||||||
unsigned long init_sc520_dram(void);
|
unsigned long init_sc520_dram(void);
|
||||||
|
void sc520_udelay(unsigned long usec);
|
||||||
|
|
||||||
/* Memory mapped configuration registers */
|
/* Memory mapped configuration registers */
|
||||||
typedef struct sc520_mmcr {
|
typedef struct sc520_mmcr {
|
||||||
|
|
Loading…
Reference in New Issue