common.c (0588000eac9ba4178cebade437da3b28e8fad48f) | common.c (1bffb4a8729838f5ee27364803406416459c3252) |
---|---|
1/* 2 * arch/arm/mach-orion5x/common.c 3 * 4 * Core functions for Marvell Orion 5x SoCs 5 * 6 * Maintainer: Tzachi Perelstein <tzachi@marvell.com> 7 * 8 * This file is licensed under the terms of the GNU General Public --- 51 unchanged lines hidden (view full) --- 60} 61 62 63/***************************************************************************** 64 * CLK tree 65 ****************************************************************************/ 66static struct clk *tclk; 67 | 1/* 2 * arch/arm/mach-orion5x/common.c 3 * 4 * Core functions for Marvell Orion 5x SoCs 5 * 6 * Maintainer: Tzachi Perelstein <tzachi@marvell.com> 7 * 8 * This file is licensed under the terms of the GNU General Public --- 51 unchanged lines hidden (view full) --- 60} 61 62 63/***************************************************************************** 64 * CLK tree 65 ****************************************************************************/ 66static struct clk *tclk; 67 |
68static void __init clk_init(void) | 68void __init clk_init(void) |
69{ 70 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT, 71 orion5x_tclk); 72 73 orion_clkdev_init(tclk); 74} 75 76/***************************************************************************** --- 154 unchanged lines hidden (view full) --- 231 232 233/***************************************************************************** 234 * General 235 ****************************************************************************/ 236/* 237 * Identify device ID and rev from PCIe configuration header space '0'. 238 */ | 69{ 70 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT, 71 orion5x_tclk); 72 73 orion_clkdev_init(tclk); 74} 75 76/***************************************************************************** --- 154 unchanged lines hidden (view full) --- 231 232 233/***************************************************************************** 234 * General 235 ****************************************************************************/ 236/* 237 * Identify device ID and rev from PCIe configuration header space '0'. 238 */ |
239static void __init orion5x_id(u32 *dev, u32 *rev, char **dev_name) | 239void __init orion5x_id(u32 *dev, u32 *rev, char **dev_name) |
240{ 241 orion5x_pcie_id(dev, rev); 242 243 if (*dev == MV88F5281_DEV_ID) { 244 if (*rev == MV88F5281_REV_D2) { 245 *dev_name = "MV88F5281-D2"; 246 } else if (*rev == MV88F5281_REV_D1) { 247 *dev_name = "MV88F5281-D1"; --- 97 unchanged lines hidden --- | 240{ 241 orion5x_pcie_id(dev, rev); 242 243 if (*dev == MV88F5281_DEV_ID) { 244 if (*rev == MV88F5281_REV_D2) { 245 *dev_name = "MV88F5281-D2"; 246 } else if (*rev == MV88F5281_REV_D1) { 247 *dev_name = "MV88F5281-D1"; --- 97 unchanged lines hidden --- |