plat/nvidia/tegra/common/tegra_platform.c
/*
 * Read the chip ID value and derive the platform
 */
Read the chip ID value and derive the platform
Read the chip ID value and derive the platform
static tegra_platform_t tegra_get_platform(void)
{
	uint32_t major = tegra_get_chipid_major();
	uint32_t minor = tegra_get_chipid_minor();
	if (major > 0)
		return TEGRA_PLATFORM_SILICON;
	if (minor == TEGRA_MINOR_QT)
		return TEGRA_PLATFORM_QT;
	if (minor == TEGRA_MINOR_FPGA)
		return TEGRA_PLATFORM_FPGA;
	if ((minor > TEGRA_MINOR_FPGA) && (minor <= TEGRA_MINOR_EMULATION_MAX))
		return TEGRA_PLATFORM_EMULATION;
	return TEGRA_PLATFORM_MAX;
}
static tegra_platform_t tegra_get_platform ( void ) { uint32_t major = tegra_get_chipid_major ( ) ; uint32_t minor = tegra_get_chipid_minor ( ) ; if ( major > 0 ) return TEGRA_PLATFORM_SILICON ; if ( minor == TEGRA_MINOR_QT ) return TEGRA_PLATFORM_QT ; if ( minor == TEGRA_MINOR_FPGA ) return TEGRA_PLATFORM_FPGA ; if ( ( minor > TEGRA_MINOR_FPGA ) && ( minor <= TEGRA_MINOR_EMULATION_MAX ) ) return TEGRA_PLATFORM_EMULATION ; return TEGRA_PLATFORM_MAX ; }
Read the chip ID value and derive the platform
Read the chip ID value and derive the platform
/* Actual silicon platforms have a non-zero major version */ /*
	 * The minor version number is used by simulation platforms
	 */ /*
	 * Cadence's QuickTurn emulation system is a Solaris-based
	 * chip emulation system
	 */ /*
	 * FPGAs are used during early software/hardware development
	 */ /* Minor version reserved for other emulation platforms */ /* unsupported platform */