projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Move RAM-sizing functions to init.h
[oweals/u-boot.git]
/
board
/
samsung
/
arndale
/
arndale.c
diff --git
a/board/samsung/arndale/arndale.c
b/board/samsung/arndale/arndale.c
index 9efc355dab22f933dcc17c3df85febc4f5a2b55f..9abad3f82497564bcd3e211e94ade665498504cd 100644
(file)
--- a/
board/samsung/arndale/arndale.c
+++ b/
board/samsung/arndale/arndale.c
@@
-1,14
+1,15
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2013 Samsung Electronics
/*
* Copyright (C) 2013 Samsung Electronics
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
+#include <cpu_func.h>
+#include <init.h>
#include <usb.h>
#include <usb.h>
+#include <asm/gpio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/dwmmc.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/dwmmc.h>
-#include <asm/arch/gpio.h>
#include <asm/arch/power.h>
DECLARE_GLOBAL_DATA_PTR;
#include <asm/arch/power.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-16,17
+17,16
@@
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_USB_EHCI_EXYNOS
int board_usb_init(int index, enum usb_init_type init)
{
#ifdef CONFIG_USB_EHCI_EXYNOS
int board_usb_init(int index, enum usb_init_type init)
{
- struct exynos5_gpio_part1 *gpio = (struct exynos5_gpio_part1 *)
- samsung_get_base_gpio_part1();
-
/* Configure gpios for usb 3503 hub:
* disconnect, toggle reset and connect
*/
/* Configure gpios for usb 3503 hub:
* disconnect, toggle reset and connect
*/
- s5p_gpio_direction_output(&gpio->d1, 7, 0);
- s5p_gpio_direction_output(&gpio->x3, 5, 0);
+ gpio_request(EXYNOS5_GPIO_D17, "usb_connect");
+ gpio_request(EXYNOS5_GPIO_X35, "usb_reset");
+ gpio_direction_output(EXYNOS5_GPIO_D17, 0);
+ gpio_direction_output(EXYNOS5_GPIO_X35, 0);
-
s5p_gpio_direction_output(&gpio->x3,
5, 1);
-
s5p_gpio_direction_output(&gpio->d1,
7, 1);
+
gpio_direction_output(EXYNOS5_GPIO_X3
5, 1);
+
gpio_direction_output(EXYNOS5_GPIO_D1
7, 1);
return 0;
}
return 0;
}
@@
-56,7
+56,7
@@
int power_init_board(void)
return 0;
}
return 0;
}
-
void
dram_init_banksize(void)
+
int
dram_init_banksize(void)
{
int i;
u32 addr, size;
{
int i;
u32 addr, size;
@@
-68,9
+68,11
@@
void dram_init_banksize(void)
gd->bd->bi_dram[i].start = addr;
gd->bd->bi_dram[i].size = size;
}
gd->bd->bi_dram[i].start = addr;
gd->bd->bi_dram[i].size = size;
}
+
+ return 0;
}
}
-#ifdef CONFIG_
GENERIC_
MMC
+#ifdef CONFIG_MMC
int board_mmc_init(bd_t *bis)
{
int ret;
int board_mmc_init(bd_t *bis)
{
int ret;
@@
-120,3
+122,13
@@
int checkboard(void)
return 0;
}
#endif
return 0;
}
#endif
+
+#ifdef CONFIG_S5P_PA_SYSRAM
+void smp_set_core_boot_addr(unsigned long addr, int corenr)
+{
+ writel(addr, CONFIG_S5P_PA_SYSRAM);
+
+ /* make sure this write is really executed */
+ __asm__ volatile ("dsb\n");
+}
+#endif