cregit-Linux how code gets into the kernel

Release 4.17 arch/arm/mach-imx/cpu-imx35.c

/*
 * MX35 CPU type detection
 *
 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
#include <linux/module.h>
#include <linux/io.h>

#include "hardware.h"
#include "iim.h"


static int mx35_cpu_rev = -1;


static int mx35_read_cpu_rev(void) { u32 rev; rev = imx_readl(MX35_IO_ADDRESS(MX35_IIM_BASE_ADDR + MXC_IIMSREV)); switch (rev) { case 0x00: return IMX_CHIP_REVISION_1_0; case 0x10: return IMX_CHIP_REVISION_2_0; case 0x11: return IMX_CHIP_REVISION_2_1; default: return IMX_CHIP_REVISION_UNKNOWN; } }

Contributors

PersonTokensPropCommitsCommitProp
Uwe Kleine-König3874.51%133.33%
Jason Liu1223.53%133.33%
Johannes Berg11.96%133.33%
Total51100.00%3100.00%


int mx35_revision(void) { if (mx35_cpu_rev == -1) mx35_cpu_rev = mx35_read_cpu_rev(); return mx35_cpu_rev; }

Contributors

PersonTokensPropCommitsCommitProp
Jason Liu1986.36%150.00%
Uwe Kleine-König313.64%150.00%
Total22100.00%2100.00%

EXPORT_SYMBOL(mx35_revision);

Overall Contributors

PersonTokensPropCommitsCommitProp
Uwe Kleine-König5859.18%120.00%
Jason Liu3737.76%120.00%
Shawn Guo22.04%240.00%
Johannes Berg11.02%120.00%
Total98100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.