aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tdmb/tdmb_ebi.c
blob: 36c86f79f1e1d3919da1b08aeafedea10572ea93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
*
* drivers/media/tdmb/tdmb_ebi.c
*
* tdmb driver
*
* Copyright (C) (2011, Samsung Electronics)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
*/

#include <linux/io.h>
#include "tdmb.h"

#define TDMB_BASE_ADDR_PHYS 0x98000000
void *addr_tdmb_cs4_v;

int tdmb_init_bus(void)
{
	addr_tdmb_cs4_v = ioremap(TDMB_BASE_ADDR_PHYS, PAGE_SIZE);
	DPRINTK("TDMB EBI2 Init addr_tdmb_cs4_v(0x%x)\n", addr_tdmb_cs4_v);
	return 0;
}

void tdmb_exit_bus(void)
{
	addr_tdmb_cs4_v = NULL;
}