Tidy up the naming of the ip2 DDR flush routine, and add an inline
accessor method (which is currently unused) in there.
This commit is contained in:
parent
859aaa883e
commit
f0fb75ebd2
@ -51,7 +51,7 @@ struct ar71xx_cpu_def {
|
|||||||
* This flush is done before the IRQ is handled to make
|
* This flush is done before the IRQ is handled to make
|
||||||
* sure the driver correctly sees any memory updates.
|
* sure the driver correctly sees any memory updates.
|
||||||
*/
|
*/
|
||||||
void (* ar71xx_chip_irq_flush_ip2) (void);
|
void (* ar71xx_chip_ddr_flush_ip2) (void);
|
||||||
/*
|
/*
|
||||||
* The USB peripheral init code is subtly different for
|
* The USB peripheral init code is subtly different for
|
||||||
* each chip.
|
* each chip.
|
||||||
@ -106,6 +106,11 @@ static inline void ar71xx_init_usb_peripheral(void)
|
|||||||
ar71xx_cpu_ops->ar71xx_chip_init_usb_peripheral();
|
ar71xx_cpu_ops->ar71xx_chip_init_usb_peripheral();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void ar71xx_device_ddr_flush_ip2(void)
|
||||||
|
{
|
||||||
|
ar71xx_cpu_ops->ar71xx_chip_ddr_flush_ip2();
|
||||||
|
}
|
||||||
|
|
||||||
/* XXX shouldn't be here! */
|
/* XXX shouldn't be here! */
|
||||||
extern uint32_t u_ar71xx_cpu_freq;
|
extern uint32_t u_ar71xx_cpu_freq;
|
||||||
extern uint32_t u_ar71xx_ahb_freq;
|
extern uint32_t u_ar71xx_ahb_freq;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user