Skip to content

Commit

Permalink
Merge branch 'master' of http://git.denx.de/u-boot-sunxi
Browse files Browse the repository at this point in the history
  • Loading branch information
trini committed Nov 22, 2015
2 parents f3c71c9 + aa56cb3 commit 80d307d
Show file tree
Hide file tree
Showing 23 changed files with 1,902 additions and 11 deletions.
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/sunxi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ obj-$(CONFIG_MACH_SUN6I) += dram_sun6i.o
obj-$(CONFIG_MACH_SUN7I) += dram_sun4i.o
obj-$(CONFIG_MACH_SUN8I_A23) += dram_sun8i_a23.o
obj-$(CONFIG_MACH_SUN8I_A33) += dram_sun8i_a33.o
obj-$(CONFIG_MACH_SUN8I_H3) += dram_sun8i_h3.o
obj-y += fel_utils.o
endif
4 changes: 4 additions & 0 deletions arch/arm/cpu/armv7/sunxi/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ static int gpio_init(void)
sunxi_gpio_set_cfgpin(SUNXI_GPB(0), SUN8I_A33_GPB_UART0);
sunxi_gpio_set_cfgpin(SUNXI_GPB(1), SUN8I_A33_GPB_UART0);
sunxi_gpio_set_pull(SUNXI_GPB(1), SUNXI_GPIO_PULL_UP);
#elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN8I_H3)
sunxi_gpio_set_cfgpin(SUNXI_GPA(4), SUN8I_H3_GPA_UART0);
sunxi_gpio_set_cfgpin(SUNXI_GPA(5), SUN8I_H3_GPA_UART0);
sunxi_gpio_set_pull(SUNXI_GPA(5), SUNXI_GPIO_PULL_UP);
#elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN9I)
sunxi_gpio_set_cfgpin(SUNXI_GPH(12), SUN9I_GPH_UART0);
sunxi_gpio_set_cfgpin(SUNXI_GPH(13), SUN9I_GPH_UART0);
Expand Down
6 changes: 4 additions & 2 deletions arch/arm/cpu/armv7/sunxi/clock_sun6i.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ void clock_init_safe(void)

clock_set_pll1(408000000);

writel(AHB1_ABP1_DIV_DEFAULT, &ccm->ahb1_apb1_div);

writel(PLL6_CFG_DEFAULT, &ccm->pll6_cfg);
while (!(readl(&ccm->pll6_cfg) & CCM_PLL6_CTRL_LOCK))
;

writel(AHB1_ABP1_DIV_DEFAULT, &ccm->ahb1_apb1_div);

writel(MBUS_CLK_DEFAULT, &ccm->mbus0_clk_cfg);
writel(MBUS_CLK_DEFAULT, &ccm->mbus1_clk_cfg);
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/cpu/armv7/sunxi/cpu_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ int print_cpuinfo(void)
puts("CPU: Allwinner A23 (SUN8I)\n");
#elif defined CONFIG_MACH_SUN8I_A33
puts("CPU: Allwinner A33 (SUN8I)\n");
#elif defined CONFIG_MACH_SUN8I_H3
puts("CPU: Allwinner H3 (SUN8I)\n");
#elif defined CONFIG_MACH_SUN9I
puts("CPU: Allwinner A80 (SUN9I)\n");
#else
Expand Down
Loading

0 comments on commit 80d307d

Please sign in to comment.