rockchip: parameter: mtdpart address uses cmdline directly

1. rename RK_BLK_OFFSET to RK_PARAM_OFFSET;
2. parameter.txt should promise partition address is physical.

Change-Id: Ibadc0589c14f6e48475e4db8526535b8a986d944
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2017-11-09 11:54:05 +08:00
parent 4853871c4f
commit 55aee569aa
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ static int rockchip_param_parse(char *param)
printf("out of memory\n"); printf("out of memory\n");
break; break;
} }
part->from = from + RK_BLK_OFFSET; part->from = from;
part->size = size; part->size = size;
strncpy(part->name, next, len); strncpy(part->name, next, len);
part->name[len] = '\0'; part->name[len] = '\0';
@ -84,7 +84,7 @@ static int rockchip_init_param(void)
return -ENOMEM; return -ENOMEM;
} }
blkdev_read(param, RK_BLK_OFFSET, MAX_PARAM_SIZE >> 9); blkdev_read(param, RK_PARAM_OFFSET, MAX_PARAM_SIZE >> 9);
return rockchip_param_parse(param->params); return rockchip_param_parse(param->params);

View File

@ -9,7 +9,7 @@
#include <linux/list.h> #include <linux/list.h>
#define RK_BLK_OFFSET 0x2000 #define RK_PARAM_OFFSET 0x2000
#define PART_NAME_SIZE 32 #define PART_NAME_SIZE 32
#define RK_BLK_SIZE (1 << 9) #define RK_BLK_SIZE (1 << 9)