From 6e8ff8edbae3c59513dd74a135d452bdb9393f9e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 16 Jul 2007 10:31:11 +0200 Subject: enable flash protection for monitor --- board/scb9328/scb9328.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board') diff --git a/board/scb9328/scb9328.c b/board/scb9328/scb9328.c index 1f681bdbca..f922f22689 100644 --- a/board/scb9328/scb9328.c +++ b/board/scb9328/scb9328.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include static struct device_d cfi_dev = { .name = "cfi_flash", @@ -59,6 +61,7 @@ static int scb9328_devices_init(void) { dev_add_partition(&cfi_dev, 0x00000, 0x20000, "self"); dev_add_partition(&cfi_dev, 0x40000, 0x20000, "env"); + dev_protect(&cfi_dev, 0x20000, 0, 1); return 0; } -- cgit v1.2.3