spl: move RAM boot support in separate file