blob: a87f26121dbabfb20428162f1363df49ac67db14 [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001if ARCH_SHMOBILE
2
3comment "SH-Mobile System Type"
4
5config ARCH_SH7367
6 bool "SH-Mobile G3 (SH7367)"
7 select CPU_V6
8 select HAVE_CLK
9 select COMMON_CLKDEV
Magnus Damm4f0836b2010-05-20 14:49:28 +000010 select SH_CLK_CPG
Magnus Dammc793c1b2010-02-05 11:14:49 +000011 select GENERIC_CLOCKEVENTS
12
Magnus Dammf2aaf662010-02-05 11:15:07 +000013config ARCH_SH7377
14 bool "SH-Mobile G4 (SH7377)"
15 select CPU_V7
16 select HAVE_CLK
17 select COMMON_CLKDEV
Magnus Damm0163acf2010-05-21 05:19:34 +000018 select SH_CLK_CPG
Magnus Dammf2aaf662010-02-05 11:15:07 +000019 select GENERIC_CLOCKEVENTS
20
Magnus Damm2b7eda62010-02-05 11:14:58 +000021config ARCH_SH7372
22 bool "SH-Mobile AP4 (SH7372)"
23 select CPU_V7
24 select HAVE_CLK
25 select COMMON_CLKDEV
Magnus Damm495b3ce2010-05-12 14:21:34 +000026 select SH_CLK_CPG
Magnus Damm2b7eda62010-02-05 11:14:58 +000027 select GENERIC_CLOCKEVENTS
28
Magnus Dammc793c1b2010-02-05 11:14:49 +000029comment "SH-Mobile Board Type"
30
31config MACH_G3EVM
32 bool "G3EVM board"
33 depends on ARCH_SH7367
Magnus Damm7fdda672010-02-10 20:10:55 +090034 select ARCH_REQUIRE_GPIOLIB
Magnus Dammc793c1b2010-02-05 11:14:49 +000035
Magnus Dammf2aaf662010-02-05 11:15:07 +000036config MACH_G4EVM
37 bool "G4EVM board"
38 depends on ARCH_SH7377
NISHIMOTO Hiroki276b4f62010-02-12 08:10:06 +000039 select ARCH_REQUIRE_GPIOLIB
Magnus Dammf2aaf662010-02-05 11:15:07 +000040
Magnus Damm2b7eda62010-02-05 11:14:58 +000041config MACH_AP4EVB
42 bool "AP4EVB board"
43 depends on ARCH_SH7372
Kuninori Morimotob789b3f2010-02-17 09:39:10 +000044 select ARCH_REQUIRE_GPIOLIB
Guennadi Liakhovetski8eda2f22010-05-23 14:04:03 +000045 select SH_LCD_MIPI_DSI
Magnus Damm2b7eda62010-02-05 11:14:58 +000046
Magnus Dammc793c1b2010-02-05 11:14:49 +000047comment "SH-Mobile System Configuration"
48
49menu "Memory configuration"
50
51config MEMORY_START
52 hex "Physical memory start address"
53 default "0x50000000" if MACH_G3EVM
Magnus Dammf2aaf662010-02-05 11:15:07 +000054 default "0x40000000" if MACH_G4EVM
Magnus Damm2b7eda62010-02-05 11:14:58 +000055 default "0x40000000" if MACH_AP4EVB
Magnus Dammc793c1b2010-02-05 11:14:49 +000056 default "0x00000000"
57 ---help---
58 Tweak this only when porting to a new machine which does not
59 already have a defconfig. Changing it from the known correct
60 value on any of the known systems will only lead to disaster.
61
62config MEMORY_SIZE
63 hex "Physical memory size"
64 default "0x08000000" if MACH_G3EVM
Magnus Dammf2aaf662010-02-05 11:15:07 +000065 default "0x08000000" if MACH_G4EVM
Magnus Damm2b7eda62010-02-05 11:14:58 +000066 default "0x10000000" if MACH_AP4EVB
Magnus Dammc793c1b2010-02-05 11:14:49 +000067 default "0x04000000"
68 help
69 This sets the default memory size assumed by your kernel. It can
70 be overridden as normal by the 'mem=' argument on the kernel command
71 line.
72
73endmenu
74
75menu "Timer and clock configuration"
76
Magnus Damm5da3e712010-07-29 14:03:04 +010077config SHMOBILE_TIMER_HZ
78 int "Kernel HZ (jiffies per second)"
79 range 32 1024
80 default "128"
81 help
82 Allows the configuration of the timer frequency. It is customary
83 to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
84 case of low timer frequencies other values may be more suitable.
85 SH-Mobile systems using a 32768 Hz RCLK for clock events may want
86 to select a HZ value such as 128 that can evenly divide RCLK.
87 A HZ value that does not divide evenly may cause timer drift.
88
Magnus Dammc793c1b2010-02-05 11:14:49 +000089config SH_TIMER_CMT
90 bool "CMT timer driver"
91 default y
92 help
93 This enables build of the CMT timer driver.
94
Magnus Damm645e5222010-05-12 09:03:19 +000095config SH_TIMER_TMU
96 bool "TMU timer driver"
97 default y
98 help
99 This enables build of the TMU timer driver.
100
Magnus Dammc793c1b2010-02-05 11:14:49 +0000101endmenu
102
Magnus Damme47bb512010-05-12 14:21:24 +0000103config SH_CLK_CPG
104 bool
105
Magnus Dammc793c1b2010-02-05 11:14:49 +0000106endif