summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-24 18:03:38 +0300
committerTom Rini <trini@konsulko.com>2021-08-02 20:32:14 +0300
commite6951139c0544116330b12e287fe45e30bbab11c (patch)
tree15216d11d6890cd497b6a97176c7aad4c4d63ecf /doc
parent5f4b356121fdb520e4c9bb4fe3483c1a5f93439c (diff)
downloadu-boot-e6951139c0544116330b12e287fe45e30bbab11c.tar.xz
lib: Allow using 0x when a decimal value is requested
U-Boot mostly uses hex for value input, largely because addresses are much easier to understand in hex. But in some cases a decimal value is requested, such as where the value is small or hex does not make sense in the context. In these cases it is sometimes useful to be able to provide a hex value in any case, if only to resolve any ambiguity. Add this functionality, for increased flexibility. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/usage/cmdline.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/usage/cmdline.rst b/doc/usage/cmdline.rst
index 2d5127c955..88f18c974c 100644
--- a/doc/usage/cmdline.rst
+++ b/doc/usage/cmdline.rst
@@ -85,3 +85,9 @@ useful::
=> pmic write 2 0177
=> pmic read 2
0x02: 0x00007f
+
+It is possible to use a `0x` prefix to use a hex value if that is more
+convenient::
+
+ => i2c speed 0x30000
+ Setting bus speed to 196608 Hz