~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-imx/mach-imx51.c

Version: ~ [ linux-5.2-rc6 ] ~ [ linux-5.1.15 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.56 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.130 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.183 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.183 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.69 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
  3  * Copyright 2011 Linaro Ltd.
  4  *
  5  * The code contained herein is licensed under the GNU General Public
  6  * License. You may obtain a copy of the GNU General Public License
  7  * Version 2 or later at the following locations:
  8  *
  9  * http://www.opensource.org/licenses/gpl-license.html
 10  * http://www.gnu.org/copyleft/gpl.html
 11  */
 12 
 13 #include <linux/io.h>
 14 #include <linux/irq.h>
 15 #include <linux/of_irq.h>
 16 #include <linux/of_platform.h>
 17 #include <asm/mach/arch.h>
 18 #include <asm/mach/time.h>
 19 
 20 #include "common.h"
 21 #include "hardware.h"
 22 
 23 static void __init imx51_init_early(void)
 24 {
 25         mxc_set_cpu_type(MXC_CPU_MX51);
 26 }
 27 
 28 /*
 29  * The MIPI HSC unit has been removed from the i.MX51 Reference Manual by
 30  * the Freescale marketing division. However this did not remove the
 31  * hardware from the chip which still needs to be configured for proper
 32  * IPU support.
 33  */
 34 #define MX51_MIPI_HSC_BASE 0x83fdc000
 35 static void __init imx51_ipu_mipi_setup(void)
 36 {
 37         void __iomem *hsc_addr;
 38 
 39         hsc_addr = ioremap(MX51_MIPI_HSC_BASE, SZ_16K);
 40         WARN_ON(!hsc_addr);
 41 
 42         /* setup MIPI module to legacy mode */
 43         imx_writel(0xf00, hsc_addr);
 44 
 45         /* CSI mode: reserved; DI control mode: legacy (from Freescale BSP) */
 46         imx_writel(imx_readl(hsc_addr + 0x800) | 0x30ff, hsc_addr + 0x800);
 47 
 48         iounmap(hsc_addr);
 49 }
 50 
 51 static void __init imx51_dt_init(void)
 52 {
 53         imx51_ipu_mipi_setup();
 54         imx_src_init();
 55 
 56         imx_aips_allow_unprivileged_access("fsl,imx51-aipstz");
 57 }
 58 
 59 static void __init imx51_init_late(void)
 60 {
 61         mx51_neon_fixup();
 62         imx51_pm_init();
 63 }
 64 
 65 static const char * const imx51_dt_board_compat[] __initconst = {
 66         "fsl,imx51",
 67         NULL
 68 };
 69 
 70 DT_MACHINE_START(IMX51_DT, "Freescale i.MX51 (Device Tree Support)")
 71         .init_early     = imx51_init_early,
 72         .init_machine   = imx51_dt_init,
 73         .init_late      = imx51_init_late,
 74         .dt_compat      = imx51_dt_board_compat,
 75 MACHINE_END
 76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp