2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2009-03-21 20:07:59 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2007-2008
|
2011-10-31 23:00:39 +00:00
|
|
|
* Stelian Pop <stelian@popies.net>
|
2009-03-21 20:07:59 +00:00
|
|
|
* Lead Tech Design <www.leadtechdesign.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AT91_COMMON_H
|
|
|
|
#define AT91_COMMON_H
|
|
|
|
|
2009-06-30 21:03:33 +00:00
|
|
|
void at91_can_hw_init(void);
|
2013-06-26 02:11:06 +00:00
|
|
|
void at91_gmac_hw_init(void);
|
2009-03-21 20:08:00 +00:00
|
|
|
void at91_macb_hw_init(void);
|
2010-08-13 08:31:06 +00:00
|
|
|
void at91_mci_hw_init(void);
|
2009-03-21 20:07:59 +00:00
|
|
|
void at91_serial0_hw_init(void);
|
|
|
|
void at91_serial1_hw_init(void);
|
|
|
|
void at91_serial2_hw_init(void);
|
2010-11-03 14:38:33 +00:00
|
|
|
void at91_seriald_hw_init(void);
|
2009-03-21 20:07:59 +00:00
|
|
|
void at91_spi0_hw_init(unsigned long cs_mask);
|
|
|
|
void at91_spi1_hw_init(unsigned long cs_mask);
|
2013-09-11 10:24:51 +00:00
|
|
|
void at91_udp_hw_init(void);
|
2009-03-21 20:08:00 +00:00
|
|
|
void at91_uhp_hw_init(void);
|
2013-04-16 23:42:44 +00:00
|
|
|
void at91_lcd_hw_init(void);
|
2013-11-15 03:12:38 +00:00
|
|
|
void at91_plla_init(u32 pllar);
|
2014-10-31 07:31:04 +00:00
|
|
|
void at91_pllb_init(u32 pllar);
|
2013-11-15 03:12:38 +00:00
|
|
|
void at91_mck_init(u32 mckr);
|
2017-09-13 06:58:49 +00:00
|
|
|
void at91_mck_init_down(u32 mckr);
|
2013-11-15 03:12:38 +00:00
|
|
|
void at91_pmc_init(void);
|
|
|
|
void mem_init(void);
|
2013-11-18 07:07:23 +00:00
|
|
|
void at91_phy_reset(void);
|
2014-10-31 07:31:04 +00:00
|
|
|
void at91_sdram_hw_init(void);
|
|
|
|
void at91_mck_init(u32 mckr);
|
|
|
|
void at91_spl_board_init(void);
|
|
|
|
void at91_disable_wdt(void);
|
|
|
|
void matrix_init(void);
|
2014-12-15 05:24:31 +00:00
|
|
|
void redirect_int_from_saic_to_aic(void);
|
2016-02-16 08:45:06 +00:00
|
|
|
void configure_2nd_sram_as_l2_cache(void);
|
2019-08-08 07:48:30 +00:00
|
|
|
#ifdef CONFIG_ATMEL_SFR
|
|
|
|
void configure_ddrcfg_input_buffers(bool open);
|
|
|
|
#endif
|
2009-03-21 20:07:59 +00:00
|
|
|
|
2017-09-01 08:26:16 +00:00
|
|
|
int at91_set_ethaddr(int offset);
|
2019-11-13 15:42:54 +00:00
|
|
|
void at91_spi_nor_set_ethaddr(void);
|
2017-09-13 06:58:47 +00:00
|
|
|
int at91_video_show_board_info(void);
|
2017-09-01 08:26:16 +00:00
|
|
|
|
2009-03-21 20:07:59 +00:00
|
|
|
#endif /* AT91_COMMON_H */
|