cregit-Linux how code gets into the kernel

Release 4.17 arch/arm/mach-imx/mach-imx51.c

/*
 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
 * 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/io.h>
#include <linux/irq.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>

#include "common.h"
#include "hardware.h"


static void __init imx51_init_early(void) { mxc_set_cpu_type(MXC_CPU_MX51); }

Contributors

PersonTokensPropCommitsCommitProp
Shawn Guo14100.00%1100.00%
Total14100.00%1100.00%

/* * The MIPI HSC unit has been removed from the i.MX51 Reference Manual by * the Freescale marketing division. However this did not remove the * hardware from the chip which still needs to be configured for proper * IPU support. */ #define MX51_MIPI_HSC_BASE 0x83fdc000
static void __init imx51_ipu_mipi_setup(void) { void __iomem *hsc_addr; hsc_addr = ioremap(MX51_MIPI_HSC_BASE, SZ_16K); WARN_ON(!hsc_addr); /* setup MIPI module to legacy mode */ imx_writel(0xf00, hsc_addr); /* CSI mode: reserved; DI control mode: legacy (from Freescale BSP) */ imx_writel(imx_readl(hsc_addr + 0x800) | 0x30ff, hsc_addr + 0x800); iounmap(hsc_addr); }

Contributors

PersonTokensPropCommitsCommitProp
Shawn Guo5694.92%150.00%
Johannes Berg35.08%150.00%
Total59100.00%2100.00%


static void __init imx51_dt_init(void) { imx51_ipu_mipi_setup(); imx_src_init(); imx_aips_allow_unprivileged_access("fsl,imx51-aipstz"); }

Contributors

PersonTokensPropCommitsCommitProp
Shawn Guo1575.00%266.67%
Alexander Shiyan525.00%133.33%
Total20100.00%3100.00%


static void __init imx51_init_late(void) { mx51_neon_fixup(); imx51_pm_init(); }

Contributors

PersonTokensPropCommitsCommitProp
Shawn Guo15100.00%1100.00%
Total15100.00%1100.00%

static const char * const imx51_dt_board_compat[] __initconst = { "fsl,imx51", NULL }; DT_MACHINE_START(IMX51_DT, "Freescale i.MX51 (Device Tree Support)") .init_early = imx51_init_early, .init_machine = imx51_dt_init, .init_late = imx51_init_late, .dt_compat = imx51_dt_board_compat, MACHINE_END

Overall Contributors

PersonTokensPropCommitsCommitProp
Shawn Guo17094.44%666.67%
Alexander Shiyan52.78%111.11%
Johannes Berg31.67%111.11%
Sascha Hauer21.11%111.11%
Total180100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.