summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c')
-rw-r--r--ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c b/ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c
deleted file mode 100644
index c461e984..00000000
--- a/ANDROID_3.4.5/arch/arm/mach-imx/mmdc.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2011 Freescale Semiconductor, Inc.
- * Copyright 2011 Linaro Ltd.
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
-
-#include <linux/init.h>
-#include <linux/io.h>
-#include <linux/module.h>
-#include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
-
-#define MMDC_MAPSR 0x404
-#define BP_MMDC_MAPSR_PSD 0
-#define BP_MMDC_MAPSR_PSS 4
-
-static int __devinit imx_mmdc_probe(struct platform_device *pdev)
-{
- struct device_node *np = pdev->dev.of_node;
- void __iomem *mmdc_base, *reg;
- u32 val;
- int timeout = 0x400;
-
- mmdc_base = of_iomap(np, 0);
- WARN_ON(!mmdc_base);
-
- reg = mmdc_base + MMDC_MAPSR;
-
- /* Enable automatic power saving */
- val = readl_relaxed(reg);
- val &= ~(1 << BP_MMDC_MAPSR_PSD);
- writel_relaxed(val, reg);
-
- /* Ensure it's successfully enabled */
- while (!(readl_relaxed(reg) & 1 << BP_MMDC_MAPSR_PSS) && --timeout)
- cpu_relax();
-
- if (unlikely(!timeout)) {
- pr_warn("%s: failed to enable automatic power saving\n",
- __func__);
- return -EBUSY;
- }
-
- return 0;
-}
-
-static struct of_device_id imx_mmdc_dt_ids[] = {
- { .compatible = "fsl,imx6q-mmdc", },
- { /* sentinel */ }
-};
-
-static struct platform_driver imx_mmdc_driver = {
- .driver = {
- .name = "imx-mmdc",
- .owner = THIS_MODULE,
- .of_match_table = imx_mmdc_dt_ids,
- },
- .probe = imx_mmdc_probe,
-};
-
-static int __init imx_mmdc_init(void)
-{
- return platform_driver_register(&imx_mmdc_driver);
-}
-postcore_initcall(imx_mmdc_init);