OLD | NEW |
1 /* linux/arch/arm/plat-s5p/devs.c | 1 /* linux/arch/arm/plat-s5p/devs.c |
2 * | 2 * |
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd. | 3 * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
4 * http://www.samsung.com/ | 4 * http://www.samsung.com/ |
5 * | 5 * |
6 * Base S5P platform device definitions | 6 * Base S5P platform device definitions |
7 * | 7 * |
8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License version 2 as | 9 * it under the terms of the GNU General Public License version 2 as |
10 * published by the Free Software Foundation. | 10 * published by the Free Software Foundation. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 { | 141 { |
142 struct s3c_platform_mfc *set = &s3c_mfc_def_platdata; | 142 struct s3c_platform_mfc *set = &s3c_mfc_def_platdata; |
143 | 143 |
144 if (pd) { | 144 if (pd) { |
145 set->buf_phy_base[0] = pd->buf_phy_base[0]; | 145 set->buf_phy_base[0] = pd->buf_phy_base[0]; |
146 set->buf_phy_base[1] = pd->buf_phy_base[1]; | 146 set->buf_phy_base[1] = pd->buf_phy_base[1]; |
147 set->buf_phy_size[0] = pd->buf_phy_size[0]; | 147 set->buf_phy_size[0] = pd->buf_phy_size[0]; |
148 set->buf_phy_size[1] = pd->buf_phy_size[1]; | 148 set->buf_phy_size[1] = pd->buf_phy_size[1]; |
149 } | 149 } |
150 } | 150 } |
| 151 |
| 152 static struct resource s5p_tvout_resources[] = { |
| 153 [0] = { |
| 154 .start = S5P_PA_TVENC, |
| 155 .end = S5P_PA_TVENC + S5P_SZ_TVENC - 1, |
| 156 .flags = IORESOURCE_MEM, |
| 157 }, |
| 158 [1] = { |
| 159 .start = S5P_PA_VP, |
| 160 .end = S5P_PA_VP + S5P_SZ_VP - 1, |
| 161 .flags = IORESOURCE_MEM, |
| 162 }, |
| 163 [2] = { |
| 164 .start = S5P_PA_MIXER, |
| 165 .end = S5P_PA_MIXER + S5P_SZ_MIXER - 1, |
| 166 .flags = IORESOURCE_MEM, |
| 167 }, |
| 168 [3] = { |
| 169 .start = S5P_PA_HDMI, |
| 170 .end = S5P_PA_HDMI + S5P_SZ_HDMI - 1, |
| 171 .flags = IORESOURCE_MEM, |
| 172 }, |
| 173 [4] = { |
| 174 .start = S5P_I2C_HDMI_PHY, |
| 175 .end = S5P_I2C_HDMI_PHY + S5P_I2C_HDMI_SZ_PHY - 1, |
| 176 .flags = IORESOURCE_MEM, |
| 177 }, |
| 178 [5] = { |
| 179 .start = IRQ_MIXER, |
| 180 .end = IRQ_MIXER, |
| 181 .flags = IORESOURCE_IRQ, |
| 182 }, |
| 183 [6] = { |
| 184 .start = IRQ_HDMI, |
| 185 .end = IRQ_HDMI, |
| 186 .flags = IORESOURCE_IRQ, |
| 187 }, |
| 188 [7] = { |
| 189 .start = IRQ_TVENC, |
| 190 .end = IRQ_TVENC, |
| 191 .flags = IORESOURCE_IRQ, |
| 192 }, |
| 193 [8] = { |
| 194 .start = IRQ_EINT5, |
| 195 .end = IRQ_EINT5, |
| 196 .flags = IORESOURCE_IRQ, |
| 197 } |
| 198 }; |
| 199 |
| 200 static u64 tvfb_dma_mask = 0xffffffffUL; |
| 201 |
| 202 struct platform_device s5p_device_tvout = { |
| 203 .name = "s5p-tvout", |
| 204 .id = -1, |
| 205 .num_resources = ARRAY_SIZE(s5p_tvout_resources), |
| 206 .resource = s5p_tvout_resources, |
| 207 .dev = { |
| 208 .dma_mask = &tvfb_dma_mask, |
| 209 .coherent_dma_mask = 0xffffffffUL |
| 210 } |
| 211 }; |
| 212 |
| 213 static struct resource s5p_cec_resources[] = { |
| 214 [0] = { |
| 215 .start = S5P_PA_CEC, |
| 216 .end = S5P_PA_CEC + S5P_SZ_CEC - 1, |
| 217 .flags = IORESOURCE_MEM, |
| 218 }, |
| 219 [1] = { |
| 220 .start = IRQ_CEC, |
| 221 .end = IRQ_CEC, |
| 222 .flags = IORESOURCE_IRQ, |
| 223 }, |
| 224 }; |
| 225 |
| 226 struct platform_device s5p_device_cec = { |
| 227 .name = "s5p-cec", |
| 228 .id = -1, |
| 229 .num_resources = ARRAY_SIZE(s5p_cec_resources), |
| 230 .resource = s5p_cec_resources, |
| 231 }; |
| 232 |
| 233 struct platform_device s5p_device_hpd = { |
| 234 .name = "s5p-hpd", |
| 235 .id = -1, |
| 236 }; |
OLD | NEW |