Different boards feature different QSPI and HyperFlash chips. there might be differences in the structure of registers (e.g. status register) and of course in sector and block sizes.
These information should be accumulated in a single file which enables a group of defines based in a selected chip type. The chip type should be selected as a define in mpconfigboard.mk.
This header file should be in turn be included in the qspi/hyperflash flash config/flexspi config files.