Create a init function so that it is easy to use command-line reading. Signed-off-by: Simon Glass <sjg@chromium.org>