2015-09-21 15:27:39 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACH_INIT_H
|
|
|
|
#define __MACH_INIT_H
|
|
|
|
|
|
|
|
struct uniphier_board_data {
|
|
|
|
unsigned long dram_ch0_base;
|
|
|
|
unsigned long dram_ch0_size;
|
|
|
|
unsigned long dram_ch0_width;
|
|
|
|
unsigned long dram_ch1_base;
|
|
|
|
unsigned long dram_ch1_size;
|
|
|
|
unsigned long dram_ch1_width;
|
|
|
|
unsigned long dram_ch2_base;
|
|
|
|
unsigned long dram_ch2_size;
|
|
|
|
unsigned long dram_ch2_width;
|
|
|
|
unsigned int dram_freq;
|
|
|
|
};
|
|
|
|
|
2015-12-17 08:47:42 +00:00
|
|
|
const struct uniphier_board_data *uniphier_get_board_param(void);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
int ph1_sld3_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_ld4_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_pro4_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_sld8_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:40 +00:00
|
|
|
int ph1_pro5_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:41 +00:00
|
|
|
int proxstream2_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_MICRO_SUPPORT_CARD)
|
|
|
|
int ph1_sld3_sbc_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_ld4_sbc_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_pro4_sbc_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:41 +00:00
|
|
|
int proxstream2_sbc_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
#else
|
|
|
|
static inline int ph1_sld3_sbc_init(const struct uniphier_board_data *bd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int ph1_ld4_sbc_init(const struct uniphier_board_data *bd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int ph1_pro4_sbc_init(const struct uniphier_board_data *bd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2015-09-21 15:27:41 +00:00
|
|
|
|
|
|
|
static inline int proxstream2_sbc_init(const struct uniphier_board_data *bd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2015-09-21 15:27:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
int ph1_sld3_bcu_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_ld4_bcu_init(const struct uniphier_board_data *bd);
|
|
|
|
|
|
|
|
int memconf_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_sld3_memconf_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:41 +00:00
|
|
|
int proxstream2_memconf_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
int ph1_sld3_pll_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_ld4_pll_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_pro4_pll_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_sld8_pll_init(const struct uniphier_board_data *bd);
|
|
|
|
|
|
|
|
int ph1_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_ld4_enable_dpll_ssc(const struct uniphier_board_data *bd);
|
|
|
|
|
|
|
|
int ph1_ld4_early_clk_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:40 +00:00
|
|
|
int ph1_pro5_early_clk_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:41 +00:00
|
|
|
int proxstream2_early_clk_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
int ph1_sld3_early_pin_init(const struct uniphier_board_data *bd);
|
|
|
|
|
|
|
|
int ph1_ld4_umc_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_pro4_umc_init(const struct uniphier_board_data *bd);
|
|
|
|
int ph1_sld8_umc_init(const struct uniphier_board_data *bd);
|
2016-01-08 16:51:14 +00:00
|
|
|
int proxstream2_umc_init(const struct uniphier_board_data *bd);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
void ph1_sld3_pin_init(void);
|
|
|
|
void ph1_ld4_pin_init(void);
|
|
|
|
void ph1_pro4_pin_init(void);
|
|
|
|
void ph1_sld8_pin_init(void);
|
2015-09-21 15:27:40 +00:00
|
|
|
void ph1_pro5_pin_init(void);
|
2015-09-21 15:27:41 +00:00
|
|
|
void proxstream2_pin_init(void);
|
|
|
|
void ph1_ld6b_pin_init(void);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
void ph1_ld4_clk_init(void);
|
|
|
|
void ph1_pro4_clk_init(void);
|
2015-09-21 15:27:40 +00:00
|
|
|
void ph1_pro5_clk_init(void);
|
2015-09-21 15:27:41 +00:00
|
|
|
void proxstream2_clk_init(void);
|
2015-09-21 15:27:39 +00:00
|
|
|
|
|
|
|
#define pr_err(fmt, args...) printf(fmt, ##args)
|
|
|
|
|
|
|
|
#endif /* __MACH_INIT_H */
|