From patchwork Fri Oct 12 15:08:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Wilczek X-Patchwork-Id: 191144 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2434A2C0089 for ; Sat, 13 Oct 2012 02:10:29 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 88ECF4A03A; Fri, 12 Oct 2012 17:10:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tc6BKtU41L5a; Fri, 12 Oct 2012 17:10:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 02E5E4A09C; Fri, 12 Oct 2012 17:09:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 216AC4A030 for ; Fri, 12 Oct 2012 17:09:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jg7ZJJJttFcC for ; Fri, 12 Oct 2012 17:09:39 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id 756E24A01C for ; Fri, 12 Oct 2012 17:09:20 +0200 (CEST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBS00MJOCR4P670@mailout2.samsung.com> for u-boot@lists.denx.de; Sat, 13 Oct 2012 00:09:19 +0900 (KST) X-AuditID: cbfee61b-b7fd46d0000046e0-ca-5078329f895f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D6.D7.18144.F9238705; Sat, 13 Oct 2012 00:09:19 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBS00GYBCQT9X90@mmp2.samsung.com> for u-boot@lists.denx.de; Sat, 13 Oct 2012 00:09:19 +0900 (KST) From: Piotr Wilczek To: u-boot@lists.denx.de Date: Fri, 12 Oct 2012 17:08:51 +0200 Message-id: <1350054531-24681-7-git-send-email-p.wilczek@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1350054531-24681-1-git-send-email-p.wilczek@samsung.com> References: <1350054531-24681-1-git-send-email-p.wilczek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jQd35RhUBBjN7BC3e7u1kd2D0OHtn B2MAYxSXTUpqTmZZapG+XQJXxukF15kLVslVHL5b3MD4QrKLkZNDQsBEonvDTVYIW0ziwr31 bF2MXBxCAtMZJR42z2MHSQgJLGaSmL7LAMRmE9CWWP7mDSOILSIgIfGr/yojSAOzwDJGiYaG 30ANHBzCAp4SL6b6gtSwCKhKrPr/A6yeV8BV4s+rG+wQy+Qlnt7vYwOxOQXcJOYd6meG2OUq MfP6OrYJjLwLGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgR7/Jn0DsZVDRaHGAU4GJV4 eAtYygOEWBPLiitzDzFKcDArifDy8FUECPGmJFZWpRblxxeV5qQWH2KU5mBREudt9kgJEBJI TyxJzU5NLUgtgskycXBKNTAyT1G3OxCs4PreV0PVsHD5K2fLeUfXuzSpeCVxLRT33jLjYOOn ru+fAvbLVr1nzTx084wrK+vbA5UCgnbhOoaPdS2vMkTVb7aZ6jEvUqEl5+b6+7Lbf9jFrN/y S2zKxzBe5gTJIrdHGzZU7DQ9ZXxij5l4VOXLwokVCqGTeCd5Loqf+6P/aKUSS3FGoqEWc1Fx IgAjoRHE9AEAAA== Cc: Piotr Wilczek , Kyungmin Park Subject: [U-Boot] [PATCH 6/6] arm: trats: Use exynos4x10 structures on Trats board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch use exynos4x10 structures on Trats board. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park CC: Minkyu Kang --- 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);