1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

ar7: clocks setup (prerequisite for dsl/usb) and misc cleanups.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6693 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
ejka
2007-03-25 05:42:16 +00:00
parent 4c28b37535
commit d92ab4b98c
9 changed files with 437 additions and 57 deletions

View File

@@ -29,6 +29,7 @@
#include <linux/mtd/partitions.h>
#include <linux/bootmem.h>
#include <linux/squashfs_fs.h>
#include <linux/root_dev.h>
struct ar7_bin_rec {
unsigned int checksum;
@@ -108,6 +109,7 @@ static int create_mtd_partitions(struct mtd_info *master,
ar7_parts[p - 1].size -= ar7_parts[p].size;
ar7_parts[p - 1].mask_flags |= MTD_WRITEABLE;
ar7_parts[p++].mask_flags = 0;
ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, p - 1);
} else {
printk("Squashfs not found. Moving rootfs partition to next erase block\n");
if ((root_offset % master->erasesize) > 0)
@@ -116,6 +118,7 @@ static int create_mtd_partitions(struct mtd_info *master,
ar7_parts[p].offset = root_offset;
ar7_parts[p].size = master->size - root_offset - post_size;
ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, p);
}
*pparts = ar7_parts;
return p;