]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arch: arm: tegra: loki: Correct SKU detection
authorSang-Hun Lee <sanlee@nvidia.com>
Sat, 7 Dec 2013 21:04:38 +0000 (16:04 -0500)
committerRaymond Poudrier <rapoudrier@nvidia.com>
Sun, 8 Dec 2013 02:21:19 +0000 (18:21 -0800)
Bug 1326949
Bug 1361282
Bug 1393328

Change-Id: Iaf3cb9554c8ffe5dba3c2f84a9a7602ec57fb95a
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/339660
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
arch/arm/mach-tegra/board-loki-memory.c

index 70704858461d8e0afc7ad86435433d1734807c60..686c0ea3dd604236a54786d7d025037936e996b4 100644 (file)
@@ -8871,11 +8871,11 @@ int __init loki_emc_init(void)
        tegra_get_board_info(&bi);
 
        if (bi.board_id == BOARD_E2548) {
-               if (bi.sku == 0x0) {
+               if (bi.fab == 0x0) {
                        pr_info("Loki a02 EMC is not supported\n");
                        return -EINVAL;
                }
-               switch (bi.fab) {
+               switch (bi.sku) {
                case 0x0:
                        pr_info("Loading Loki B00 sku0 EMC table.\n");
                        tegra_emc_device.dev.platform_data =
@@ -8892,7 +8892,7 @@ int __init loki_emc_init(void)
                tegra_emc_device.dev.platform_data =
                        &thor_195_b00_emc_pdata;
        } else if (bi.board_id == BOARD_P2530) {
-               switch (bi.fab) {
+               switch (bi.sku) {
                case 0x0:
                        pr_info("Loading Loki FFD sku0 EMC table: 0x%08x\n", bi.sku);
                        tegra_emc_device.dev.platform_data = &loki_ffd_sku0_emc_pdata;