This source file includes following definitions.
- plat_mem_setup
1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/init.h>
13 #include <linux/interrupt.h>
14 #include <linux/ioport.h>
15 #include <linux/io.h>
16 #include <linux/pci.h>
17 #include <asm/reboot.h>
18 #include <pnx833x.h>
19 #include <gpio.h>
20
21 extern void pnx833x_board_setup(void);
22 extern void pnx833x_machine_restart(char *);
23 extern void pnx833x_machine_halt(void);
24 extern void pnx833x_machine_power_off(void);
25
26 int __init plat_mem_setup(void)
27 {
28
29 #if defined(CONFIG_SOC_PNX8335)
30 PNX8335_WRITEFIELD(0x17, CLOCK_PLL_CPU_CTL, FREQ);
31 #endif
32 pnx833x_gpio_init();
33
34 pnx833x_board_setup();
35
36 _machine_restart = pnx833x_machine_restart;
37 _machine_halt = pnx833x_machine_halt;
38 pm_power_off = pnx833x_machine_power_off;
39
40
41 set_io_port_base(KSEG1);
42 ioport_resource.start = 0;
43 ioport_resource.end = ~0;
44 iomem_resource.start = 0;
45 iomem_resource.end = ~0;
46
47 return 0;
48 }