Apparatus and method for setting a memory interface