]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/cpu.h
x86: kconfig: Select ARCH_EARLY_INIT_R in the platform Kconfig
[u-boot] / arch / x86 / include / asm / cpu.h
index 18b034598639059048ed1922b5ee961a465675b7..bc2c4ffd9f11d82063d0b907b562cd14859ed0c1 100644 (file)
@@ -53,7 +53,9 @@ enum {
 enum {
        X86_NONE,
        X86_SYSCON_ME,          /* Intel Management Engine */
-       X86_SYSCON_GMA,         /* Intel Graphics Media Accelerator */
+       X86_SYSCON_PINCONF,     /* Intel x86 pin configuration */
+       X86_SYSCON_PMU,         /* Power Management Unit */
+       X86_SYSCON_SCU,         /* System Controller Unit */
 };
 
 struct cpuid_result {
@@ -159,6 +161,8 @@ static inline unsigned int cpuid_edx(unsigned int op)
        return edx;
 }
 
+#if !CONFIG_IS_ENABLED(X86_64)
+
 /* Standard macro to see if a specific flag is changeable */
 static inline int flag_is_changeable_p(uint32_t flag)
 {
@@ -179,6 +183,7 @@ static inline int flag_is_changeable_p(uint32_t flag)
                : "ir" (flag));
        return ((f1^f2) & flag) != 0;
 }
+#endif
 
 static inline void mfence(void)
 {
@@ -260,4 +265,27 @@ void cpu_call32(ulong code_seg32, ulong target, ulong table);
  */
 int cpu_jump_to_64bit(ulong setup_base, ulong target);
 
+/**
+ * cpu_jump_to_64bit_uboot() - special function to jump from SPL to U-Boot
+ *
+ * This handles calling from 32-bit SPL to 64-bit U-Boot.
+ *
+ * @target:    Address of U-Boot in RAM
+ */
+int cpu_jump_to_64bit_uboot(ulong target);
+
+/**
+ * cpu_get_family_model() - Get the family and model for the CPU
+ *
+ * @return the CPU ID masked with 0x0fff0ff0
+ */
+u32 cpu_get_family_model(void);
+
+/**
+ * cpu_get_stepping() - Get the stepping value for the CPU
+ *
+ * @return the CPU ID masked with 0xf
+ */
+u32 cpu_get_stepping(void);
+
 #endif