mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
avr32: Use correct condition around macb clock accessors
get_macb_pclk_rate() and get_macb_hclk_rate() should be available when the chip has a MACB controller, not when it has a USART. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
This commit is contained in:
parent
f793a35819
commit
cdd42c0c7a
@ -58,7 +58,7 @@ static inline unsigned long get_usart_clk_rate(unsigned int dev_id)
|
|||||||
return get_pba_clk_rate();
|
return get_pba_clk_rate();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef AT32AP700x_CHIP_HAS_USART
|
#ifdef AT32AP700x_CHIP_HAS_MACB
|
||||||
static inline unsigned long get_macb_pclk_rate(unsigned int dev_id)
|
static inline unsigned long get_macb_pclk_rate(unsigned int dev_id)
|
||||||
{
|
{
|
||||||
return get_pbb_clk_rate();
|
return get_pbb_clk_rate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user