drivers: partition: support different block size
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sat, 14 Sep 2019 10:01:16 +0000 (18:01 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 18 Sep 2019 10:18:20 +0000 (18:18 +0800)
commitf8631f51392f0688c70cfd53dc66422404e00e16
tree81558c0602493f47be62eb7d498bca2278980c31
parent6129e9a643274e658a0e6f5428ad976676c7bb7a
drivers: partition: support different block size

The block size of some storage device is 4096-byte long, such as UFS. But
PARTITION_BLOCK_SIZE is defined as 512-byte long. So replace it by
PLAT_PARTITION_BLOCK_SIZE. Make it configurable in platform.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Change-Id: Iada05f7c646d0a0f2c0d3b8545540b3cb7153de3
docs/getting_started/porting-guide.rst
drivers/partition/gpt.c
drivers/partition/partition.c
include/drivers/partition/gpt.h
include/drivers/partition/partition.h