Files
u-boot-tk1-som/include
John Schmoller 72fb68d53c xes: Add board_flash_wp_on()
Add board_flash_wp_on() to check a pca9557 gpio pin to see
if non-volatile memory write protection is enabled.

Previously, write protected NOR flashes would fail initialization which
resulted in a bootup error such as:

 ...
 DTT:   53 C local / 64 C remote (adt7461@4c)
 DTT:   54 C local (ds1621@48)
 FLASH: Executed from FLASH1
 POST memory PASSED
 FLASH: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
 ## Unknown FLASH on Bank 2 - Size = 0x00000000 = 0 MB
 *** failed ***
 ### ERROR ### Please RESET the board ###

With this patch, NOR flash initialization is skipped:

 ...
 DTT:   53 C local / 64 C remote (adt7461@4c)
 DTT:   54 C local (ds1621@48)
 FLASH: Executed from FLASH1
 POST memory PASSED
 FLASH: Uninitialized - Write Protect On
 L2:    1024 KB enabled
 NAND:  1024 MiB
 ...

Note that flash related commands such as flinfo and saveenv will error
out when flash write protection is enabled.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-10-22 02:17:19 -05:00
..
2010-10-22 02:17:19 -05:00
2008-10-18 21:54:03 +02:00
2010-04-13 09:13:04 +02:00
2010-04-13 09:13:04 +02:00
2009-10-03 10:17:56 +02:00
2008-12-15 22:05:36 +01:00
2009-03-20 22:39:13 +01:00
2009-10-03 10:17:56 +02:00
2010-01-27 21:23:14 +01:00
2008-05-21 00:14:08 +02:00
2008-10-18 21:54:03 +02:00
2008-05-10 11:44:55 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2010-09-19 19:29:51 +02:00
2009-10-27 20:58:25 +01:00
2008-10-18 21:54:03 +02:00
2009-01-24 00:23:09 +01:00
2008-05-21 00:14:08 +02:00
2009-09-04 21:54:52 +02:00
2008-10-18 21:54:03 +02:00
2010-09-19 19:29:47 +02:00
2008-03-26 23:38:54 +01:00
2009-07-16 22:23:53 +02:00
2008-10-18 21:54:03 +02:00
2009-10-13 06:17:35 -05:00
2010-10-19 23:52:20 +02:00
2008-10-18 21:54:03 +02:00
2010-01-21 22:26:00 +01:00
2009-04-03 23:47:06 +02:00
2010-08-09 11:52:29 -07:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2010-10-12 22:44:33 +02:00
2008-10-18 21:54:03 +02:00
2010-07-16 10:55:09 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2010-10-11 23:07:04 -07:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2010-03-21 22:44:42 +01:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2010-04-21 23:42:38 +02:00
2008-10-18 21:54:03 +02:00
2009-11-13 16:56:18 -06:00
2009-04-03 23:47:06 +02:00
2008-05-21 00:14:08 +02:00
2010-03-12 23:06:04 +01:00
2008-10-18 21:54:03 +02:00
2010-10-20 02:38:07 -05:00
2008-10-18 21:54:03 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2009-10-03 10:17:56 +02:00
2009-10-03 10:17:56 +02:00
2008-05-21 00:14:08 +02:00
2010-01-31 22:34:34 -08:00
2009-01-28 19:57:27 +01:00
2010-08-12 16:40:00 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2009-10-03 10:17:56 +02:00
2008-10-18 21:54:03 +02:00
2010-05-28 10:56:04 -04:00