9
0
Fork 0

boards: use recently introduced protect_file function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-10-02 15:33:05 +02:00
parent 2baeaf38f3
commit 7cf2bafde4
10 changed files with 11 additions and 10 deletions

View File

@ -127,7 +127,7 @@ static int eukrea_cpuimx27_devices_init(void)
devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x40000, 0, 1);
protect_file("/dev/env0", 1);
envdev = "NOR";
printf("Using environment in %s Flash\n", envdev);

View File

@ -135,7 +135,7 @@ static int mx27ads_devices_init(void)
devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x20000, 0x20000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x20000, 0, 1);
protect_file("/dev/env0", 1);
armlinux_add_dram(&sdram_dev);
armlinux_set_bootparams((void *)0xa0000100);

View File

@ -43,7 +43,7 @@ static int ipe337_devices_init(void) {
devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x20000, 0x20000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x20000, 0, 1);
protect_file("/dev/env0", 1);
return 0;
}

View File

@ -118,7 +118,7 @@ static int mcfv4e_devices_init(void)
*/
devfs_add_partition("nor0", 0x00000, 0x80000, PARTITION_FIXED, "self0"); /* ourself */
devfs_add_partition("nor0", 0x80000, 0x40000, PARTITION_FIXED, "env0"); /* environment */
dev_protect(&cfi_dev, 0xc0000, 0, 2);
protect_file("/dev/env0", 1);
//register_device(&sram_dev);
//register_device(&nand_dev);

View File

@ -78,7 +78,7 @@ static int netx_devices_init(void) {
/* Do not overwrite primary env for now */
devfs_add_partition("nor0", 0xc0000, 0x80000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x40000, 0, 1);
protect_file("/dev/env0", 1);
armlinux_add_dram(&sdram_dev);
armlinux_set_bootparams((void *)0x80000100);

View File

@ -252,7 +252,7 @@ static int imx31_devices_init(void)
devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0"); /* ourself */
devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0"); /* environment */
dev_protect(&cfi_dev, 0x20000, 0, 1);
protect_file("/dev/env0", 1);
register_device(&sram_dev);
register_device(&nand_dev);

View File

@ -336,7 +336,8 @@ static int pcm038_devices_init(void)
default:
devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x40000, 0, 1);
protect_file("/dev/env0", 1);
envdev = "NOR";
}

View File

@ -103,7 +103,7 @@ static int imx35_devices_init(void)
devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0"); /* ourself */
devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0"); /* environment */
dev_protect(&cfi_dev, 0x20000, 0, 1);
protect_file("/dev/env0", 1);
register_device(&nand_dev);

View File

@ -101,7 +101,7 @@ static int mcfv4e_devices_init(void)
*/
devfs_add_partition("nor0", 0x00000, 0x80000, PARTITION_FIXED, "self0"); /* ourself */
devfs_add_partition("nor0", 0x80000, 0x40000, PARTITION_FIXED, "env0"); /* environment */
dev_protect(&cfi_dev, 0xc0000, 0, 1);
protect_file("/dev/env0", 1);
register_device(&network_dev0);
//register_device(&network_dev1);

View File

@ -94,7 +94,7 @@ static int scb9328_devices_init(void) {
devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0");
dev_protect(&cfi_dev, 0x20000, 0, 1);
protect_file("/dev/env0", 1);
armlinux_add_dram(&sdram_dev);
armlinux_set_bootparams((void *)0x08000100);