Commit 67249d8f authored by Vladimir Ananiev's avatar Vladimir Ananiev Committed by Tony Lindgren

ARM: OMAP: omap1501->15xx conversions needed for sx1, non-core

Convert 1501->15xx in drivers omap code, so that sx1 can work.
Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 04214a4c
...@@ -227,7 +227,7 @@ static int ohci_omap_init(struct usb_hcd *hcd) ...@@ -227,7 +227,7 @@ static int ohci_omap_init(struct usb_hcd *hcd)
omap_ohci_clock_power(1); omap_ohci_clock_power(1);
if (cpu_is_omap1510()) { if (cpu_is_omap15xx()) {
omap_1510_local_bus_power(1); omap_1510_local_bus_power(1);
omap_1510_local_bus_init(); omap_1510_local_bus_init();
} }
...@@ -315,7 +315,7 @@ static int usb_hcd_omap_probe (const struct hc_driver *driver, ...@@ -315,7 +315,7 @@ static int usb_hcd_omap_probe (const struct hc_driver *driver,
if (IS_ERR(usb_host_ck)) if (IS_ERR(usb_host_ck))
return PTR_ERR(usb_host_ck); return PTR_ERR(usb_host_ck);
if (!cpu_is_omap1510()) if (!cpu_is_omap15xx())
usb_dc_ck = clk_get(0, "usb_dc_ck"); usb_dc_ck = clk_get(0, "usb_dc_ck");
else else
usb_dc_ck = clk_get(0, "lb_ck"); usb_dc_ck = clk_get(0, "lb_ck");
......
...@@ -459,7 +459,7 @@ static int set_fb_var(struct fb_info *fbi, ...@@ -459,7 +459,7 @@ static int set_fb_var(struct fb_info *fbi,
xres_max = panel->x_res; xres_max = panel->x_res;
yres_min = OMAPFB_PLANE_YRES_MIN; yres_min = OMAPFB_PLANE_YRES_MIN;
yres_max = panel->y_res; yres_max = panel->y_res;
if (cpu_is_omap1510()) { if (cpu_is_omap15xx()) {
var->xres = panel->x_res; var->xres = panel->x_res;
var->yres = panel->y_res; var->yres = panel->y_res;
} }
...@@ -470,7 +470,7 @@ static int set_fb_var(struct fb_info *fbi, ...@@ -470,7 +470,7 @@ static int set_fb_var(struct fb_info *fbi,
xres_max = panel->y_res; xres_max = panel->y_res;
yres_min = OMAPFB_PLANE_XRES_MIN; yres_min = OMAPFB_PLANE_XRES_MIN;
yres_max = panel->x_res; yres_max = panel->x_res;
if (cpu_is_omap1510()) { if (cpu_is_omap15xx()) {
var->xres = panel->y_res; var->xres = panel->y_res;
var->yres = panel->x_res; var->yres = panel->x_res;
} }
...@@ -552,7 +552,7 @@ static struct fb_var_screeninfo new_var; ...@@ -552,7 +552,7 @@ static struct fb_var_screeninfo new_var;
/* Set rotation (0, 90, 180, 270 degree), and switch to the new mode. */ /* Set rotation (0, 90, 180, 270 degree), and switch to the new mode. */
static void omapfb_rotate(struct fb_info *fbi, int rotate) static void omapfb_rotate(struct fb_info *fbi, int rotate)
{ {
if (cpu_is_omap1510() && rotate != fbi->var.rotate) { if (cpu_is_omap15xx() && rotate != fbi->var.rotate) {
memcpy(&new_var, &fbi->var, sizeof(new_var)); memcpy(&new_var, &fbi->var, sizeof(new_var));
new_var.rotate = rotate; new_var.rotate = rotate;
if (set_fb_var(fbi, &new_var) == 0 && if (set_fb_var(fbi, &new_var) == 0 &&
...@@ -594,7 +594,7 @@ static int omapfb_mirror(struct fb_info *fbi, int mirror) ...@@ -594,7 +594,7 @@ static int omapfb_mirror(struct fb_info *fbi, int mirror)
int r = 0; int r = 0;
mirror = mirror ? 1 : 0; mirror = mirror ? 1 : 0;
if (cpu_is_omap1510()) if (cpu_is_omap15xx())
r = -EINVAL; r = -EINVAL;
else if (mirror != plane->info.mirror) { else if (mirror != plane->info.mirror) {
plane->info.mirror = mirror; plane->info.mirror = mirror;
......
...@@ -312,7 +312,7 @@ omap_request_sound_dma(int device_id, const char *device_name, void *data, ...@@ -312,7 +312,7 @@ omap_request_sound_dma(int device_id, const char *device_name, void *data,
} }
/* Chain the channels together */ /* Chain the channels together */
if (!cpu_is_omap1510()) if (!cpu_is_omap15xx())
omap_sound_dma_link_lch(data); omap_sound_dma_link_lch(data);
spin_unlock(&dma_list_lock); spin_unlock(&dma_list_lock);
...@@ -362,7 +362,7 @@ int omap_free_sound_dma(void *data, int **channels) ...@@ -362,7 +362,7 @@ int omap_free_sound_dma(void *data, int **channels)
} }
chan = (*channels); chan = (*channels);
if (!cpu_is_omap1510()) if (!cpu_is_omap15xx())
omap_sound_dma_unlink_lch(data); omap_sound_dma_unlink_lch(data);
for (i = 0; i < nr_linked_channels; i++) { for (i = 0; i < nr_linked_channels; i++) {
int cur_chan = chan[i]; int cur_chan = chan[i];
...@@ -555,7 +555,7 @@ int audio_sync(struct file *file) ...@@ -555,7 +555,7 @@ int audio_sync(struct file *file)
* to complete. So it's need to unlink dma channels * to complete. So it's need to unlink dma channels
* to avoid empty dma work. * to avoid empty dma work.
*/ */
if (!cpu_is_omap1510() && AUDIO_QUEUE_EMPTY(s)) if (!cpu_is_omap15xx() && AUDIO_QUEUE_EMPTY(s))
omap_sound_dma_unlink_lch(s); omap_sound_dma_unlink_lch(s);
shiftval = s->fragsize - b->offset; shiftval = s->fragsize - b->offset;
...@@ -699,7 +699,7 @@ static int audio_set_dma_params_play(int channel, dma_addr_t dma_ptr, ...@@ -699,7 +699,7 @@ static int audio_set_dma_params_play(int channel, dma_addr_t dma_ptr,
FN_IN; FN_IN;
if (cpu_is_omap1510() || cpu_is_omap16xx()) { if (cpu_is_omap15xx() || cpu_is_omap16xx()) {
dest_start = AUDIO_MCBSP_DATAWRITE; dest_start = AUDIO_MCBSP_DATAWRITE;
dest_port = OMAP_DMA_PORT_MPUI; dest_port = OMAP_DMA_PORT_MPUI;
} }
...@@ -729,7 +729,7 @@ static int audio_set_dma_params_capture(int channel, dma_addr_t dma_ptr, ...@@ -729,7 +729,7 @@ static int audio_set_dma_params_capture(int channel, dma_addr_t dma_ptr,
FN_IN; FN_IN;
if (cpu_is_omap1510() || cpu_is_omap16xx()) { if (cpu_is_omap15xx() || cpu_is_omap16xx()) {
src_start = AUDIO_MCBSP_DATAREAD; src_start = AUDIO_MCBSP_DATAREAD;
src_port = OMAP_DMA_PORT_MPUI; src_port = OMAP_DMA_PORT_MPUI;
} }
...@@ -871,7 +871,7 @@ static void sound_dma_irq_handler(int sound_curr_lch, u16 ch_status, void *data) ...@@ -871,7 +871,7 @@ static void sound_dma_irq_handler(int sound_curr_lch, u16 ch_status, void *data)
ch_status, dma_status, data); ch_status, dma_status, data);
if (dma_status & (DCSR_ERROR)) { if (dma_status & (DCSR_ERROR)) {
if (cpu_is_omap1510() || cpu_is_omap16xx()) if (cpu_is_omap15xx() || cpu_is_omap16xx())
OMAP_DMA_CCR_REG(sound_curr_lch) &= ~DCCR_EN; OMAP_DMA_CCR_REG(sound_curr_lch) &= ~DCCR_EN;
ERR("DCSR_ERROR!\n"); ERR("DCSR_ERROR!\n");
FN_OUT(-1); FN_OUT(-1);
...@@ -952,7 +952,7 @@ dma_callback_t audio_get_dma_callback(void) ...@@ -952,7 +952,7 @@ dma_callback_t audio_get_dma_callback(void)
static int __init audio_dma_init(void) static int __init audio_dma_init(void)
{ {
if (!cpu_is_omap1510()) if (!cpu_is_omap15xx())
nr_linked_channels = 2; nr_linked_channels = 2;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment