[U-Boot] [PATCH 6/6] arm: trats: Use exynos4x10 structures on Trats board
Piotr Wilczek
p.wilczek at samsung.com
Fri Oct 12 17:08:51 CEST 2012
This patch use exynos4x10 structures on Trats board.
Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
CC: Minkyu Kang <mk7.kang at samsung.com>
---
board/samsung/trats/trats.c | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index d5c681c..3fb3d2a 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -78,10 +78,10 @@ int board_init(void)
void i2c_init_board(void)
{
- struct exynos4_gpio_part1 *gpio1 =
- (struct exynos4_gpio_part1 *)samsung_get_base_gpio_part1();
- struct exynos4_gpio_part2 *gpio2 =
- (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+ struct exynos4x10_gpio_part1 *gpio1 =
+ (struct exynos4x10_gpio_part1 *)samsung_get_base_gpio_part1();
+ struct exynos4x10_gpio_part2 *gpio2 =
+ (struct exynos4x10_gpio_part2 *)samsung_get_base_gpio_part2();
/* I2C_5 -> PMIC */
s5p_gpio_direction_output(&gpio1->b, 7, 1);
@@ -115,8 +115,8 @@ void dram_init_banksize(void)
static unsigned int get_hw_revision(void)
{
- struct exynos4_gpio_part1 *gpio =
- (struct exynos4_gpio_part1 *)samsung_get_base_gpio_part1();
+ struct exynos4x10_gpio_part1 *gpio =
+ (struct exynos4x10_gpio_part1 *)samsung_get_base_gpio_part1();
int hwrev = 0;
int i;
@@ -156,8 +156,8 @@ int checkboard(void)
#ifdef CONFIG_GENERIC_MMC
int board_mmc_init(bd_t *bis)
{
- struct exynos4_gpio_part2 *gpio =
- (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+ struct exynos4x10_gpio_part2 *gpio =
+ (struct exynos4x10_gpio_part2 *)samsung_get_base_gpio_part2();
int err;
/* eMMC_EN: SD_0_CDn: GPK0[2] Output High */
@@ -248,8 +248,8 @@ void board_usb_init(void)
static void pmic_reset(void)
{
- struct exynos4_gpio_part2 *gpio =
- (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+ struct exynos4x10_gpio_part2 *gpio =
+ (struct exynos4x10_gpio_part2 *)samsung_get_base_gpio_part2();
s5p_gpio_direction_output(&gpio->x0, 7, 1);
s5p_gpio_set_pull(&gpio->x2, 7, GPIO_PULL_NONE);
@@ -257,8 +257,8 @@ static void pmic_reset(void)
static void board_clock_init(void)
{
- struct exynos4_clock *clk =
- (struct exynos4_clock *)samsung_get_base_clock();
+ struct exynos4x10_clock *clk =
+ (struct exynos4x10_clock *)samsung_get_base_clock();
writel(CLK_SRC_CPU_VAL, (unsigned int)&clk->src_cpu);
writel(CLK_SRC_TOP0_VAL, (unsigned int)&clk->src_top0);
@@ -307,8 +307,8 @@ static void board_clock_init(void)
static void board_power_init(void)
{
- struct exynos4_power *pwr =
- (struct exynos4_power *)samsung_get_base_power();
+ struct exynos4x10_power *pwr =
+ (struct exynos4x10_power *)samsung_get_base_power();
/* PS HOLD */
writel(EXYNOS4_PS_HOLD_CON_VAL, (unsigned int)&pwr->ps_hold_control);
@@ -329,10 +329,10 @@ static void board_power_init(void)
static void board_uart_init(void)
{
- struct exynos4_gpio_part1 *gpio1 =
- (struct exynos4_gpio_part1 *)samsung_get_base_gpio_part1();
- struct exynos4_gpio_part2 *gpio2 =
- (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+ struct exynos4x10_gpio_part1 *gpio1 =
+ (struct exynos4x10_gpio_part1 *)samsung_get_base_gpio_part1();
+ struct exynos4x10_gpio_part2 *gpio2 =
+ (struct exynos4x10_gpio_part2 *)samsung_get_base_gpio_part2();
int i;
/*
@@ -366,8 +366,8 @@ int board_early_init_f(void)
static void lcd_reset(void)
{
- struct exynos4_gpio_part2 *gpio2 =
- (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+ struct exynos4x10_gpio_part2 *gpio2 =
+ (struct exynos4x10_gpio_part2 *)samsung_get_base_gpio_part2();
s5p_gpio_direction_output(&gpio2->y4, 5, 1);
udelay(10000);
--
1.7.5.4
More information about the U-Boot
mailing list