Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b550488 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Deforest the function pointer jungle in the time code.



Hard to follow who is pointing what to where and why so it's simply getting
in the way of the time code renovation.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f5ff0a28
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ extern void au1000_halt(void);
extern void au1000_power_off(void);
extern void au1x_time_init(void);
extern void au1x_timer_setup(struct irqaction *irq);
extern void au1xxx_time_init(void);
extern void set_cpuspec(void);

void __init plat_mem_setup(void)
@@ -112,7 +111,6 @@ void __init plat_mem_setup(void)
	_machine_restart = au1000_restart;
	_machine_halt = au1000_halt;
	pm_power_off = au1000_power_off;
	board_time_init = au1xxx_time_init;

	/* IO/MEM resources. */
	set_io_port_base(0);
+0 −4
Original line number Diff line number Diff line
@@ -329,7 +329,3 @@ void __init plat_timer_setup(struct irqaction *irq)

#endif
}

void __init au1xxx_time_init(void)
{
}
+1 −4
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ DEFINE_SPINLOCK(titan_lock);
int titan_irqflags;


static void excite_timer_init(void)
void __init plat_time_init(void)
{
	const u32 modebit5 = ocd_readl(0x00e4);
	unsigned int
@@ -261,9 +261,6 @@ void __init plat_mem_setup(void)
	/* Announce RAM to system */
	add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);

	/* Set up timer initialization hooks */
	board_time_init = excite_timer_init;

	/* Set up the peripheral address map */
	*(boot_ocd_base + (LKB9 / sizeof (u32))) = 0;
	*(boot_ocd_base + (LKB10 / sizeof (u32))) = 0;
+0 −1
Original line number Diff line number Diff line
@@ -119,6 +119,5 @@ void __init plat_mem_setup(void)
	_machine_restart = bcm47xx_machine_restart;
	_machine_halt = bcm47xx_machine_halt;
	pm_power_off = bcm47xx_machine_halt;
	board_time_init = bcm47xx_time_init;
}
+1 −2
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@
#include <asm/time.h>
#include <bcm47xx.h>

void __init
bcm47xx_time_init(void)
void __init plat_time_init(void)
{
	unsigned long hz;

Loading