[flashrom] [commit] r1361 - trunk

repository service svn at flashrom.org
Fri Jul 1 02:39:16 CEST 2011


Author: stefanct
Date: Fri Jul  1 02:39:16 2011
New Revision: 1361
URL: http://flashrom.org/trac/flashrom/changeset/1361

Log:
ichspi.c: add FPB (Flash Partition Boundary) macros and init printing

Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Modified:
   trunk/ichspi.c

Modified: trunk/ichspi.c
==============================================================================
--- trunk/ichspi.c	Fri Jul  1 02:39:09 2011	(r1360)
+++ trunk/ichspi.c	Fri Jul  1 02:39:16 2011	(r1361)
@@ -131,6 +131,10 @@
 #define ICH9_REG_BBAR		0xA0	/* 32 Bits BIOS Base Address Configuration */
 #define BBAR_MASK	0x00ffff00		/* 8-23: Bottom of System Flash */
 
+#define ICH9_REG_FPB		0xD0	/* 32 Bits Flash Partition Boundary */
+#define FPB_FPBA_OFF		0	/* 0-12: Block/Sector Erase Size */
+#define FPB_FPBA			(0x1FFF << FPB_FPBA_OFF)
+
 // ICH9R SPI commands
 #define SPI_OPCODE_TYPE_READ_NO_ADDRESS		0
 #define SPI_OPCODE_TYPE_WRITE_NO_ADDRESS	1
@@ -1324,6 +1328,9 @@
 		ichspi_bbar = mmio_readl(ich_spibar + ICH9_REG_BBAR);
 		msg_pdbg("0xA0: 0x%08x (BBAR)\n",
 			     ichspi_bbar);
+		tmp = mmio_readl(ich_spibar + ICH9_REG_FPB);
+		msg_pdbg("0xD0: 0x%08x (FPB)\n", tmp);
+
 		ich_init_opcodes();
 		break;
 	default:




More information about the flashrom mailing list