diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-16 10:31:11 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-16 10:31:11 +0200 |
commit | 6e8ff8edbae3c59513dd74a135d452bdb9393f9e (patch) | |
tree | df4c3b41f14739e8a8cee149fc21c43ec95bf20b /board | |
parent | ca52150cd0ca854eb23139748fa0e6f5333fd2dd (diff) | |
download | barebox-6e8ff8edbae3c59513dd74a135d452bdb9393f9e.tar.gz barebox-6e8ff8edbae3c59513dd74a135d452bdb9393f9e.tar.xz |
enable flash protection for monitor
Diffstat (limited to 'board')
-rw-r--r-- | board/scb9328/scb9328.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <asm/arch/imx-regs.h> #include <asm/arch/gpio.h> #include <partition.h> +#include <fs.h> +#include <fcntl.h> 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; } |