From patchwork Fri Feb 15 14:40:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rony Nandy X-Patchwork-Id: 14923 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 398B223FC2 for ; Fri, 15 Feb 2013 14:40:26 +0000 (UTC) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by fiordland.canonical.com (Postfix) with ESMTP id E0CAFA189DF for ; Fri, 15 Feb 2013 14:40:25 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id cz10so3039071veb.21 for ; Fri, 15 Feb 2013 06:40:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=e2htui7uK8ouTfB9Hytf/k0SPEjP5i+5yJRrRG3OwIE=; b=HL1/jIp/TDcnqQ8ZbGJK3TxmvKi8lDehCQQvu4SPlMLsTCqF93ABWmpDkmsvkgSXWt Z+lLGAsuQudPkgycL7PIA3T+bkL744rvdONPOTE5o32xbHjQoBfEps3y3rGsBgjf2EaK EIkd+7pt99/6SvJk2V15ji8fRZ+sxKrnOrbUW0fZEgvV8E1cYCC6RNR172IQuD8MpBDg rAS4ti4df1CyGU3YyxK+OnlWC0HnArEHP/NGzwjT+5opML5bghfkaZJvpDjaatzsgu5b BLxuDPaidNhdEmT6u5jwJvIgSYuOn4o11zGhEH1hyDLtKKr90QeRQE603v4u3QPTzjTh Mdyw== X-Received: by 10.221.0.79 with SMTP id nl15mr3413891vcb.41.1360939225380; Fri, 15 Feb 2013 06:40:25 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.221.4.5 with SMTP id oa5csp16832vcb; Fri, 15 Feb 2013 06:40:24 -0800 (PST) X-Received: by 10.204.7.92 with SMTP id c28mr911535bkc.86.1360939223684; Fri, 15 Feb 2013 06:40:23 -0800 (PST) Received: from mail-bk0-f47.google.com (mail-bk0-f47.google.com [209.85.214.47]) by mx.google.com with ESMTPS id il5si39544123bkc.176.2013.02.15.06.40.23 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 06:40:23 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.47 is neither permitted nor denied by best guess record for domain of rony.nandy@linaro.org) client-ip=209.85.214.47; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.47 is neither permitted nor denied by best guess record for domain of rony.nandy@linaro.org) smtp.mail=rony.nandy@linaro.org Received: by mail-bk0-f47.google.com with SMTP id jc3so1548105bkc.20 for ; Fri, 15 Feb 2013 06:40:23 -0800 (PST) X-Received: by 10.204.149.88 with SMTP id s24mr916006bkv.61.1360939222810; Fri, 15 Feb 2013 06:40:22 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id gy3sm17817641bkc.16.2013.02.15.06.40.19 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 06:40:22 -0800 (PST) From: Rony Nandy To: ryan.harkin@linaro.org Cc: patches@linaro.org, boot-architecture@lists.linaro.org, Rony Nandy Subject: [PATCH 1/2] Samsung/Arndale: Booting UEFI and linux from eMMC Date: Fri, 15 Feb 2013 20:10:05 +0530 Message-Id: <1360939206-26681-1-git-send-email-rony.nandy@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlv6vNC2ZQp+OuT2Wt0AhG8WsARsRF6bx/HdtAQ9zDZOiVLbAs4nqF2FMbR8j4aX6LZGU87 1. OM register comparison value changed as per the board switch configuration. 2. Removed eMMC boot partition enable code, to access user area. Signed-off-by: Shivamurthy Shastri Signed-off-by: Rony Nandy --- SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.c | 1 - SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.h | 2 +- SamsungPlatformPkg/ExynosPkg/Exynos5250/Sec/SecEntryPoint.S | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.c b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.c index d166f66..87f9379 100755 --- a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.c +++ b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.c @@ -840,7 +840,6 @@ DetectCard ( gSDMMCMedia.MediaId++; UpdateMSHCClkFrequency(MSHC_CLK_50M); - MSHC_EMMC_Boot_Open(); //do not close boot partition DEBUG ((EFI_D_INFO, "SD Card Media Change on Handle 0x%08x\n", gImageHandle)); return Status; diff --git a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.h b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.h index 9bbf13a..e410d66 100755 --- a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.h +++ b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Drivers/eMMCDxe/eMMCDxe.h @@ -65,7 +65,7 @@ NV data for general purpose : 3400 #define BLEN_512BYTES (0x200) #define BLKSIZE_1 (0x1) -#define OM_EMMC 0x28 +#define OM_EMMC 0x8 #define MAX_RETRY_COUNT (100000) #define MMC_REFERENCE_CLK (96000000) diff --git a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Sec/SecEntryPoint.S b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Sec/SecEntryPoint.S index a10eae1..08a893c 100644 --- a/SamsungPlatformPkg/ExynosPkg/Exynos5250/Sec/SecEntryPoint.S +++ b/SamsungPlatformPkg/ExynosPkg/Exynos5250/Sec/SecEntryPoint.S @@ -198,7 +198,7 @@ _CopyFirmware: ldr r1, [r0,#0x0] bic r2, r1, #0xffffffc1 - cmp r2, #0x28 + cmp r2, #0x8 beq _CopyFirmwareEMMC /* SD/MMC BOOT */