mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 09:27:35 +00:00
5785950369
Now that commit 3e57f879ee
("mtd: nand: raw: denali: Assert reset
before deassert") added the reset assertion, this code in the board
file is unneeded.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
87 lines
2.7 KiB
C
87 lines
2.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2015-2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*/
|
|
|
|
#ifndef __MACH_INIT_H
|
|
#define __MACH_INIT_H
|
|
|
|
#include <linux/bitops.h>
|
|
#include <linux/types.h>
|
|
|
|
#define UNIPHIER_MAX_NR_DRAM_CH 3
|
|
|
|
struct uniphier_dram_ch {
|
|
unsigned long size;
|
|
unsigned int width;
|
|
};
|
|
|
|
struct uniphier_board_data {
|
|
unsigned int dram_freq;
|
|
struct uniphier_dram_ch dram_ch[UNIPHIER_MAX_NR_DRAM_CH];
|
|
unsigned int flags;
|
|
|
|
#define UNIPHIER_BD_DRAM_SPARSE BIT(9)
|
|
#define UNIPHIER_BD_DDR3PLUS BIT(8)
|
|
};
|
|
|
|
const struct uniphier_board_data *uniphier_get_board_param(void);
|
|
|
|
int uniphier_ld4_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro4_init(const struct uniphier_board_data *bd);
|
|
int uniphier_sld8_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro5_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pxs2_init(const struct uniphier_board_data *bd);
|
|
|
|
void uniphier_ld4_bcu_init(const struct uniphier_board_data *bd);
|
|
|
|
int uniphier_memconf_2ch_init(const struct uniphier_board_data *bd);
|
|
int uniphier_memconf_3ch_init(const struct uniphier_board_data *bd);
|
|
|
|
int uniphier_ld4_dpll_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro4_dpll_init(const struct uniphier_board_data *bd);
|
|
int uniphier_sld8_dpll_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro5_dpll_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pxs2_dpll_init(const struct uniphier_board_data *bd);
|
|
|
|
void uniphier_ld4_early_clk_init(void);
|
|
|
|
void uniphier_ld4_dram_clk_init(void);
|
|
void uniphier_pro5_dram_clk_init(void);
|
|
void uniphier_pxs2_dram_clk_init(void);
|
|
|
|
int uniphier_ld4_umc_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro4_umc_init(const struct uniphier_board_data *bd);
|
|
int uniphier_sld8_umc_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pro5_umc_init(const struct uniphier_board_data *bd);
|
|
int uniphier_pxs2_umc_init(const struct uniphier_board_data *bd);
|
|
|
|
void uniphier_ld4_pll_init(void);
|
|
void uniphier_pro4_pll_init(void);
|
|
void uniphier_ld11_pll_init(void);
|
|
void uniphier_ld20_pll_init(void);
|
|
void uniphier_pxs3_pll_init(void);
|
|
|
|
void uniphier_pro4_clk_init(void);
|
|
void uniphier_pro5_clk_init(void);
|
|
void uniphier_pxs2_clk_init(void);
|
|
void uniphier_ld11_clk_init(void);
|
|
void uniphier_ld20_clk_init(void);
|
|
void uniphier_pxs3_clk_init(void);
|
|
|
|
unsigned int uniphier_boot_device_raw(void);
|
|
int uniphier_have_internal_stm(void);
|
|
int uniphier_boot_from_backend(void);
|
|
int uniphier_pin_init(const char *pinconfig_name);
|
|
|
|
#ifdef CONFIG_ARM64
|
|
void uniphier_mem_map_init(unsigned long dram_base, unsigned long dram_size);
|
|
#else
|
|
static inline void uniphier_mem_map_init(unsigned long dram_base,
|
|
unsigned long dram_size)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MACH_INIT_H */
|