xref: /openbmc/linux/arch/powerpc/include/asm/mpc5xxx.h (revision de06fba6)
1ea2305f6SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
287c441e5SWolfgang Denk /*
387c441e5SWolfgang Denk  * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
487c441e5SWolfgang Denk  *
587c441e5SWolfgang Denk  * Author: John Rigby, <jrigby@freescale.com>, Friday Apr 13 2007
687c441e5SWolfgang Denk  *
787c441e5SWolfgang Denk  * Description:
887c441e5SWolfgang Denk  * MPC5xxx Prototypes and definitions
987c441e5SWolfgang Denk  */
1087c441e5SWolfgang Denk 
1187c441e5SWolfgang Denk #ifndef __ASM_POWERPC_MPC5xxx_H__
1287c441e5SWolfgang Denk #define __ASM_POWERPC_MPC5xxx_H__
1387c441e5SWolfgang Denk 
14*de06fba6SAndy Shevchenko #include <linux/property.h>
15*de06fba6SAndy Shevchenko 
16*de06fba6SAndy Shevchenko unsigned long mpc5xxx_fwnode_get_bus_frequency(struct fwnode_handle *fwnode);
17*de06fba6SAndy Shevchenko 
mpc5xxx_get_bus_frequency(struct device * dev)18*de06fba6SAndy Shevchenko static inline unsigned long mpc5xxx_get_bus_frequency(struct device *dev)
19*de06fba6SAndy Shevchenko {
20*de06fba6SAndy Shevchenko 	return mpc5xxx_fwnode_get_bus_frequency(dev_fwnode(dev));
21*de06fba6SAndy Shevchenko }
2287c441e5SWolfgang Denk 
2387c441e5SWolfgang Denk #endif /* __ASM_POWERPC_MPC5xxx_H__ */
2487c441e5SWolfgang Denk 
25