toolchain: fix for the FTM mode register