Mercurial > flash_v2
changeset 793:d88a207838ef
Add support for faster boards.
| author | gthomas |
|---|---|
| date | Tue, 04 Mar 2003 16:16:02 +0000 |
| parents | ad2707e54a69 |
| children | 0b204117867f |
| files | packages/hal/powerpc/viper/current/ChangeLog packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl packages/hal/powerpc/viper/current/src/viper.S |
| diffstat | 3 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/powerpc/viper/current/ChangeLog +++ b/packages/hal/powerpc/viper/current/ChangeLog @@ -1,3 +1,8 @@ +2003-03-04 Gary Thomas <gary@mlbassoc.com> + + * src/viper.S: + * cdl/hal_powerpc_viper.cdl: Support higher speed parts - up to 100MHz. + 2002-12-02 Gary Thomas <gthomas@ecoscentric.com> * include/plf_intr.h: Use MPC8xx variant RESET support.
--- a/packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl +++ b/packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl @@ -94,7 +94,7 @@ cdl_package CYGPKG_HAL_POWERPC_VIPER { cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED { display "Development board clock speed (MHz)" flavor data - legal_values { 47 51 55 59 63 } + legal_values { 47 51 55 59 63 100 } default_value 63 description " VIPER Development Boards have various system clock speeds
--- a/packages/hal/powerpc/viper/current/src/viper.S +++ b/packages/hal/powerpc/viper/current/src/viper.S @@ -279,6 +279,10 @@ 10: #define PLPRCR_PTX 0x010 // (62.7MHz/3.6864MHz)-1 #define MAMR_PTA 123 #endif +#if (CYGHWR_HAL_POWERPC_BOARD_SPEED == 100) +#define PLPRCR_PTX 0x01A // (99.53MHz/3.6864MHz)-1 +#define MAMR_PTA 194 +#endif //#define MAMR_PTA (((((((PLPRCR_PTX+1)*3686400)*625)/10000000)+31)/32)&0xFF) lwi r3,0x00802114|(MAMR_PTA<<24) stw r3,MAMR(r4) @@ -358,7 +362,11 @@ 10: // Field DFNH (bits 24-26) = 0 // Field Reserved (bits 27-31) = 0 */ +#if (CYGHWR_HAL_POWERPC_BOARD_SPEED > 63) + lwi r3,0x00420000 // Bus divide by 2 +#else lwi r3,0x00400000 +#endif stw r3,SCCR(r4) LED( 0x03 )
