commit | a4c2e13b125653c5091cb1048309c5a773bb3a78 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Nov 10 18:00:20 2014 -0700 |
committer | Simon Glass <sjg@chromium.org> | Fri Nov 21 07:24:11 2014 +0100 |
tree | 6c122952681674360e6360b0d6d923c6741824e3 | |
parent | eda0c3fb495a38fd2da50e2cda8c031acf8af70f [diff] |
dm: serial: Move current serial port pointer to global_data In general we can't store things in the data section until we have inited SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move the pointer to global_data so that it will work on all platforms. Without this fix the serial port will not work prior to relocation with driver model on some platforms. Signed-off-by: Simon Glass <sjg@chromium.org>