Hi Simon,
the NAND driver of the ROM configures the BCH thanks to the information found in the FCB.
From the ref manual:
As part of the NAND media initialization, the ROM driver uses safe NAND timings to
search for a Firmware Configuration Block (FCB) that contains the optimum NAND
timings, page address of Discovered Bad Block Table (DBBT) Search Area and start
page address of primary and secondary firmware.
The hardware ECC level to use is embedded inside FCB block. The FCB data structure is
protected using software ECC (SEC-DED Hamming Codes). Driver reads raw 2112 bytes
of first sector and runs through software ECC engine that determines whether FCB data is
valid or not.
So you inform the NAND driver by configuring the FCB, see table 8-2
Best regards,
Rodrigue