prowl - pad partition sizes, add kernel offsets.

add a zero to each of the offsets so that they are 8 characters,
add kernel0/kernel1 offset definition.

Change-Id: I499d748843743745f5f63c2dcffb8b7a34a2b399
diff --git a/quantenna/common/ruby_partitions.h b/quantenna/common/ruby_partitions.h
index 0ebd4a0..7d688fe 100644
--- a/quantenna/common/ruby_partitions.h
+++ b/quantenna/common/ruby_partitions.h
@@ -29,16 +29,25 @@
 #define __RUBY_PARTITIONS_H
 
 #ifdef GFRG240
-#define UBOOT_TEXT_PARTITION_SIZE	0x0040000	/* 256K */
-#define UBOOT_ENV_PARTITION_SIZE	0x0010000	/* 64K */
-#define UBOOT_RESERVED_A_PARTITION_SIZE	0x0030000	/* 192K */
-#define UBOOT_VENDOR_PARTITION_SIZE	0x0080000	/* 512K */
-#define UBOOT_RESERVED_B_PARTITION_SIZE	0x0100000	/* 1M */
-#define UBOOT_HNVRAM_PARTITION_SIZE	0x0200000	/* 2M */
-#define UBOOT_KERNEL_PARTITION_SIZE	0x1C00000	/* 28M (x2) */
-#define UBOOT_DATA_PARTITION_SIZE	0x0400000	/* 4M */
+#define UBOOT_TEXT_PARTITION_SIZE	0x00040000	/* 256K */
+#define UBOOT_ENV_PARTITION_SIZE	0x00010000	/* 64K */
+#define UBOOT_RESERVED_A_PARTITION_SIZE	0x00030000	/* 192K */
+#define UBOOT_VENDOR_PARTITION_SIZE	0x00080000	/* 512K */
+#define UBOOT_RESERVED_B_PARTITION_SIZE	0x00100000	/* 1M */
+#define UBOOT_HNVRAM_PARTITION_SIZE	0x00200000	/* 2M */
+#define UBOOT_KERNEL_PARTITION_SIZE	0x01C00000	/* 28M (x2) */
+#define UBOOT_DATA_PARTITION_SIZE	0x00400000	/* 4M */
 
-#define CONFIG_ENV_OFFSET		0x0040000	/* offset of uboot environment */
+#define CONFIG_ENV_OFFSET		0x00040000	/* offset of uboot environment */
+
+#define UBOOT_PARTITION_OFFSET_KERNEL0	(UBOOT_TEXT_PARTITION_SIZE + \
+					 UBOOT_ENV_PARTITION_SIZE + \
+					 UBOOT_RESERVED_A_PARTITION_SIZE + \
+					 UBOOT_VENDOR_PARTITION_SIZE + \
+					 UBOOT_RESERVED_B_PARTITION_SIZE + \
+					 UBOOT_HNVRAM_PARTITION_SIZE)
+#define UBOOT_PARTITION_OFFSET_KERNEL1	(UBOOT_PARTITION_OFFSET_KERNEL0 + \
+					 UBOOT_KERNEL_PARTITION_SIZE)
 
 #define MTD_PARTNAME_UBOOT_BIN		"uboot"
 #define MTD_PARTNAME_UBOOT_ENV		"uboot_env"