aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/da830.c
diff options
context:
space:
mode:
authorRajashekhara, Sudhakar <sudhakar.raj@ti.com>2009-07-10 02:08:31 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 03:57:02 -0400
commitbea238f65c81742a03662e4664d88a9b4de5ea83 (patch)
treeb03cb518619056807b7755d6fc79fc387ef2e3f2 /arch/arm/mach-davinci/da830.c
parent1c92a554fcad141f8c73eecdb1cc5ac0527a5c15 (diff)
davinci: Move the da830/omap-l137 #defines to header file
With the introduction of TI da850/omap-l138, some of the macros defined for da830/omap-l137 will be needed in da850 source file. So, move the common macros to da8xx.h header file. Also, modify the macro names from DA830_... to DA8XX_. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/da830.c')
-rw-r--r--arch/arm/mach-davinci/da830.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c
index ab4242869b66..999f69c9372b 100644
--- a/arch/arm/mach-davinci/da830.c
+++ b/arch/arm/mach-davinci/da830.c
@@ -27,14 +27,6 @@
27#include "clock.h" 27#include "clock.h"
28#include "mux.h" 28#include "mux.h"
29 29
30#define DA830_PSC0_BASE 0x01c10000
31#define DA830_PLL0_BASE 0x01c11000
32#define DA830_JTAG_ID_REG 0x01c14018
33#define DA830_TIMER64P0_BASE 0x01c20000
34#define DA830_TIMER64P1_BASE 0x01c21000
35#define DA830_GPIO_BASE 0x01e26000
36#define DA830_PSC1_BASE 0x01e27000
37
38/* Offsets of the 8 compare registers on the da830 */ 30/* Offsets of the 8 compare registers on the da830 */
39#define DA830_CMP12_0 0x60 31#define DA830_CMP12_0 0x60
40#define DA830_CMP12_1 0x64 32#define DA830_CMP12_1 0x64
@@ -49,7 +41,7 @@
49 41
50static struct pll_data pll0_data = { 42static struct pll_data pll0_data = {
51 .num = 1, 43 .num = 1,
52 .phys_base = DA830_PLL0_BASE, 44 .phys_base = DA8XX_PLL0_BASE,
53 .flags = PLL_HAS_PREDIV | PLL_HAS_POSTDIV, 45 .flags = PLL_HAS_PREDIV | PLL_HAS_POSTDIV,
54}; 46};
55 47
@@ -1174,8 +1166,8 @@ static struct map_desc da830_io_desc[] = {
1174}; 1166};
1175 1167
1176static void __iomem *da830_psc_bases[] = { 1168static void __iomem *da830_psc_bases[] = {
1177 IO_ADDRESS(DA830_PSC0_BASE), 1169 IO_ADDRESS(DA8XX_PSC0_BASE),
1178 IO_ADDRESS(DA830_PSC1_BASE), 1170 IO_ADDRESS(DA8XX_PSC1_BASE),
1179}; 1171};
1180 1172
1181/* Contents of JTAG ID register used to identify exact cpu type */ 1173/* Contents of JTAG ID register used to identify exact cpu type */
@@ -1191,14 +1183,14 @@ static struct davinci_id da830_ids[] = {
1191 1183
1192static struct davinci_timer_instance da830_timer_instance[2] = { 1184static struct davinci_timer_instance da830_timer_instance[2] = {
1193 { 1185 {
1194 .base = IO_ADDRESS(DA830_TIMER64P0_BASE), 1186 .base = IO_ADDRESS(DA8XX_TIMER64P0_BASE),
1195 .bottom_irq = IRQ_DA8XX_TINT12_0, 1187 .bottom_irq = IRQ_DA8XX_TINT12_0,
1196 .top_irq = IRQ_DA8XX_TINT34_0, 1188 .top_irq = IRQ_DA8XX_TINT34_0,
1197 .cmp_off = DA830_CMP12_0, 1189 .cmp_off = DA830_CMP12_0,
1198 .cmp_irq = IRQ_DA830_T12CMPINT0_0, 1190 .cmp_irq = IRQ_DA830_T12CMPINT0_0,
1199 }, 1191 },
1200 { 1192 {
1201 .base = IO_ADDRESS(DA830_TIMER64P1_BASE), 1193 .base = IO_ADDRESS(DA8XX_TIMER64P1_BASE),
1202 .bottom_irq = IRQ_DA8XX_TINT12_1, 1194 .bottom_irq = IRQ_DA8XX_TINT12_1,
1203 .top_irq = IRQ_DA8XX_TINT34_1, 1195 .top_irq = IRQ_DA8XX_TINT34_1,
1204 .cmp_off = DA830_CMP12_0, 1196 .cmp_off = DA830_CMP12_0,
@@ -1220,7 +1212,7 @@ static struct davinci_timer_info da830_timer_info = {
1220static struct davinci_soc_info davinci_soc_info_da830 = { 1212static struct davinci_soc_info davinci_soc_info_da830 = {
1221 .io_desc = da830_io_desc, 1213 .io_desc = da830_io_desc,
1222 .io_desc_num = ARRAY_SIZE(da830_io_desc), 1214 .io_desc_num = ARRAY_SIZE(da830_io_desc),
1223 .jtag_id_base = IO_ADDRESS(DA830_JTAG_ID_REG), 1215 .jtag_id_base = IO_ADDRESS(DA8XX_JTAG_ID_REG),
1224 .ids = da830_ids, 1216 .ids = da830_ids,
1225 .ids_num = ARRAY_SIZE(da830_ids), 1217 .ids_num = ARRAY_SIZE(da830_ids),
1226 .cpu_clks = da830_clks, 1218 .cpu_clks = da830_clks,
@@ -1234,7 +1226,7 @@ static struct davinci_soc_info davinci_soc_info_da830 = {
1234 .intc_irq_prios = da830_default_priorities, 1226 .intc_irq_prios = da830_default_priorities,
1235 .intc_irq_num = DA830_N_CP_INTC_IRQ, 1227 .intc_irq_num = DA830_N_CP_INTC_IRQ,
1236 .timer_info = &da830_timer_info, 1228 .timer_info = &da830_timer_info,
1237 .gpio_base = IO_ADDRESS(DA830_GPIO_BASE), 1229 .gpio_base = IO_ADDRESS(DA8XX_GPIO_BASE),
1238 .gpio_num = 128, 1230 .gpio_num = 128,
1239 .gpio_irq = IRQ_DA8XX_GPIO0, 1231 .gpio_irq = IRQ_DA8XX_GPIO0,
1240 .serial_dev = &da8xx_serial_device, 1232 .serial_dev = &da8xx_serial_device,