aboutsummaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/speed.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-19mpc8[56]xx: Put localbus clock in sysinfo and gdTrent Piepho1-0/+19
Currently MPC85xx and MPC86xx boards just calculate the localbus frequency and print it out, but don't save it. This changes where its calculated and stored to be more consistent with the CPU, CCB, TB, and DDR frequencies and the MPC83xx localbus clock. The localbus frequency is added to sysinfo and calculated when sysinfo is set up, in cpu/mpc8[56]xx/speed.c, the same as the other frequencies are. get_clocks() copies the frequency into the global data, as the other frequencies are, into a new field that is only enabled for MPC85xx and MPC86xx. checkcpu() in cpu/mpc8[56]xx/cpu.c will print out the local bus frequency from sysinfo, like the other frequencies, instead of calculating it on the spot. Signed-off-by: Trent Piepho <tpiepho@freescale.com> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Jon Loeliger <jdl@freescale.com>
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD1-1/+1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-04-30Fix calculation of I2C clock for some 86xx chipsTimur Tabi1-1/+13
Some 86xx chips use CCB as the base clock for the I2C, and others used CCB/2. There is no pattern that can be used to determine which chips use which frequency, so the only way to determine is to look up the actual SOC designation and use the right value for that SOC. Signed-off-by: Timur Tabi <timur@freescale.com>
2008-02-1485xx, 86xx: Determine I2C clock frequencies and store in global_dataTimur Tabi1-0/+2
Update global_data to define i2c1_clk and i2c2_clk to 85xx and 86xx. Update the get_clocks() function in 85xx and 86xx to determine the I2C clock frequency and store it in gd->i2c1_clk and gd->i2c2_clk. Signed-off-by: Timur Tabi <timur@freescale.com>
2007-11-18Fix compiler warnings for PPC systems. Update CHANGELOG.Wolfgang Denk1-0/+3
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-09-15Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as globalWolfgang Denk1-1/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>
2006-08-22General indent and whitespace cleanups.Jon Loeliger1-7/+7
2006-07-31Move get_board_sys_clk to board directoryHaiying Wang1-66/+0
2006-07-28Fix 8641HPCN pollutionJohn Traill1-0/+2
2006-06-07Fix a get_board_sys_clk() use-before-def warning.Jon Loeliger1-64/+64
Signed-off-by: Jon Loeliger <jdl@jdl.com>
2006-05-31Review cleanups.Jon Loeliger1-59/+10
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2006-04-27Cleanup whitespaces and style issues.Jon Loeliger1-134/+126
Removed //-style comments. Use 80-column lines. Remove trailing whitespace. Remove dead code and debug cruft.
2006-04-26Initial support for MPC8641 HPCN board.Jon Loeliger1-0/+248