diff options
author | Andy Fleming <afleming@freescale.com> | 2007-05-08 17:27:43 -0500 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2007-07-11 18:17:58 -0500 |
commit | ccc091aac61a38cd998d575d92f7232e256d6312 (patch) | |
tree | 22459fa387824631a9e7999e8a00477df8bf670c /board/mpc8560ads | |
parent | 7507d56ccaf7aae1c474342a9a5540165cd7e9d9 (diff) | |
download | u-boot-imx-ccc091aac61a38cd998d575d92f7232e256d6312.zip u-boot-imx-ccc091aac61a38cd998d575d92f7232e256d6312.tar.gz u-boot-imx-ccc091aac61a38cd998d575d92f7232e256d6312.tar.bz2 |
Add support for CPM device tree configuration to 8560 ADS
* Adds code to modify CPM frequencies
* Cleans up the config file to #define TSEC and (for now) #undef FCC
* Adds the MII command for all 8560 ADS configurations
* Updates config file to provide convenience commands for booting
with a device tree
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/mpc8560ads')
-rw-r--r-- | board/mpc8560ads/mpc8560ads.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/board/mpc8560ads/mpc8560ads.c b/board/mpc8560ads/mpc8560ads.c index d19bad6..41acb97 100644 --- a/board/mpc8560ads/mpc8560ads.c +++ b/board/mpc8560ads/mpc8560ads.c @@ -550,8 +550,34 @@ pci_init_board(void) #if defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP) void +ft_soc_setup(void *blob, bd_t *bd) +{ + u32 *p; + int len; + ulong data; + + p = ft_get_prop(blob, "/" OF_SOC "/cpm@e0000000/brg-frequency", &len); + + if (p != NULL) + *p = cpu_to_be32(bd->bi_brgfreq); + + p = ft_get_prop(blob, + "/" OF_SOC "/cpm@e0000000/scc@91a00/current-speed", + &len); + if (p != NULL) + *p = cpu_to_be32(bd->bi_baudrate); + + p = ft_get_prop(blob, + "/" OF_SOC "/cpm@e0000000/scc@91a20/current-speed", + &len); + if (p != NULL) + *p = cpu_to_be32(bd->bi_baudrate); +} + +void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); + ft_soc_setup(blob, bd); } #endif |