Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2007-2008 |
Stelian Pop | 5ee0c7f | 2011-11-01 00:00:39 +0100 | [diff] [blame] | 3 | * Stelian Pop <stelian@popies.net> |
Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 4 | * Lead Tech Design <www.leadtechdesign.com> |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef AT91_COMMON_H |
| 10 | #define AT91_COMMON_H |
| 11 | |
Daniel Gorsulowski | 96d1b47 | 2009-06-30 23:03:33 +0200 | [diff] [blame] | 12 | void at91_can_hw_init(void); |
Bo Shen | 6f6afad | 2013-06-26 10:11:06 +0800 | [diff] [blame] | 13 | void at91_gmac_hw_init(void); |
Jean-Christophe PLAGNIOL-VILLARD | fafa923 | 2009-03-21 21:08:00 +0100 | [diff] [blame] | 14 | void at91_macb_hw_init(void); |
Reinhard Meyer | c718a56 | 2010-08-13 10:31:06 +0200 | [diff] [blame] | 15 | void at91_mci_hw_init(void); |
Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 16 | void at91_serial0_hw_init(void); |
| 17 | void at91_serial1_hw_init(void); |
| 18 | void at91_serial2_hw_init(void); |
Reinhard Meyer | 6dd03ef | 2010-11-03 15:38:33 +0100 | [diff] [blame] | 19 | void at91_seriald_hw_init(void); |
Jean-Christophe PLAGNIOL-VILLARD | 12dcdef | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 20 | void at91_spi0_hw_init(unsigned long cs_mask); |
| 21 | void at91_spi1_hw_init(unsigned long cs_mask); |
Bo Shen | f9623df | 2013-09-11 18:24:51 +0800 | [diff] [blame] | 22 | void at91_udp_hw_init(void); |
Jean-Christophe PLAGNIOL-VILLARD | 4fc81fb | 2009-03-21 21:08:00 +0100 | [diff] [blame] | 23 | void at91_uhp_hw_init(void); |
Wu, Josh | 3f338c1 | 2013-04-16 23:42:44 +0000 | [diff] [blame] | 24 | void at91_lcd_hw_init(void); |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 25 | void at91_plla_init(u32 pllar); |
Heiko Schocher | f1e3a8c | 2014-10-31 08:31:04 +0100 | [diff] [blame] | 26 | void at91_pllb_init(u32 pllar); |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 27 | void at91_mck_init(u32 mckr); |
Wenyou Yang | 95a5018 | 2017-09-13 14:58:49 +0800 | [diff] [blame] | 28 | void at91_mck_init_down(u32 mckr); |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 29 | void at91_pmc_init(void); |
| 30 | void mem_init(void); |
Heiko Schocher | 8a84ae1 | 2013-11-18 08:07:23 +0100 | [diff] [blame] | 31 | void at91_phy_reset(void); |
Heiko Schocher | f1e3a8c | 2014-10-31 08:31:04 +0100 | [diff] [blame] | 32 | void at91_sdram_hw_init(void); |
| 33 | void at91_mck_init(u32 mckr); |
| 34 | void at91_spl_board_init(void); |
| 35 | void at91_disable_wdt(void); |
| 36 | void matrix_init(void); |
Bo Shen | 0a91028 | 2014-12-15 13:24:31 +0800 | [diff] [blame] | 37 | void redirect_int_from_saic_to_aic(void); |
Samuel Mescoff | c3156fc | 2016-02-16 09:45:06 +0100 | [diff] [blame] | 38 | void configure_2nd_sram_as_l2_cache(void); |
Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 39 | |
Wenyou Yang | a3b84f4 | 2017-09-01 16:26:16 +0800 | [diff] [blame] | 40 | int at91_set_ethaddr(int offset); |
Wenyou Yang | 7879f96 | 2017-09-13 14:58:47 +0800 | [diff] [blame] | 41 | int at91_video_show_board_info(void); |
Wenyou Yang | a3b84f4 | 2017-09-01 16:26:16 +0800 | [diff] [blame] | 42 | |
Jean-Christophe PLAGNIOL-VILLARD | 6b0b3db | 2009-03-21 21:07:59 +0100 | [diff] [blame] | 43 | #endif /* AT91_COMMON_H */ |