xref: /openbmc/u-boot/arch/arm/mach-at91/include/mach/at91_common.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2af930827SMasahiro Yamada /*
3af930827SMasahiro Yamada  * (C) Copyright 2007-2008
4af930827SMasahiro Yamada  * Stelian Pop <stelian@popies.net>
5af930827SMasahiro Yamada  * Lead Tech Design <www.leadtechdesign.com>
6af930827SMasahiro Yamada  */
7af930827SMasahiro Yamada 
8af930827SMasahiro Yamada #ifndef AT91_COMMON_H
9af930827SMasahiro Yamada #define AT91_COMMON_H
10af930827SMasahiro Yamada 
11af930827SMasahiro Yamada void at91_can_hw_init(void);
12af930827SMasahiro Yamada void at91_gmac_hw_init(void);
13af930827SMasahiro Yamada void at91_macb_hw_init(void);
14af930827SMasahiro Yamada void at91_mci_hw_init(void);
15af930827SMasahiro Yamada void at91_serial0_hw_init(void);
16af930827SMasahiro Yamada void at91_serial1_hw_init(void);
17af930827SMasahiro Yamada void at91_serial2_hw_init(void);
18af930827SMasahiro Yamada void at91_seriald_hw_init(void);
19af930827SMasahiro Yamada void at91_spi0_hw_init(unsigned long cs_mask);
20af930827SMasahiro Yamada void at91_spi1_hw_init(unsigned long cs_mask);
21af930827SMasahiro Yamada void at91_udp_hw_init(void);
22af930827SMasahiro Yamada void at91_uhp_hw_init(void);
23af930827SMasahiro Yamada void at91_lcd_hw_init(void);
24af930827SMasahiro Yamada void at91_plla_init(u32 pllar);
25af930827SMasahiro Yamada void at91_pllb_init(u32 pllar);
26af930827SMasahiro Yamada void at91_mck_init(u32 mckr);
272b21cf55SWenyou Yang void at91_mck_init_down(u32 mckr);
28af930827SMasahiro Yamada void at91_pmc_init(void);
29af930827SMasahiro Yamada void mem_init(void);
30af930827SMasahiro Yamada void at91_phy_reset(void);
31af930827SMasahiro Yamada void at91_sdram_hw_init(void);
32af930827SMasahiro Yamada void at91_mck_init(u32 mckr);
33af930827SMasahiro Yamada void at91_spl_board_init(void);
34af930827SMasahiro Yamada void at91_disable_wdt(void);
35af930827SMasahiro Yamada void matrix_init(void);
36af930827SMasahiro Yamada void redirect_int_from_saic_to_aic(void);
37f7cf291aSSamuel Mescoff void configure_2nd_sram_as_l2_cache(void);
38af930827SMasahiro Yamada 
39d9b23e26SWenyou Yang int at91_set_ethaddr(int offset);
4082e0646aSWenyou Yang int at91_video_show_board_info(void);
41d9b23e26SWenyou Yang 
42af930827SMasahiro Yamada #endif /* AT91_COMMON_H */
43