[coreboot-gerrit] New patch to review for coreboot: soc/intel/broadwell: Fix SPI driver compilation

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Feb 3 02:44:04 CET 2016


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13566

-gerrit

commit 128910d248d3b436d1e84756867440174a77646e
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Tue Feb 2 17:42:33 2016 -0800

    soc/intel/broadwell: Fix SPI driver compilation
    
    With the latest coreboot toolchain the cast less removal
    of volatile breaks compilation.
    
    Change-Id: I92010516e8e01c870b60107e20a576a75d491e4e
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 src/soc/intel/broadwell/spi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/soc/intel/broadwell/spi.c b/src/soc/intel/broadwell/spi.c
index e07b425..fde90c4 100644
--- a/src/soc/intel/broadwell/spi.c
+++ b/src/soc/intel/broadwell/spi.c
@@ -187,21 +187,21 @@ static u32 readl_(const void *addr)
 
 static void writeb_(u8 b, const void *addr)
 {
-	write8(addr, b);
+	write8((void *)addr, b);
 	printk(BIOS_DEBUG, "wrote %2.2x to %4.4x\n",
 	       b, ((unsigned) addr & 0xffff) - 0xf020);
 }
 
 static void writew_(u16 b, const void *addr)
 {
-	write16(addr, b);
+	write16((void *)addr, b);
 	printk(BIOS_DEBUG, "wrote %4.4x to %4.4x\n",
 	       b, ((unsigned) addr & 0xffff) - 0xf020);
 }
 
 static void writel_(u32 b, const void *addr)
 {
-	write32(addr, b);
+	write32((void *)addr, b);
 	printk(BIOS_DEBUG, "wrote %8.8x to %4.4x\n",
 	       b, ((unsigned) addr & 0xffff) - 0xf020);
 }



More information about the coreboot-gerrit mailing list