[brcm63xx] fixes for the bcm6338 clocks, thanks Maxime

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16640 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2009-07-01 13:49:20 +00:00
parent 1741d5b442
commit 7bba3b72d7
1 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,9 @@ static void enet_misc_set(struct clk *clk, int enable)
{ {
u32 mask; u32 mask;
if (BCMCPU_IS_6348()) if (BCMCPU_IS_6338())
mask = CKCTL_6338_ENET_EN;
else if (BCMCPU_IS_6348())
mask = CKCTL_6348_ENET_EN; mask = CKCTL_6348_ENET_EN;
else else
/* BCMCPU_IS_6358 */ /* BCMCPU_IS_6358 */
@ -163,7 +165,9 @@ static void spi_set(struct clk *clk, int enable)
{ {
u32 mask; u32 mask;
if (BCMCPU_IS_6348()) if (BCMCPU_IS_6338())
mask = CKCTL_6338_SPI_EN;
else if (BCMCPU_IS_6348())
mask = CKCTL_6348_SPI_EN; mask = CKCTL_6348_SPI_EN;
else else
/* BCMCPU_IS_6358 */ /* BCMCPU_IS_6358 */