]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/cpu.h
x86: broadwell: Add a pinctrl driver
[u-boot] / arch / x86 / include / asm / cpu.h
index 18b034598639059048ed1922b5ee961a465675b7..789275792ffb8a1bc77f2eaeeb8a38fdc0a906d8 100644 (file)
@@ -54,6 +54,7 @@ enum {
        X86_NONE,
        X86_SYSCON_ME,          /* Intel Management Engine */
        X86_SYSCON_GMA,         /* Intel Graphics Media Accelerator */
+       X86_SYSCON_PINCONF,     /* Intel x86 pin configuration */
 };
 
 struct cpuid_result {
@@ -260,4 +261,30 @@ void cpu_call32(ulong code_seg32, ulong target, ulong table);
  */
 int cpu_jump_to_64bit(ulong setup_base, 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);
+
+/**
+ * cpu_run_reference_code() - Run the platform reference code
+ *
+ * Some platforms require a binary blob to be executed once SDRAM is
+ * available. This is used to set up various platform features, such as the
+ * platform controller hub (PCH). This function should be implemented by the
+ * CPU-specific code.
+ *
+ * @return 0 on success, -ve on failure
+ */
+int cpu_run_reference_code(void);
+
 #endif