summaryrefslogtreecommitdiff
path: root/drivers/power/regulator
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-08-08 17:45:18 +0200
committerSimon Glass <sjg@chromium.org>2015-08-10 07:01:28 -0600
commit8c4585881de51e8c9a8b2207bb2fab1cd83728b8 (patch)
treecfcad27fd42925a6fba4d56bf14424b495e12f4b /drivers/power/regulator
parentbd48c0617b5c7212e5bf22169e716da878842da4 (diff)
downloadu-boot-imx-8c4585881de51e8c9a8b2207bb2fab1cd83728b8.zip
u-boot-imx-8c4585881de51e8c9a8b2207bb2fab1cd83728b8.tar.gz
u-boot-imx-8c4585881de51e8c9a8b2207bb2fab1cd83728b8.tar.bz2
dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port
Currently the serial code assumes that there is always at least one serial port (and panics / crashes due to null pointer dereferences when there is none). This makes it impossible to use u-boot on boards where there is no (debug) serial port, because e.g. all uart pins are muxed to another function. This commit adds a CONFIG_REQUIRE_SERIAL_CONSOLE Kconfig option, which defaults to y (preserving existing behavior), which can be set to n on such boards to make them work. This commit only implements this for CONFIG_DM_SERIAL=y configs, as allowing running without a serial port for CONFIG_DM_SERIAL=n configs is non trivial, and is not necessary at this moment. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/regulator')
0 files changed, 0 insertions, 0 deletions