Patchwork [U-Boot,6/6] arm: trats: Use exynos4x10 structures on Trats board

login
register
mail settings
Submitter Piotr Wilczek
Date Oct. 12, 2012, 3:08 p.m.
Message ID <1350054531-24681-7-git-send-email-p.wilczek@samsung.com>
Download mbox | patch
Permalink /patch/191144/
State Not Applicable
Delegated to: Minkyu Kang
Headers show

Comments

Piotr Wilczek - Oct. 12, 2012, 3:08 p.m.
This patch use exynos4x10 structures on Trats board.

Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Minkyu Kang <mk7.kang@samsung.com>
---
 board/samsung/trats/trats.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

Patch

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);