Revert "board-m7: remove unneeded memory allocations"

This reverts commit 44e245ac0dc58b4a1db7f804210efe7be23abce5.