diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 19:13:58 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 19:13:58 -0800 | 
| commit | 01539ba2a706ab7d35fc0667dff919ade7f87d63 (patch) | |
| tree | 5a4bd0cf78007d06690fe4ac06bbd49a5a70bc47 /arch/arm/mach-omap1/clock_data.c | |
| parent | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (diff) | |
| parent | dc69d1af9e8d9cbbabff88bb35a6782187a22229 (diff) | |
| download | olio-linux-3.10-01539ba2a706ab7d35fc0667dff919ade7f87d63.tar.xz olio-linux-3.10-01539ba2a706ab7d35fc0667dff919ade7f87d63.zip  | |
Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
* 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6: (243 commits)
  omap2: Make OMAP2PLUS select OMAP_DM_TIMER
  OMAP4: hwmod data: Fix alignment and end of line in structurefields
  OMAP4: hwmod data: Move the DMA structures
  OMAP4: hwmod data: Move the smartreflex structures
  OMAP4: hwmod data: Fix missing SIDLE_SMART_WKUP in smartreflexsysc
  arm: omap: tusb6010: add name for MUSB IRQ
  arm: omap: craneboard: Add USB EHCI support
  omap2+: Initialize serial port for dynamic remuxing for n8x0
  omap2+: Add struct omap_board_data and use it for platform level serial init
  omap2+: Allow hwmod state changes to mux pads based on the state changes
  omap2+: Add support for hwmod specific muxing of devices
  omap2+: Add omap_mux_get_by_name
  OMAP2: PM: fix compile error when !CONFIG_SUSPEND
  MAINTAINERS: OMAP: hwmod: update hwmod code, data maintainership
  OMAP4: Smartreflex framework extensions
  OMAP4: hwmod: Add inital data for smartreflex modules.
  OMAP4: PM: Program correct init voltages for scalable VDDs
  OMAP4: Adding voltage driver support
  OMAP4: Register voltage PMIC parameters with the voltage layer
  OMAP3: PM: Program correct init voltages for VDD1 and VDD2
  ...
Fix up trivial conflict in arch/arm/plat-omap/Kconfig
Diffstat (limited to 'arch/arm/mach-omap1/clock_data.c')
| -rw-r--r-- | arch/arm/mach-omap1/clock_data.c | 27 | 
1 files changed, 13 insertions, 14 deletions
diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c index af54114b8f0..92400b9eb69 100644 --- a/arch/arm/mach-omap1/clock_data.c +++ b/arch/arm/mach-omap1/clock_data.c @@ -143,7 +143,7 @@ static struct arm_idlect1_clk armper_ck = {   * activation.  [ GPIO code for 1510 ]   */  static struct clk arm_gpio_ck = { -	.name		= "arm_gpio_ck", +	.name		= "ick",  	.ops		= &clkops_generic,  	.parent		= &ck_dpll1,  	.flags		= ENABLE_ON_INIT, @@ -684,7 +684,7 @@ static struct omap_clk omap_clks[] = {  	CLK(NULL,	"ck_sossi",	&sossi_ck,	CK_16XX),  	CLK(NULL,	"arm_ck",	&arm_ck,	CK_16XX | CK_1510 | CK_310),  	CLK(NULL,	"armper_ck",	&armper_ck.clk,	CK_16XX | CK_1510 | CK_310), -	CLK(NULL,	"arm_gpio_ck",	&arm_gpio_ck,	CK_1510 | CK_310), +	CLK("omap_gpio.0", "ick",	&arm_gpio_ck,	CK_1510 | CK_310),  	CLK(NULL,	"armxor_ck",	&armxor_ck.clk,	CK_16XX | CK_1510 | CK_310 | CK_7XX),  	CLK(NULL,	"armtim_ck",	&armtim_ck.clk,	CK_16XX | CK_1510 | CK_310),  	CLK("omap_wdt",	"fck",		&armwdt_ck.clk,	CK_16XX | CK_1510 | CK_310), @@ -736,9 +736,9 @@ static struct omap_clk omap_clks[] = {  	CLK("mmci-omap.1", "ick",	&armper_ck.clk,	CK_16XX),  	/* Virtual clocks */  	CLK(NULL,	"mpu",		&virtual_ck_mpu, CK_16XX | CK_1510 | CK_310), -	CLK("i2c_omap.1", "fck",	&i2c_fck,	CK_16XX | CK_1510 | CK_310 | CK_7XX), -	CLK("i2c_omap.1", "ick",	&i2c_ick,	CK_16XX), -	CLK("i2c_omap.1", "ick",	&dummy_ck,	CK_1510 | CK_310 | CK_7XX), +	CLK("omap_i2c.1", "fck",	&i2c_fck,	CK_16XX | CK_1510 | CK_310 | CK_7XX), +	CLK("omap_i2c.1", "ick",	&i2c_ick,	CK_16XX), +	CLK("omap_i2c.1", "ick",	&dummy_ck,	CK_1510 | CK_310 | CK_7XX),  	CLK("omap1_spi100k.1", "fck",	&dummy_ck,	CK_7XX),  	CLK("omap1_spi100k.1", "ick",	&dummy_ck,	CK_7XX),  	CLK("omap1_spi100k.2", "fck",	&dummy_ck,	CK_7XX), @@ -823,12 +823,10 @@ int __init omap1_clk_init(void)  			crystal_type = info->system_clock_type;  	} -#if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) -	ck_ref.rate = 13000000; -#elif defined(CONFIG_ARCH_OMAP16XX) -	if (crystal_type == 2) +	if (cpu_is_omap7xx()) +		ck_ref.rate = 13000000; +	if (cpu_is_omap16xx() && crystal_type == 2)  		ck_ref.rate = 19200000; -#endif  	pr_info("Clocks: ARM_SYSST: 0x%04x DPLL_CTL: 0x%04x ARM_CKCTL: "  		"0x%04x\n", omap_readw(ARM_SYSST), omap_readw(DPLL_CTL), @@ -883,10 +881,11 @@ int __init omap1_clk_init(void)  	       ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10,  	       arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10); -#if defined(CONFIG_MACH_OMAP_PERSEUS2) || defined(CONFIG_MACH_OMAP_FSAMPLE) -	/* Select slicer output as OMAP input clock */ -	omap_writew(omap_readw(OMAP7XX_PCC_UPLD_CTRL) & ~0x1, OMAP7XX_PCC_UPLD_CTRL); -#endif +	if (machine_is_omap_perseus2() || machine_is_omap_fsample()) { +		/* Select slicer output as OMAP input clock */ +		omap_writew(omap_readw(OMAP7XX_PCC_UPLD_CTRL) & ~0x1, +				OMAP7XX_PCC_UPLD_CTRL); +	}  	/* Amstrad Delta wants BCLK high when inactive */  	if (machine_is_ams_delta())  |