common.c (6fae9c25134baffbeeb20031479e7ff6f6d8eec0) | common.c (4ee1f6b574765a6c97f945e6b0277e5ccac38cb5) |
---|---|
1/* 2 * arch/arm/mach-dove/common.c 3 * 4 * Core functions for Marvell Dove 88AP510 System On Chip 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 518 unchanged lines hidden (view full) --- 527void __init dove_i2c_init(void) 528{ 529 platform_device_register(&dove_i2c); 530} 531 532/***************************************************************************** 533 * Time handling 534 ****************************************************************************/ | 1/* 2 * arch/arm/mach-dove/common.c 3 * 4 * Core functions for Marvell Dove 88AP510 System On Chip 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. --- 518 unchanged lines hidden (view full) --- 527void __init dove_i2c_init(void) 528{ 529 platform_device_register(&dove_i2c); 530} 531 532/***************************************************************************** 533 * Time handling 534 ****************************************************************************/ |
535void __init dove_init_early(void) 536{ 537 orion_time_set_base(TIMER_VIRT_BASE); 538} 539 |
|
535static int get_tclk(void) 536{ 537 /* use DOVE_RESET_SAMPLE_HI/LO to detect tclk */ 538 return 166666667; 539} 540 541static void dove_timer_init(void) 542{ | 540static int get_tclk(void) 541{ 542 /* use DOVE_RESET_SAMPLE_HI/LO to detect tclk */ 543 return 166666667; 544} 545 546static void dove_timer_init(void) 547{ |
543 orion_time_init(IRQ_DOVE_BRIDGE, get_tclk()); | 548 orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR, 549 IRQ_DOVE_BRIDGE, get_tclk()); |
544} 545 546struct sys_timer dove_timer = { 547 .init = dove_timer_init, 548}; 549 550/***************************************************************************** 551 * XOR --- 291 unchanged lines hidden --- | 550} 551 552struct sys_timer dove_timer = { 553 .init = dove_timer_init, 554}; 555 556/***************************************************************************** 557 * XOR --- 291 unchanged lines hidden --- |