diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 02:38:26 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 02:38:26 -0400 |
commit | b1e50ebcf24668e57f058deb48b0704b5391ed0f (patch) | |
tree | 17e1b69b249d0738317b732186340c9dd053f1a1 /arch/arm/mach-ep93xx/include | |
parent | 0c2a2ae32793e3500a15a449612485f5d17dd431 (diff) | |
parent | 7e125f7b9cbfce4101191b8076d606c517a73066 (diff) |
Merge remote branch 'origin' into secretlab/next-spi
Diffstat (limited to 'arch/arm/mach-ep93xx/include')
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/platform.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ts72xx.h | 19 |
3 files changed, 13 insertions, 19 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 93e2ecc79ce..b1e096f0c2d 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -106,6 +106,7 @@ | |||
106 | 106 | ||
107 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) | 107 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) |
108 | 108 | ||
109 | #define EP93XX_SPI_PHYS_BASE EP93XX_APB_PHYS(0x000a0000) | ||
109 | #define EP93XX_SPI_BASE EP93XX_APB_IOMEM(0x000a0000) | 110 | #define EP93XX_SPI_BASE EP93XX_APB_IOMEM(0x000a0000) |
110 | 111 | ||
111 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) | 112 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) |
diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h index c6dc14dbca1..9a4413dd44b 100644 --- a/arch/arm/mach-ep93xx/include/mach/platform.h +++ b/arch/arm/mach-ep93xx/include/mach/platform.h | |||
@@ -6,9 +6,11 @@ | |||
6 | 6 | ||
7 | struct i2c_gpio_platform_data; | 7 | struct i2c_gpio_platform_data; |
8 | struct i2c_board_info; | 8 | struct i2c_board_info; |
9 | struct spi_board_info; | ||
9 | struct platform_device; | 10 | struct platform_device; |
10 | struct ep93xxfb_mach_info; | 11 | struct ep93xxfb_mach_info; |
11 | struct ep93xx_keypad_platform_data; | 12 | struct ep93xx_keypad_platform_data; |
13 | struct ep93xx_spi_info; | ||
12 | 14 | ||
13 | struct ep93xx_eth_data | 15 | struct ep93xx_eth_data |
14 | { | 16 | { |
@@ -33,9 +35,19 @@ static inline void ep93xx_devcfg_clear_bits(unsigned int bits) | |||
33 | ep93xx_devcfg_set_clear(0x00, bits); | 35 | ep93xx_devcfg_set_clear(0x00, bits); |
34 | } | 36 | } |
35 | 37 | ||
38 | #define EP93XX_CHIP_REV_D0 3 | ||
39 | #define EP93XX_CHIP_REV_D1 4 | ||
40 | #define EP93XX_CHIP_REV_E0 5 | ||
41 | #define EP93XX_CHIP_REV_E1 6 | ||
42 | #define EP93XX_CHIP_REV_E2 7 | ||
43 | |||
44 | unsigned int ep93xx_chip_revision(void); | ||
45 | |||
36 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); | 46 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); |
37 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, | 47 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
38 | struct i2c_board_info *devices, int num); | 48 | struct i2c_board_info *devices, int num); |
49 | void ep93xx_register_spi(struct ep93xx_spi_info *info, | ||
50 | struct spi_board_info *devices, int num); | ||
39 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); | 51 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); |
40 | void ep93xx_register_pwm(int pwm0, int pwm1); | 52 | void ep93xx_register_pwm(int pwm0, int pwm1); |
41 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); | 53 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); |
diff --git a/arch/arm/mach-ep93xx/include/mach/ts72xx.h b/arch/arm/mach-ep93xx/include/mach/ts72xx.h index 93107d88ff3..0eabec62cd9 100644 --- a/arch/arm/mach-ep93xx/include/mach/ts72xx.h +++ b/arch/arm/mach-ep93xx/include/mach/ts72xx.h | |||
@@ -9,9 +9,6 @@ | |||
9 | * febff000 22000000 4K model number register | 9 | * febff000 22000000 4K model number register |
10 | * febfe000 22400000 4K options register | 10 | * febfe000 22400000 4K options register |
11 | * febfd000 22800000 4K options register #2 | 11 | * febfd000 22800000 4K options register #2 |
12 | * febfc000 [67]0000000 4K NAND data register | ||
13 | * febfb000 [67]0400000 4K NAND control register | ||
14 | * febfa000 [67]0800000 4K NAND busy register | ||
15 | * febf9000 10800000 4K TS-5620 RTC index register | 12 | * febf9000 10800000 4K TS-5620 RTC index register |
16 | * febf8000 11700000 4K TS-5620 RTC data register | 13 | * febf8000 11700000 4K TS-5620 RTC data register |
17 | */ | 14 | */ |
@@ -41,22 +38,6 @@ | |||
41 | #define TS72XX_OPTIONS2_TS9420_BOOT 0x02 | 38 | #define TS72XX_OPTIONS2_TS9420_BOOT 0x02 |
42 | 39 | ||
43 | 40 | ||
44 | #define TS72XX_NAND1_DATA_PHYS_BASE 0x60000000 | ||
45 | #define TS72XX_NAND2_DATA_PHYS_BASE 0x70000000 | ||
46 | #define TS72XX_NAND_DATA_VIRT_BASE 0xfebfc000 | ||
47 | #define TS72XX_NAND_DATA_SIZE 0x00001000 | ||
48 | |||
49 | #define TS72XX_NAND1_CONTROL_PHYS_BASE 0x60400000 | ||
50 | #define TS72XX_NAND2_CONTROL_PHYS_BASE 0x70400000 | ||
51 | #define TS72XX_NAND_CONTROL_VIRT_BASE 0xfebfb000 | ||
52 | #define TS72XX_NAND_CONTROL_SIZE 0x00001000 | ||
53 | |||
54 | #define TS72XX_NAND1_BUSY_PHYS_BASE 0x60800000 | ||
55 | #define TS72XX_NAND2_BUSY_PHYS_BASE 0x70800000 | ||
56 | #define TS72XX_NAND_BUSY_VIRT_BASE 0xfebfa000 | ||
57 | #define TS72XX_NAND_BUSY_SIZE 0x00001000 | ||
58 | |||
59 | |||
60 | #define TS72XX_RTC_INDEX_VIRT_BASE 0xfebf9000 | 41 | #define TS72XX_RTC_INDEX_VIRT_BASE 0xfebf9000 |
61 | #define TS72XX_RTC_INDEX_PHYS_BASE 0x10800000 | 42 | #define TS72XX_RTC_INDEX_PHYS_BASE 0x10800000 |
62 | #define TS72XX_RTC_INDEX_SIZE 0x00001000 | 43 | #define TS72XX_RTC_INDEX_SIZE 0x00001000 |