powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function
authorWolfgang Denk <wd@denx.de>
Wed, 17 Jun 2009 06:30:22 +0000 (00:30 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 17 Jun 2009 06:30:22 +0000 (00:30 -0600)
commit87c441e54dfcf9f45593ecaf68e7e18ea53d5e13
tree6a986caab77412a90ffe8c5d8788bc1216b10ed8
parentc155ee10c212254e9cdfe7b3eab4e8c13990c231
powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function

So far, MPC512x used mpc512x_find_ips_freq() to get the bus frequency,
while MPC52xx used mpc52xx_find_ipb_freq().  Despite the different
clock names (IPS vs. IPB) the code was identical.

Use common code for both processor families.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14 files changed:
arch/powerpc/include/asm/mpc52xx.h
arch/powerpc/include/asm/mpc5xxx.h [moved from arch/powerpc/include/asm/mpc512x.h with 65% similarity]
arch/powerpc/platforms/512x/clock.c
arch/powerpc/platforms/512x/mpc512x.h
arch/powerpc/platforms/512x/mpc512x_shared.c
arch/powerpc/platforms/52xx/mpc52xx_common.c
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/mpc5xxx_clocks.c [new file with mode: 0644]
drivers/ata/pata_mpc52xx.c
drivers/i2c/busses/i2c-mpc.c
drivers/net/fec_mpc52xx.c
drivers/net/fec_mpc52xx_phy.c
drivers/serial/mpc52xx_uart.c
drivers/watchdog/mpc5200_wdt.c