mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
ARM: uniphier: rename function names ph1_* to uniphier_*
Eliminate the "ph1"_ prefixes from function names because "uniphier_" describes the SoC familiy better. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
a75ecfc2a6
commit
5b66006646
51 changed files with 190 additions and 186 deletions
|
@ -29,7 +29,7 @@ ENTRY(debug_ll_init)
|
|||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
#define UNIPHIER_SLD3_UART_CLK 36864000
|
||||
cmp r1, #0x25
|
||||
bne ph1_sld3_end
|
||||
bne sld3_end
|
||||
|
||||
sg_set_pinsel 64, 1, 4, 4, r0, r1 @ TXD0 -> TXD0
|
||||
|
||||
|
@ -45,12 +45,12 @@ ENTRY(debug_ll_init)
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_SLD3_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_sld3_end:
|
||||
sld3_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4)
|
||||
#define UNIPHIER_LD4_UART_CLK 36864000
|
||||
cmp r1, #0x26
|
||||
bne ph1_ld4_end
|
||||
bne ld4_end
|
||||
|
||||
ldr r0, =SG_IECTRL
|
||||
ldr r1, [r0]
|
||||
|
@ -62,12 +62,12 @@ ph1_sld3_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_LD4_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_ld4_end:
|
||||
ld4_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO4)
|
||||
#define UNIPHIER_PRO4_UART_CLK 73728000
|
||||
cmp r1, #0x28
|
||||
bne ph1_pro4_end
|
||||
bne pro4_end
|
||||
|
||||
sg_set_pinsel 128, 0, 4, 8, r0, r1 @ TXD0 -> TXD0
|
||||
|
||||
|
@ -83,12 +83,12 @@ ph1_ld4_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_PRO4_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_pro4_end:
|
||||
pro4_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
#define UNIPHIER_SLD8_UART_CLK 80000000
|
||||
cmp r1, #0x29
|
||||
bne ph1_sld8_end
|
||||
bne sld8_end
|
||||
|
||||
ldr r0, =SG_IECTRL
|
||||
ldr r1, [r0]
|
||||
|
@ -100,12 +100,12 @@ ph1_pro4_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_SLD8_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_sld8_end:
|
||||
sld8_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
#define UNIPHIER_PRO5_UART_CLK 73728000
|
||||
cmp r1, #0x2A
|
||||
bne ph1_pro5_end
|
||||
bne pro5_end
|
||||
|
||||
sg_set_pinsel 47, 0, 4, 8, r0, r1 @ TXD0 -> TXD0
|
||||
sg_set_pinsel 49, 0, 4, 8, r0, r1 @ TXD1 -> TXD1
|
||||
|
@ -124,12 +124,12 @@ ph1_sld8_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_PRO5_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_pro5_end:
|
||||
pro5_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2)
|
||||
#define UNIPHIER_PXS2_UART_CLK 88900000
|
||||
cmp r1, #0x2E
|
||||
bne proxstream2_end
|
||||
bne pxs2_end
|
||||
|
||||
ldr r0, =SG_IECTRL
|
||||
ldr r1, [r0]
|
||||
|
@ -149,12 +149,12 @@ ph1_pro5_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_PXS2_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
proxstream2_end:
|
||||
pxs2_end:
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
#define UNIPHIER_LD6B_UART_CLK 88900000
|
||||
cmp r1, #0x2F
|
||||
bne ph1_ld6b_end
|
||||
bne ld6b_end
|
||||
|
||||
ldr r0, =SG_IECTRL
|
||||
ldr r1, [r0]
|
||||
|
@ -173,7 +173,7 @@ proxstream2_end:
|
|||
ldr r3, =DIV_ROUND(UNIPHIER_LD6B_UART_CLK, 16 * BAUDRATE)
|
||||
|
||||
b init_uart
|
||||
ph1_ld6b_end:
|
||||
ld6b_end:
|
||||
#endif
|
||||
mov pc, lr
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
||||
|
||||
int ph1_ld4_bcu_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_bcu_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
int shift;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
||||
|
||||
int ph1_sld3_bcu_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_bcu_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
int shift;
|
||||
|
||||
|
|
|
@ -15,51 +15,51 @@ int board_early_init_f(void)
|
|||
switch (uniphier_get_soc_type()) {
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
case SOC_UNIPHIER_SLD3:
|
||||
ph1_sld3_pin_init();
|
||||
uniphier_sld3_pin_init();
|
||||
led_puts("U1");
|
||||
ph1_ld4_clk_init();
|
||||
uniphier_ld4_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4)
|
||||
case SOC_UNIPHIER_LD4:
|
||||
ph1_ld4_pin_init();
|
||||
uniphier_ld4_pin_init();
|
||||
led_puts("U1");
|
||||
ph1_ld4_clk_init();
|
||||
uniphier_ld4_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO4)
|
||||
case SOC_UNIPHIER_PRO4:
|
||||
ph1_pro4_pin_init();
|
||||
uniphier_pro4_pin_init();
|
||||
led_puts("U1");
|
||||
ph1_pro4_clk_init();
|
||||
uniphier_pro4_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
case SOC_UNIPHIER_SLD8:
|
||||
ph1_sld8_pin_init();
|
||||
uniphier_sld8_pin_init();
|
||||
led_puts("U1");
|
||||
ph1_ld4_clk_init();
|
||||
uniphier_ld4_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
case SOC_UNIPHIER_PRO5:
|
||||
ph1_pro5_pin_init();
|
||||
uniphier_pro5_pin_init();
|
||||
led_puts("U1");
|
||||
ph1_pro5_clk_init();
|
||||
uniphier_pro5_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2)
|
||||
case SOC_UNIPHIER_PXS2:
|
||||
proxstream2_pin_init();
|
||||
uniphier_pxs2_pin_init();
|
||||
led_puts("U1");
|
||||
proxstream2_clk_init();
|
||||
uniphier_pxs2_clk_init();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
case SOC_UNIPHIER_LD6B:
|
||||
ph1_ld6b_pin_init();
|
||||
uniphier_ld6b_pin_init();
|
||||
led_puts("U1");
|
||||
proxstream2_clk_init();
|
||||
uniphier_pxs2_clk_init();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
static const struct uniphier_board_data ph1_sld3_data = {
|
||||
static const struct uniphier_board_data uniphier_sld3_data = {
|
||||
.dram_freq = 1600,
|
||||
.dram_nr_ch = 3,
|
||||
.dram_ch[0] = {
|
||||
|
@ -35,7 +35,7 @@ static const struct uniphier_board_data ph1_sld3_data = {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4)
|
||||
static const struct uniphier_board_data ph1_ld4_data = {
|
||||
static const struct uniphier_board_data uniphier_ld4_data = {
|
||||
.dram_freq = 1600,
|
||||
.dram_nr_ch = 2,
|
||||
.dram_ddr3plus = true,
|
||||
|
@ -54,7 +54,7 @@ static const struct uniphier_board_data ph1_ld4_data = {
|
|||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO4)
|
||||
/* 1GB RAM board */
|
||||
static const struct uniphier_board_data ph1_pro4_data = {
|
||||
static const struct uniphier_board_data uniphier_pro4_data = {
|
||||
.dram_freq = 1600,
|
||||
.dram_nr_ch = 2,
|
||||
.dram_ch[0] = {
|
||||
|
@ -70,7 +70,7 @@ static const struct uniphier_board_data ph1_pro4_data = {
|
|||
};
|
||||
|
||||
/* 2GB RAM board */
|
||||
static const struct uniphier_board_data ph1_pro4_2g_data = {
|
||||
static const struct uniphier_board_data uniphier_pro4_2g_data = {
|
||||
.dram_freq = 1600,
|
||||
.dram_nr_ch = 2,
|
||||
.dram_ch[0] = {
|
||||
|
@ -87,7 +87,7 @@ static const struct uniphier_board_data ph1_pro4_2g_data = {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
static const struct uniphier_board_data ph1_sld8_data = {
|
||||
static const struct uniphier_board_data uniphier_sld8_data = {
|
||||
.dram_freq = 1333,
|
||||
.dram_nr_ch = 2,
|
||||
.dram_ddr3plus = true,
|
||||
|
@ -105,7 +105,7 @@ static const struct uniphier_board_data ph1_sld8_data = {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
static const struct uniphier_board_data ph1_pro5_data = {
|
||||
static const struct uniphier_board_data uniphier_pro5_data = {
|
||||
.dram_freq = 1866,
|
||||
.dram_nr_ch = 2,
|
||||
.dram_ch[0] = {
|
||||
|
@ -122,7 +122,7 @@ static const struct uniphier_board_data ph1_pro5_data = {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2)
|
||||
static const struct uniphier_board_data proxstream2_data = {
|
||||
static const struct uniphier_board_data uniphier_pxs2_data = {
|
||||
.dram_freq = 2133,
|
||||
.dram_nr_ch = 3,
|
||||
.dram_ch[0] = {
|
||||
|
@ -144,7 +144,7 @@ static const struct uniphier_board_data proxstream2_data = {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
static const struct uniphier_board_data ph1_ld6b_data = {
|
||||
static const struct uniphier_board_data uniphier_ld6b_data = {
|
||||
.dram_freq = 1866,
|
||||
.dram_nr_ch = 3,
|
||||
.dram_ch[0] = {
|
||||
|
@ -172,27 +172,27 @@ struct uniphier_board_id {
|
|||
|
||||
static const struct uniphier_board_id uniphier_boards[] = {
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
{ "socionext,ph1-sld3", &ph1_sld3_data, },
|
||||
{ "socionext,ph1-sld3", &uniphier_sld3_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4)
|
||||
{ "socionext,ph1-ld4", &ph1_ld4_data, },
|
||||
{ "socionext,ph1-ld4", &uniphier_ld4_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO4)
|
||||
{ "socionext,ph1-pro4-ace", &ph1_pro4_2g_data, },
|
||||
{ "socionext,ph1-pro4-sanji", &ph1_pro4_2g_data, },
|
||||
{ "socionext,ph1-pro4", &ph1_pro4_data, },
|
||||
{ "socionext,ph1-pro4-ace", &uniphier_pro4_2g_data, },
|
||||
{ "socionext,ph1-pro4-sanji", &uniphier_pro4_2g_data, },
|
||||
{ "socionext,ph1-pro4", &uniphier_pro4_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
{ "socionext,ph1-sld8", &ph1_sld8_data, },
|
||||
{ "socionext,ph1-sld8", &uniphier_sld8_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
{ "socionext,ph1-pro5", &ph1_pro5_data, },
|
||||
{ "socionext,ph1-pro5", &uniphier_pro5_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2)
|
||||
{ "socionext,proxstream2", &proxstream2_data, },
|
||||
{ "socionext,proxstream2", &uniphier_pxs2_data, },
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
{ "socionext,ph1-ld6b", &ph1_ld6b_data, },
|
||||
{ "socionext,ph1-ld6b", &uniphier_ld6b_data, },
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -12,15 +12,15 @@ struct boot_device_info {
|
|||
char *info;
|
||||
};
|
||||
|
||||
u32 ph1_sld3_boot_device(void);
|
||||
u32 ph1_ld4_boot_device(void);
|
||||
u32 ph1_pro5_boot_device(void);
|
||||
u32 proxstream2_boot_device(void);
|
||||
u32 uniphier_sld3_boot_device(void);
|
||||
u32 uniphier_ld4_boot_device(void);
|
||||
u32 uniphier_pro5_boot_device(void);
|
||||
u32 uniphier_pxs2_boot_device(void);
|
||||
|
||||
void ph1_sld3_boot_mode_show(void);
|
||||
void ph1_ld4_boot_mode_show(void);
|
||||
void ph1_pro5_boot_mode_show(void);
|
||||
void proxstream2_boot_mode_show(void);
|
||||
void uniphier_sld3_boot_mode_show(void);
|
||||
void uniphier_ld4_boot_mode_show(void);
|
||||
void uniphier_pro5_boot_mode_show(void);
|
||||
void uniphier_pxs2_boot_mode_show(void);
|
||||
|
||||
u32 spl_boot_device_raw(void);
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ static int get_boot_mode_sel(void)
|
|||
return (readl(SG_PINMON0) >> 1) & 0x1f;
|
||||
}
|
||||
|
||||
u32 ph1_ld4_boot_device(void)
|
||||
u32 uniphier_ld4_boot_device(void)
|
||||
{
|
||||
int boot_mode;
|
||||
|
||||
|
@ -60,7 +60,7 @@ u32 ph1_ld4_boot_device(void)
|
|||
return boot_device_table[boot_mode].type;
|
||||
}
|
||||
|
||||
void ph1_ld4_boot_mode_show(void)
|
||||
void uniphier_ld4_boot_mode_show(void)
|
||||
{
|
||||
int mode_sel, i;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ static int get_boot_mode_sel(void)
|
|||
return (readl(SG_PINMON0) >> 1) & 0x1f;
|
||||
}
|
||||
|
||||
u32 ph1_pro5_boot_device(void)
|
||||
u32 uniphier_pro5_boot_device(void)
|
||||
{
|
||||
int boot_mode;
|
||||
|
||||
|
@ -61,7 +61,7 @@ u32 ph1_pro5_boot_device(void)
|
|||
return boot_device_table[boot_mode].type;
|
||||
}
|
||||
|
||||
void ph1_pro5_boot_mode_show(void)
|
||||
void uniphier_pro5_boot_mode_show(void)
|
||||
{
|
||||
int mode_sel, i;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ static int get_boot_mode_sel(void)
|
|||
return (readl(SG_PINMON0) >> 1) & 0x1f;
|
||||
}
|
||||
|
||||
u32 proxstream2_boot_device(void)
|
||||
u32 uniphier_pxs2_boot_device(void)
|
||||
{
|
||||
int boot_mode;
|
||||
|
||||
|
@ -63,7 +63,7 @@ u32 proxstream2_boot_device(void)
|
|||
return boot_device_table[boot_mode].type;
|
||||
}
|
||||
|
||||
void proxstream2_boot_mode_show(void)
|
||||
void uniphier_pxs2_boot_mode_show(void)
|
||||
{
|
||||
int mode_sel, i;
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ static int get_boot_mode_sel(void)
|
|||
return readl(SG_PINMON0) & 0x3f;
|
||||
}
|
||||
|
||||
u32 ph1_sld3_boot_device(void)
|
||||
u32 uniphier_sld3_boot_device(void)
|
||||
{
|
||||
int boot_mode;
|
||||
|
||||
|
@ -92,7 +92,7 @@ u32 ph1_sld3_boot_device(void)
|
|||
return boot_device_table[boot_mode].type;
|
||||
}
|
||||
|
||||
void ph1_sld3_boot_mode_show(void)
|
||||
void uniphier_sld3_boot_mode_show(void)
|
||||
{
|
||||
int mode_sel, i;
|
||||
|
||||
|
|
|
@ -21,23 +21,23 @@ u32 spl_boot_device_raw(void)
|
|||
switch (uniphier_get_soc_type()) {
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
case SOC_UNIPHIER_SLD3:
|
||||
return ph1_sld3_boot_device();
|
||||
return uniphier_sld3_boot_device();
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4) || defined(CONFIG_ARCH_UNIPHIER_PRO4) || \
|
||||
defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
case SOC_UNIPHIER_LD4:
|
||||
case SOC_UNIPHIER_PRO4:
|
||||
case SOC_UNIPHIER_SLD8:
|
||||
return ph1_ld4_boot_device();
|
||||
return uniphier_ld4_boot_device();
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
case SOC_UNIPHIER_PRO5:
|
||||
return ph1_pro5_boot_device();
|
||||
return uniphier_pro5_boot_device();
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2) || defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
case SOC_UNIPHIER_PXS2:
|
||||
case SOC_UNIPHIER_LD6B:
|
||||
return proxstream2_boot_device();
|
||||
return uniphier_pxs2_boot_device();
|
||||
#endif
|
||||
default:
|
||||
return BOOT_DEVICE_NONE;
|
||||
|
|
|
@ -17,7 +17,7 @@ static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
switch (uniphier_get_soc_type()) {
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
case SOC_UNIPHIER_SLD3:
|
||||
ph1_sld3_boot_mode_show();
|
||||
uniphier_sld3_boot_mode_show();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4) || defined(CONFIG_ARCH_UNIPHIER_PRO4) || \
|
||||
|
@ -25,18 +25,18 @@ static int do_pinmon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
case SOC_UNIPHIER_LD4:
|
||||
case SOC_UNIPHIER_PRO4:
|
||||
case SOC_UNIPHIER_SLD8:
|
||||
ph1_ld4_boot_mode_show();
|
||||
uniphier_ld4_boot_mode_show();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
case SOC_UNIPHIER_PRO5:
|
||||
ph1_pro5_boot_mode_show();
|
||||
uniphier_pro5_boot_mode_show();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2) || defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
case SOC_UNIPHIER_PXS2:
|
||||
case SOC_UNIPHIER_LD6B:
|
||||
proxstream2_boot_mode_show();
|
||||
uniphier_pxs2_boot_mode_show();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
void ph1_ld4_clk_init(void)
|
||||
void uniphier_ld4_clk_init(void)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
void ph1_pro4_clk_init(void)
|
||||
void uniphier_pro4_clk_init(void)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
void ph1_pro5_clk_init(void)
|
||||
void uniphier_pro5_clk_init(void)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
void proxstream2_clk_init(void)
|
||||
void uniphier_pxs2_clk_init(void)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@ static u32 ddrphy_dtpr2[DRAM_FREQ_NR] = {0x5002c200, 0xa00214f8};
|
|||
static u32 ddrphy_mr0[DRAM_FREQ_NR] = {0x00000b51, 0x00000d71};
|
||||
static u32 ddrphy_mr2[DRAM_FREQ_NR] = {0x00000290, 0x00000298};
|
||||
|
||||
int ph1_ld4_ddrphy_init(struct ddrphy __iomem *phy, int freq, bool ddr3plus)
|
||||
int uniphier_ld4_ddrphy_init(struct ddrphy __iomem *phy, int freq,
|
||||
bool ddr3plus)
|
||||
{
|
||||
enum dram_freq freq_e;
|
||||
u32 tmp;
|
||||
|
|
|
@ -159,7 +159,8 @@ struct ddrphy {
|
|||
#define NR_DATX8_PER_DDRPHY 2
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
int ph1_ld4_ddrphy_init(struct ddrphy __iomem *phy, int freq, bool ddr3plus);
|
||||
int uniphier_ld4_ddrphy_init(struct ddrphy __iomem *phy, int freq,
|
||||
bool ddr3plus);
|
||||
void ddrphy_prepare_training(struct ddrphy __iomem *phy, int rank);
|
||||
int ddrphy_training(struct ddrphy __iomem *phy);
|
||||
#endif
|
||||
|
|
|
@ -152,7 +152,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
|
||||
writel(0x00000101, dc_base + UMC_DIOCTLA);
|
||||
|
||||
ret = ph1_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
ret = uniphier_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -164,7 +164,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
return umc_dramcont_init(dc_base, ca_base, freq, size, ddr3plus);
|
||||
}
|
||||
|
||||
int ph1_ld4_umc_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_umc_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
void __iomem *umc_base = (void __iomem *)0x5b800000;
|
||||
void __iomem *ca_base = umc_base + 0x00001000;
|
||||
|
|
|
@ -142,7 +142,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
writel(0x00000100 | ((1 << (phy + 1)) - 1),
|
||||
dc_base + UMC_DIOCTLA);
|
||||
|
||||
ret = ph1_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
ret = uniphier_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -158,7 +158,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
ddr3plus);
|
||||
}
|
||||
|
||||
int ph1_pro4_umc_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pro4_umc_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
void __iomem *umc_base = (void __iomem *)0x5b800000;
|
||||
void __iomem *ca_base = umc_base + 0x00001000;
|
||||
|
|
|
@ -598,7 +598,7 @@ static void um_init(void __iomem *um_base)
|
|||
writel(0x000000ff, um_base + UMC_MBUS3);
|
||||
}
|
||||
|
||||
int proxstream2_umc_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pxs2_umc_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
void __iomem *um_base = (void __iomem *)0x5b600000;
|
||||
void __iomem *umc_ch_base = (void __iomem *)0x5b800000;
|
||||
|
|
|
@ -155,7 +155,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
|
||||
writel(0x00000101, dc_base + UMC_DIOCTLA);
|
||||
|
||||
ret = ph1_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
ret = uniphier_ld4_ddrphy_init(phy_base, freq, ddr3plus);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -167,7 +167,7 @@ static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base,
|
|||
return umc_dramcont_init(dc_base, ca_base, freq, size, ddr3plus);
|
||||
}
|
||||
|
||||
int ph1_sld8_umc_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld8_umc_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
void __iomem *umc_base = (void __iomem *)0x5b800000;
|
||||
void __iomem *ca_base = umc_base + 0x00001000;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
int ph1_ld4_early_clk_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_early_clk_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
int ph1_pro5_early_clk_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pro5_early_clk_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
int proxstream2_early_clk_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pxs2_early_clk_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
int ph1_sld3_early_pin_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_early_pin_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -26,26 +26,28 @@ struct uniphier_board_data {
|
|||
|
||||
const struct uniphier_board_data *uniphier_get_board_param(void);
|
||||
|
||||
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);
|
||||
int ph1_pro5_init(const struct uniphier_board_data *bd);
|
||||
int proxstream2_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_sld3_init(const struct uniphier_board_data *bd);
|
||||
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);
|
||||
|
||||
#if defined(CONFIG_MICRO_SUPPORT_CARD)
|
||||
int sbc_admulti_init(const struct uniphier_board_data *bd);
|
||||
int sbc_savepin_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_sbc_init_admulti(const struct uniphier_board_data *bd);
|
||||
int uniphier_sbc_init_savepin(const struct uniphier_board_data *bd);
|
||||
int uniphier_sld3_sbc_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_ld4_sbc_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_pxs2_sbc_init(const struct uniphier_board_data *bd);
|
||||
#else
|
||||
static inline int sbc_admulti_init(const struct uniphier_board_data *bd)
|
||||
static inline int uniphier_sbc_init_admulti(
|
||||
const struct uniphier_board_data *bd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int sbc_savepin_init(const struct uniphier_board_data *bd)
|
||||
static inline int uniphier_sbc_init_savepin(
|
||||
const struct uniphier_board_data *bd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -66,44 +68,44 @@ static inline int uniphier_pxs2_sbc_init(const struct uniphier_board_data *bd)
|
|||
}
|
||||
#endif
|
||||
|
||||
int ph1_sld3_bcu_init(const struct uniphier_board_data *bd);
|
||||
int ph1_ld4_bcu_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_sld3_bcu_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_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);
|
||||
int proxstream2_memconf_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_sld3_memconf_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_pxs2_memconf_init(const struct uniphier_board_data *bd);
|
||||
|
||||
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 uniphier_sld3_pll_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_ld4_pll_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_pro4_pll_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_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 uniphier_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd);
|
||||
int uniphier_ld4_enable_dpll_ssc(const struct uniphier_board_data *bd);
|
||||
|
||||
int ph1_ld4_early_clk_init(const struct uniphier_board_data *bd);
|
||||
int ph1_pro5_early_clk_init(const struct uniphier_board_data *bd);
|
||||
int proxstream2_early_clk_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_ld4_early_clk_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_pro5_early_clk_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_pxs2_early_clk_init(const struct uniphier_board_data *bd);
|
||||
|
||||
int ph1_sld3_early_pin_init(const struct uniphier_board_data *bd);
|
||||
int uniphier_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);
|
||||
int proxstream2_umc_init(const struct uniphier_board_data *bd);
|
||||
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_pxs2_umc_init(const struct uniphier_board_data *bd);
|
||||
|
||||
void ph1_sld3_pin_init(void);
|
||||
void ph1_ld4_pin_init(void);
|
||||
void ph1_pro4_pin_init(void);
|
||||
void ph1_sld8_pin_init(void);
|
||||
void ph1_pro5_pin_init(void);
|
||||
void proxstream2_pin_init(void);
|
||||
void ph1_ld6b_pin_init(void);
|
||||
void uniphier_sld3_pin_init(void);
|
||||
void uniphier_ld4_pin_init(void);
|
||||
void uniphier_pro4_pin_init(void);
|
||||
void uniphier_sld8_pin_init(void);
|
||||
void uniphier_pro5_pin_init(void);
|
||||
void uniphier_pxs2_pin_init(void);
|
||||
void uniphier_ld6b_pin_init(void);
|
||||
|
||||
void ph1_ld4_clk_init(void);
|
||||
void ph1_pro4_clk_init(void);
|
||||
void ph1_pro5_clk_init(void);
|
||||
void proxstream2_clk_init(void);
|
||||
void uniphier_ld4_clk_init(void);
|
||||
void uniphier_pro4_clk_init(void);
|
||||
void uniphier_pro5_clk_init(void);
|
||||
void uniphier_pxs2_clk_init(void);
|
||||
|
||||
#define pr_err(fmt, args...) printf(fmt, ##args)
|
||||
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int ph1_ld4_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
ph1_ld4_bcu_init(bd);
|
||||
uniphier_ld4_bcu_init(bd);
|
||||
|
||||
sbc_savepin_init(bd);
|
||||
uniphier_sbc_init_savepin(bd);
|
||||
uniphier_ld4_sbc_init(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
||||
ph1_ld4_pll_init(bd);
|
||||
uniphier_ld4_pll_init(bd);
|
||||
|
||||
support_card_init();
|
||||
|
||||
|
@ -29,7 +29,7 @@ int ph1_ld4_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L1");
|
||||
|
||||
ph1_ld4_early_clk_init(bd);
|
||||
uniphier_ld4_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
|
@ -44,7 +44,7 @@ int ph1_ld4_init(const struct uniphier_board_data *bd)
|
|||
{
|
||||
int res;
|
||||
|
||||
res = ph1_ld4_umc_init(bd);
|
||||
res = uniphier_ld4_umc_init(bd);
|
||||
if (res < 0) {
|
||||
while (1)
|
||||
;
|
||||
|
@ -53,7 +53,7 @@ int ph1_ld4_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L5");
|
||||
|
||||
ph1_ld4_enable_dpll_ssc(bd);
|
||||
uniphier_ld4_enable_dpll_ssc(bd);
|
||||
|
||||
led_puts("L6");
|
||||
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int ph1_pro4_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pro4_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
sbc_savepin_init(bd);
|
||||
uniphier_sbc_init_savepin(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
||||
ph1_pro4_pll_init(bd);
|
||||
uniphier_pro4_pll_init(bd);
|
||||
|
||||
support_card_init();
|
||||
|
||||
|
@ -26,7 +26,7 @@ int ph1_pro4_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L1");
|
||||
|
||||
ph1_ld4_early_clk_init(bd);
|
||||
uniphier_ld4_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
|
@ -41,7 +41,7 @@ int ph1_pro4_init(const struct uniphier_board_data *bd)
|
|||
{
|
||||
int res;
|
||||
|
||||
res = ph1_pro4_umc_init(bd);
|
||||
res = uniphier_pro4_umc_init(bd);
|
||||
if (res < 0) {
|
||||
while (1)
|
||||
;
|
||||
|
@ -50,7 +50,7 @@ int ph1_pro4_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L5");
|
||||
|
||||
ph1_ld4_enable_dpll_ssc(bd);
|
||||
uniphier_ld4_enable_dpll_ssc(bd);
|
||||
|
||||
led_puts("L6");
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int ph1_pro5_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pro5_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
sbc_savepin_init(bd);
|
||||
uniphier_sbc_init_savepin(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
||||
|
@ -24,7 +24,7 @@ int ph1_pro5_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L1");
|
||||
|
||||
ph1_pro5_early_clk_init(bd);
|
||||
uniphier_pro5_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int proxstream2_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pxs2_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
int ret;
|
||||
|
||||
sbc_savepin_init(bd);
|
||||
uniphier_sbc_init_savepin(bd);
|
||||
uniphier_pxs2_sbc_init(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
@ -24,11 +24,11 @@ int proxstream2_init(const struct uniphier_board_data *bd)
|
|||
led_puts("L0");
|
||||
|
||||
memconf_init(bd);
|
||||
proxstream2_memconf_init(bd);
|
||||
uniphier_pxs2_memconf_init(bd);
|
||||
|
||||
led_puts("L1");
|
||||
|
||||
proxstream2_early_clk_init(bd);
|
||||
uniphier_pxs2_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
|
@ -40,7 +40,7 @@ int proxstream2_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L4");
|
||||
|
||||
ret = proxstream2_umc_init(bd);
|
||||
ret = uniphier_pxs2_umc_init(bd);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
@ -10,31 +10,31 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int ph1_sld3_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
ph1_sld3_bcu_init(bd);
|
||||
uniphier_sld3_bcu_init(bd);
|
||||
|
||||
sbc_admulti_init(bd);
|
||||
uniphier_sbc_init_admulti(bd);
|
||||
uniphier_sld3_sbc_init(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
||||
ph1_sld3_pll_init(bd);
|
||||
uniphier_sld3_pll_init(bd);
|
||||
|
||||
support_card_init();
|
||||
|
||||
led_puts("L0");
|
||||
|
||||
memconf_init(bd);
|
||||
ph1_sld3_memconf_init(bd);
|
||||
uniphier_sld3_memconf_init(bd);
|
||||
|
||||
led_puts("L1");
|
||||
|
||||
ph1_ld4_early_clk_init(bd);
|
||||
uniphier_ld4_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
ph1_sld3_early_pin_init(bd);
|
||||
uniphier_sld3_early_pin_init(bd);
|
||||
|
||||
led_puts("L3");
|
||||
|
||||
|
@ -46,7 +46,7 @@ int ph1_sld3_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L5");
|
||||
|
||||
ph1_sld3_enable_dpll_ssc(bd);
|
||||
uniphier_sld3_enable_dpll_ssc(bd);
|
||||
|
||||
led_puts("L6");
|
||||
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
#include "../init.h"
|
||||
#include "../micro-support-card.h"
|
||||
|
||||
int ph1_sld8_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld8_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
ph1_ld4_bcu_init(bd);
|
||||
uniphier_ld4_bcu_init(bd);
|
||||
|
||||
sbc_savepin_init(bd);
|
||||
uniphier_sbc_init_savepin(bd);
|
||||
uniphier_ld4_sbc_init(bd);
|
||||
|
||||
support_card_reset();
|
||||
|
||||
ph1_sld8_pll_init(bd);
|
||||
uniphier_sld8_pll_init(bd);
|
||||
|
||||
support_card_init();
|
||||
|
||||
|
@ -29,7 +29,7 @@ int ph1_sld8_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L1");
|
||||
|
||||
ph1_ld4_early_clk_init(bd);
|
||||
uniphier_ld4_early_clk_init(bd);
|
||||
|
||||
led_puts("L2");
|
||||
|
||||
|
@ -44,7 +44,7 @@ int ph1_sld8_init(const struct uniphier_board_data *bd)
|
|||
{
|
||||
int res;
|
||||
|
||||
res = ph1_sld8_umc_init(bd);
|
||||
res = uniphier_sld8_umc_init(bd);
|
||||
if (res < 0) {
|
||||
while (1)
|
||||
;
|
||||
|
@ -53,7 +53,7 @@ int ph1_sld8_init(const struct uniphier_board_data *bd)
|
|||
|
||||
led_puts("L5");
|
||||
|
||||
ph1_ld4_enable_dpll_ssc(bd);
|
||||
uniphier_ld4_enable_dpll_ssc(bd);
|
||||
|
||||
led_puts("L6");
|
||||
|
||||
|
|
|
@ -26,33 +26,33 @@ void spl_board_init(void)
|
|||
switch (uniphier_get_soc_type()) {
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD3)
|
||||
case SOC_UNIPHIER_SLD3:
|
||||
ph1_sld3_init(param);
|
||||
uniphier_sld3_init(param);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_LD4)
|
||||
case SOC_UNIPHIER_LD4:
|
||||
ph1_ld4_init(param);
|
||||
uniphier_ld4_init(param);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO4)
|
||||
case SOC_UNIPHIER_PRO4:
|
||||
ph1_pro4_init(param);
|
||||
uniphier_pro4_init(param);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_SLD8)
|
||||
case SOC_UNIPHIER_SLD8:
|
||||
ph1_sld8_init(param);
|
||||
uniphier_sld8_init(param);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PRO5)
|
||||
case SOC_UNIPHIER_PRO5:
|
||||
ph1_pro5_init(param);
|
||||
uniphier_pro5_init(param);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_ARCH_UNIPHIER_PXS2) || defined(CONFIG_ARCH_UNIPHIER_LD6B)
|
||||
case SOC_UNIPHIER_PXS2:
|
||||
case SOC_UNIPHIER_LD6B:
|
||||
proxstream2_init(param);
|
||||
uniphier_pxs2_init(param);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
int proxstream2_memconf_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pxs2_memconf_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
unsigned long size_per_word;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
int ph1_sld3_memconf_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_memconf_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
unsigned long size_per_word;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_ld4_pin_init(void)
|
||||
void uniphier_ld4_pin_init(void)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_ld6b_pin_init(void)
|
||||
void uniphier_ld6b_pin_init(void)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_pro4_pin_init(void)
|
||||
void uniphier_pro4_pin_init(void)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_pro5_pin_init(void)
|
||||
void uniphier_pro5_pin_init(void)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void proxstream2_pin_init(void)
|
||||
void uniphier_pxs2_pin_init(void)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_sld3_pin_init(void)
|
||||
void uniphier_sld3_pin_init(void)
|
||||
{
|
||||
#ifdef CONFIG_USB_EHCI
|
||||
sg_set_pinsel(13, 0, 4, 4); /* USB0OC */
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sg-regs.h"
|
||||
|
||||
void ph1_sld8_pin_init(void)
|
||||
void uniphier_sld8_pin_init(void)
|
||||
{
|
||||
/* Comment format: PAD Name -> Function Name */
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ static void vpll_init(void)
|
|||
writel(tmp, SC_VPLL27BCTRL);
|
||||
}
|
||||
|
||||
int ph1_ld4_pll_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_pll_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ static void vpll_init(void)
|
|||
writel(tmp, SC_VPLL27BCTRL);
|
||||
}
|
||||
|
||||
int ph1_pro4_pll_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_pro4_pll_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "../init.h"
|
||||
|
||||
int ph1_sld3_pll_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_pll_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
/* add pll init code here */
|
||||
return 0;
|
||||
|
|
|
@ -188,7 +188,7 @@ static void vpll_init(void)
|
|||
writel(tmp, SC_VPLL27BCTRL);
|
||||
}
|
||||
|
||||
int ph1_sld8_pll_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld8_pll_init(const struct uniphier_board_data *bd)
|
||||
{
|
||||
dpll_init();
|
||||
upll_init();
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
int ph1_ld4_enable_dpll_ssc(const struct uniphier_board_data *bd)
|
||||
int uniphier_ld4_enable_dpll_ssc(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "../init.h"
|
||||
#include "../sc-regs.h"
|
||||
|
||||
int ph1_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd)
|
||||
int uniphier_sld3_enable_dpll_ssc(const struct uniphier_board_data *bd)
|
||||
{
|
||||
u32 tmp;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define SBCTRL1_ADMULTIPLX_MEM_VALUE 0x03005500
|
||||
#define SBCTRL2_ADMULTIPLX_MEM_VALUE 0x14000010
|
||||
|
||||
int sbc_admulti_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sbc_init_admulti(const struct uniphier_board_data *bd)
|
||||
{
|
||||
/*
|
||||
* Only CS1 is connected to support card.
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#define SBCTRL2_SAVEPIN_MEM_VALUE 0x34000009
|
||||
#define SBCTRL4_SAVEPIN_MEM_VALUE 0x02110210
|
||||
|
||||
int sbc_savepin_init(const struct uniphier_board_data *bd)
|
||||
int uniphier_sbc_init_savepin(const struct uniphier_board_data *bd)
|
||||
{
|
||||
/*
|
||||
* Only CS1 is connected to support card.
|
||||
|
|
Loading…
Reference in a new issue