[coreboot-gerrit] Patch set updated for coreboot: soc/intel/quark: Conditionally define BIT names

Leroy P Leahy (leroy.p.leahy@intel.com) gerrit at coreboot.org
Tue May 31 03:06:40 CEST 2016


Leroy P Leahy (leroy.p.leahy at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15002

-gerrit

commit 933c595dea7f0f25cc483de6ee4f3d1c02864ef3
Author: Lee Leahy <leroy.p.leahy at intel.com>
Date:   Mon May 30 05:38:57 2016 -0700

    soc/intel/quark: Conditionally define BIT names
    
    Only define BIT names if they are not already defined.
    
    TEST=Build and run on Galileo Gen2
    
    Change-Id: Ief4c4bb7a42a1bb2a7f46f13dc9b8bbb4d233e3c
    Signed-off-by: Lee Leahy <leroy.p.leahy at intel.com>
---
 src/soc/intel/quark/include/soc/QuarkNcSocId.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/soc/intel/quark/include/soc/QuarkNcSocId.h b/src/soc/intel/quark/include/soc/QuarkNcSocId.h
index 12f600a..8b5ca2c 100644
--- a/src/soc/intel/quark/include/soc/QuarkNcSocId.h
+++ b/src/soc/intel/quark/include/soc/QuarkNcSocId.h
@@ -24,6 +24,7 @@ Definitions beginning with "N_" are the bit position
 //
 // Define the bits
 //
+#ifndef BIT0
 #define BIT0        0x00000001
 #define BIT1        0x00000002
 #define BIT2        0x00000004
@@ -56,6 +57,7 @@ Definitions beginning with "N_" are the bit position
 #define BIT29       0x20000000
 #define BIT30       0x40000000
 #define BIT31       0x80000000
+#endif
 
 //
 // QNC GMCH Equates



More information about the coreboot-gerrit mailing list