|
@@ -35,7 +35,6 @@
|
|
#include <asm/time.h>
|
|
#include <asm/time.h>
|
|
|
|
|
|
#include <au1000.h>
|
|
#include <au1000.h>
|
|
-#include <prom.h>
|
|
|
|
|
|
|
|
extern void __init board_setup(void);
|
|
extern void __init board_setup(void);
|
|
extern void au1000_restart(char *);
|
|
extern void au1000_restart(char *);
|
|
@@ -46,12 +45,15 @@ extern void set_cpuspec(void);
|
|
void __init plat_mem_setup(void)
|
|
void __init plat_mem_setup(void)
|
|
{
|
|
{
|
|
struct cpu_spec *sp;
|
|
struct cpu_spec *sp;
|
|
- char *argptr;
|
|
|
|
unsigned long prid, cpufreq, bclk;
|
|
unsigned long prid, cpufreq, bclk;
|
|
|
|
|
|
set_cpuspec();
|
|
set_cpuspec();
|
|
sp = cur_cpu_spec[0];
|
|
sp = cur_cpu_spec[0];
|
|
|
|
|
|
|
|
+ _machine_restart = au1000_restart;
|
|
|
|
+ _machine_halt = au1000_halt;
|
|
|
|
+ pm_power_off = au1000_power_off;
|
|
|
|
+
|
|
board_setup(); /* board specific setup */
|
|
board_setup(); /* board specific setup */
|
|
|
|
|
|
prid = read_c0_prid();
|
|
prid = read_c0_prid();
|
|
@@ -79,34 +81,6 @@ void __init plat_mem_setup(void)
|
|
/* Clear to obtain best system bus performance */
|
|
/* Clear to obtain best system bus performance */
|
|
clear_c0_config(1 << 19); /* Clear Config[OD] */
|
|
clear_c0_config(1 << 19); /* Clear Config[OD] */
|
|
|
|
|
|
- argptr = prom_getcmdline();
|
|
|
|
-
|
|
|
|
-#ifdef CONFIG_SERIAL_8250_CONSOLE
|
|
|
|
- argptr = strstr(argptr, "console=");
|
|
|
|
- if (argptr == NULL) {
|
|
|
|
- argptr = prom_getcmdline();
|
|
|
|
- strcat(argptr, " console=ttyS0,115200");
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#ifdef CONFIG_FB_AU1100
|
|
|
|
- argptr = strstr(argptr, "video=");
|
|
|
|
- if (argptr == NULL) {
|
|
|
|
- argptr = prom_getcmdline();
|
|
|
|
- /* default panel */
|
|
|
|
- /*strcat(argptr, " video=au1100fb:panel:Sharp_320x240_16");*/
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#if defined(CONFIG_SOUND_AU1X00) && !defined(CONFIG_SOC_AU1000)
|
|
|
|
- /* au1000 does not support vra, au1500 and au1100 do */
|
|
|
|
- strcat(argptr, " au1000_audio=vra");
|
|
|
|
- argptr = prom_getcmdline();
|
|
|
|
-#endif
|
|
|
|
- _machine_restart = au1000_restart;
|
|
|
|
- _machine_halt = au1000_halt;
|
|
|
|
- pm_power_off = au1000_power_off;
|
|
|
|
-
|
|
|
|
/* IO/MEM resources. */
|
|
/* IO/MEM resources. */
|
|
set_io_port_base(0);
|
|
set_io_port_base(0);
|
|
ioport_resource.start = IOPORT_RESOURCE_START;
|
|
ioport_resource.start = IOPORT_RESOURCE_START;
|