diff options
author | Ying Zhang <b40530@freescale.com> | 2015-03-10 14:21:36 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-04-20 10:15:29 -0700 |
commit | e5abb92c0b5dd8bd37b0b7a0881e60d82616099f (patch) | |
tree | 2587cd0a5295e336c19e1fb5438416c718d28478 /board/freescale/t208xrdb | |
parent | 9ca0d35f24b1b1e21c609a521933fd4d6598f9ff (diff) | |
download | u-boot-imx-e5abb92c0b5dd8bd37b0b7a0881e60d82616099f.zip u-boot-imx-e5abb92c0b5dd8bd37b0b7a0881e60d82616099f.tar.gz u-boot-imx-e5abb92c0b5dd8bd37b0b7a0881e60d82616099f.tar.bz2 |
board/t208xrdb: VID support
The fuse status register provides the values from on-chip
voltage ID efuses programmed at the factory.
These values define the voltage requirements for
the chip. u-boot reads FUSESR and translates the values
into the appropriate commands to set the voltage output
value of an external voltage regulator.
Signed-off-by: Ying Zhang <b40530@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/t208xrdb')
-rw-r--r-- | board/freescale/t208xrdb/t208xrdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c index 341453b..ad393df 100644 --- a/board/freescale/t208xrdb/t208xrdb.c +++ b/board/freescale/t208xrdb/t208xrdb.c @@ -19,6 +19,7 @@ #include <fm_eth.h> #include "t208xrdb.h" #include "cpld.h" +#include "../common/vid.h" DECLARE_GLOBAL_DATA_PTR; @@ -85,6 +86,12 @@ int board_early_init_r(void) setup_portals(); #endif + /* + * Adjust core voltage according to voltage ID + * This function changes I2C mux to channel 2. + */ + if (adjust_vdd(0)) + printf("Warning: Adjusting core voltage failed.\n"); return 0; } |