Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
47b50927
Commit
47b50927
authored
Jul 01, 2009
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REMOVE OBSOLETE CODE: remove unused files
Signed-off-by:
Kevin Hilman
<
khilman@deeprootsystems.com
>
parent
5ae227e5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
370 deletions
+0
-370
drivers/i2c/busses/i2c-davinci.h
drivers/i2c/busses/i2c-davinci.h
+0
-156
drivers/misc/sti/sdti.c
drivers/misc/sti/sdti.c
+0
-191
include/sound/davincisound.h
include/sound/davincisound.h
+0
-23
No files found.
drivers/i2c/busses/i2c-davinci.h
deleted
100644 → 0
View file @
5ae227e5
/*
* linux/drivers/i2c/busses/davinci/i2c_davinci.h
*
* Copyright (C) 2006 Texas Instruments.
*
* ----------------------------------------------------------------------------
*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* ----------------------------------------------------------------------------
Modifications:
ver. 1.0: Feb 2005, Vinod/Sudhakar
-
*
*/
#define DAVINCI_I2C_ICOAR_OADDR_MASK (0x03FFu)
#define DAVINCI_I2C_ICIMR_AAS_MASK (0x0040u)
#define DAVINCI_I2C_ICIMR_SCD_MASK (0x0020u)
#define DAVINCI_I2C_ICIMR_ICXRDY_MASK (0x0010u)
#define DAVINCI_I2C_ICIMR_ICRRDY_MASK (0x0008u)
#define DAVINCI_I2C_ICIMR_ARDY_MASK (0x0004u)
#define DAVINCI_I2C_ICIMR_NACK_MASK (0x0002u)
#define DAVINCI_I2C_ICIMR_AL_MASK (0x0001u)
#define DAVINCI_I2C_ICSTR_SDIR_MASK (0x4000u)
#define DAVINCI_I2C_ICSTR_NACKSNT_MASK (0x2000u)
#define DAVINCI_I2C_ICSTR_BB_MASK (0x1000u)
#define DAVINCI_I2C_ICSTR_RSFULL_MASK (0x0800u)
#define DAVINCI_I2C_ICSTR_XSMT_MASK (0x0400u)
#define DAVINCI_I2C_ICSTR_AAS_MASK (0x0200u)
#define DAVINCI_I2C_ICSTR_AD0_MASK (0x0100u)
#define DAVINCI_I2C_ICSTR_SCD_MASK (0x0020u)
#define DAVINCI_I2C_ICSTR_ICXRDY_MASK (0x0010u)
#define DAVINCI_I2C_ICSTR_ICRRDY_MASK (0x0008u)
#define DAVINCI_I2C_ICSTR_ARDY_MASK (0x0004u)
#define DAVINCI_I2C_ICSTR_NACK_MASK (0x0002u)
#define DAVINCI_I2C_ICSTR_AL_MASK (0x0001u)
#define DAVINCI_I2C_ICCLKL_ICCL_MASK (0xFFFFu)
#define DAVINCI_I2C_ICCLKH_ICCH_MASK (0xFFFFu)
#define DAVINCI_I2C_ICCNT_ICDC_MASK (0xFFFFu)
#define DAVINCI_I2C_ICDRR_D_MASK (0x00FFu)
#define DAVINCI_I2C_ICSAR_SADDR_MASK (0x03FFu)
#define DAVINCI_I2C_ICDXR_D_MASK (0x00FFu)
#define DAVINCI_I2C_ICMDR_NACKMOD_MASK (0x8000u)
#define DAVINCI_I2C_ICMDR_FREE_MASK (0x4000u)
#define DAVINCI_I2C_ICMDR_STT_MASK (0x2000u)
#define DAVINCI_I2C_ICMDR_STP_MASK (0x0800u)
#define DAVINCI_I2C_ICMDR_MST_MASK (0x0400u)
#define DAVINCI_I2C_ICMDR_TRX_MASK (0x0200u)
#define DAVINCI_I2C_ICMDR_XA_MASK (0x0100u)
#define DAVINCI_I2C_ICMDR_RM_MASK (0x0080u)
#define DAVINCI_I2C_ICMDR_DLB_MASK (0x0040u)
#define DAVINCI_I2C_ICMDR_IRS_MASK (0x0020u)
#define DAVINCI_I2C_ICMDR_STB_MASK (0x0010u)
#define DAVINCI_I2C_ICMDR_FDF_MASK (0x0008u)
#define DAVINCI_I2C_ICMDR_BC_MASK (0x0007u)
#define DAVINCI_I2C_ICIVR_TESTMD_MASK (0x0F00u)
#define DAVINCI_I2C_ICIVR_INTCODE_MASK (0x0007u)
#define DAVINCI_I2C_ICIVR_INTCODE_NONE (0x0000u)
#define DAVINCI_I2C_ICIVR_INTCODE_AL (0x0001u)
#define DAVINCI_I2C_ICIVR_INTCODE_NACK (0x0002u)
#define DAVINCI_I2C_ICIVR_INTCODE_RAR (0x0003u)
#define DAVINCI_I2C_ICIVR_INTCODE_RDR (0x0004u)
#define DAVINCI_I2C_ICIVR_INTCODE_TDR (0x0005u)
#define DAVINCI_I2C_ICIVR_INTCODE_SCD (0x0006u)
#define DAVINCI_I2C_ICIVR_INTCODE_AAS (0x0007u)
#define DAVINCI_I2C_ICEMDR_BCM_MASK (0x0001u)
#define DAVINCI_I2C_ICPSC_IPSC_MASK (0x00FFu)
#define DAVINCI_I2C_ICPID1_CLASS_MASK (0xFF00u)
#define DAVINCI_I2C_ICPID1_REVISION_MASK (0x00FFu)
#define DAVINCI_I2C_ICPID2_TYPE_MASK (0x00FFu)
#define DAVINCI_I2C_ICPFUNC_PFUNC_MASK (0x00000001u)
#define DAVINCI_I2C_ICPDIR_PDIR1_MASK (0x00000002u)
#define DAVINCI_I2C_ICPDIR_PDIR0_MASK (0x00000001u)
#define DAVINCI_I2C_ICPDIN_PDIN1_MASK (0x00000002u)
#define DAVINCI_I2C_ICPDIN_PDIN0_MASK (0x00000001u)
#define DAVINCI_I2C_ICPDOUT_PDOUT1_MASK (0x00000002u)
#define DAVINCI_I2C_ICPDOUT_PDOUT0_MASK (0x00000001u)
#define DAVINCI_I2C_ICPDSET_PDSET1_MASK (0x00000002u)
#define DAVINCI_I2C_ICPDSET_PDSET0_MASK (0x00000001u)
#define DAVINCI_I2C_ICPDCLR_PDCLR1_MASK (0x00000002u)
#define DAVINCI_I2C_ICPDCLR_PDCLR0_MASK (0x00000001u)
/**************************************************************************\
* Register Overlay Structure
\**************************************************************************/
typedef
struct
{
u16
icoar
;
u8
rsvd0
[
2
];
u16
icimr
;
u8
rsvd1
[
2
];
u16
icstr
;
u8
rsvd2
[
2
];
u16
icclkl
;
u8
rsvd3
[
2
];
u16
icclkh
;
u8
rsvd4
[
2
];
u16
iccnt
;
u8
rsvd5
[
2
];
u16
icdrr
;
u8
rsvd6
[
2
];
u16
icsar
;
u8
rsvd7
[
2
];
u16
icdxr
;
u8
rsvd8
[
2
];
u16
icmdr
;
u8
rsvd9
[
2
];
u16
icivr
;
u8
rsvd10
[
2
];
u16
icemdr
;
u8
rsvd11
[
2
];
u16
icpsc
;
u8
rsvd12
[
2
];
u16
icpid1
;
u8
rsvd13
[
2
];
u16
icpid2
;
u8
rsvd14
[
14
];
u32
ipcfunc
;
u32
icpdir
;
u32
icpdin
;
u32
icpdout
;
u32
icpdset
;
u32
icpdclr
;
}
davinci_i2cregs
;
/**************************************************************************\
* Overlay structure typedef definition
\**************************************************************************/
typedef
volatile
davinci_i2cregs
*
davinci_i2cregsovly
;
struct
i2c_davinci_device
{
int
cmd_err
;
struct
completion
cmd_complete
;
wait_queue_head_t
cmd_wait
;
u8
*
buf
;
size_t
buf_len
;
davinci_i2cregsovly
regs
;
int
irq
;
struct
i2c_adapter
adapter
;
struct
clk
*
clk
;
struct
device
*
dev
;
};
drivers/misc/sti/sdti.c
deleted
100644 → 0
View file @
5ae227e5
/*
* Support functions for OMAP3 SDTI (Serial Debug Tracing Interface)
*
* Copyright (C) 2008 Nokia Corporation
* Written by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/init.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <mach/sti.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#define SDTI_REVISION 0x000
#define SDTI_SYSCONFIG 0x010
#define SDTI_SYSSTATUS 0x014
#define SDTI_WINCTRL 0x024
#define SDTI_SCONFIG 0x028
#define SDTI_TESTCTRL 0x02C
#define SDTI_LOCK_ACCESS 0xFB0
#define CPU1_TRACE_EN 0x01
#define CPU2_TRACE_EN 0x02
#define SDTI_SYSCONFIG_SOFTRESET (1 << 1)
#define SDTI_SYSCONFIG_AUTOIDLE (1 << 0)
static
struct
clk
*
sdti_ck
;
void
__iomem
*
sti_base
,
*
sti_channel_base
;
static
DEFINE_SPINLOCK
(
sdti_lock
);
void
sti_channel_write_trace
(
int
len
,
int
id
,
void
*
data
,
unsigned
int
channel
)
{
const
u8
*
tpntr
=
data
;
spin_lock_irq
(
&
sdti_lock
);
sti_channel_writeb
(
id
,
channel
);
while
(
len
--
)
sti_channel_writeb
(
*
tpntr
++
,
channel
);
sti_channel_flush
(
channel
);
spin_unlock_irq
(
&
sdti_lock
);
}
EXPORT_SYMBOL
(
sti_channel_write_trace
);
static
void
omap_sdti_reset
(
void
)
{
int
i
;
sti_writel
(
SDTI_SYSCONFIG_SOFTRESET
,
SDTI_SYSCONFIG
);
for
(
i
=
0
;
i
<
10000
;
i
++
)
if
(
sti_readl
(
SDTI_SYSSTATUS
)
&
1
)
break
;
if
(
i
==
10000
)
printk
(
KERN_WARNING
"XTI: no real reset
\n
"
);
}
static
int
__init
omap_sdti_init
(
void
)
{
char
buf
[
64
];
int
i
;
sdti_ck
=
clk_get
(
NULL
,
"emu_per_alwon_ck"
);
if
(
IS_ERR
(
sdti_ck
))
{
printk
(
KERN_ERR
"Cannot get clk emu_per_alwon_ck
\n
"
);
return
PTR_ERR
(
sdti_ck
);
}
clk_enable
(
sdti_ck
);
omap_sdti_reset
();
sti_writel
(
0xC5ACCE55
,
SDTI_LOCK_ACCESS
);
/* Autoidle */
sti_writel
(
SDTI_SYSCONFIG_AUTOIDLE
,
SDTI_SYSCONFIG
);
/* Claim SDTI */
sti_writel
(
1
<<
30
,
SDTI_WINCTRL
);
i
=
sti_readl
(
SDTI_WINCTRL
);
if
(
!
(
i
&
(
1
<<
30
)))
printk
(
KERN_WARNING
"SDTI: cannot claim SDTI
\n
"
);
/* 4 bits dual, fclk/3 */
sti_writel
(
0x43
,
SDTI_SCONFIG
);
/* CPU2 trace enable */
sti_writel
(
i
|
CPU2_TRACE_EN
,
SDTI_WINCTRL
);
i
=
sti_readl
(
SDTI_WINCTRL
);
/* Enable SDTI */
sti_writel
((
1
<<
31
)
|
(
i
&
0x3FFFFFFF
),
SDTI_WINCTRL
);
i
=
sti_readl
(
SDTI_REVISION
);
snprintf
(
buf
,
sizeof
(
buf
),
"OMAP SDTI support loaded (HW v%u.%u)
\n
"
,
(
i
>>
4
)
&
0x0f
,
i
&
0x0f
);
printk
(
KERN_INFO
"%s"
,
buf
);
sti_channel_write_trace
(
strlen
(
buf
),
0xc3
,
buf
,
239
);
return
0
;
}
static
void
omap_sdti_exit
(
void
)
{
sti_writel
(
0
,
SDTI_WINCTRL
);
clk_disable
(
sdti_ck
);
clk_put
(
sdti_ck
);
}
static
int
__devinit
omap_sdti_probe
(
struct
platform_device
*
pdev
)
{
struct
resource
*
res
,
*
cres
;
unsigned
int
size
;
if
(
pdev
->
num_resources
!=
2
)
{
dev_err
(
&
pdev
->
dev
,
"invalid number of resources: %d
\n
"
,
pdev
->
num_resources
);
return
-
ENODEV
;
}
/* SDTI base */
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
unlikely
(
!
res
))
{
dev_err
(
&
pdev
->
dev
,
"invalid mem resource
\n
"
);
return
-
ENODEV
;
}
/* Channel base */
cres
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
1
);
if
(
unlikely
(
!
cres
))
{
dev_err
(
&
pdev
->
dev
,
"invalid channel mem resource
\n
"
);
return
-
ENODEV
;
}
size
=
res
->
end
-
res
->
start
;
sti_base
=
ioremap
(
res
->
start
,
size
);
if
(
unlikely
(
!
sti_base
))
return
-
ENODEV
;
size
=
cres
->
end
-
cres
->
start
;
sti_channel_base
=
ioremap
(
cres
->
start
,
size
);
if
(
unlikely
(
!
sti_channel_base
))
{
iounmap
(
sti_base
);
return
-
ENODEV
;
}
return
omap_sdti_init
();
}
static
int
__devexit
omap_sdti_remove
(
struct
platform_device
*
pdev
)
{
iounmap
(
sti_channel_base
);
iounmap
(
sti_base
);
omap_sdti_exit
();
return
0
;
}
static
struct
platform_driver
omap_sdti_driver
=
{
.
probe
=
omap_sdti_probe
,
.
remove
=
__devexit_p
(
omap_sdti_remove
),
.
driver
=
{
.
name
=
"sti"
,
.
owner
=
THIS_MODULE
,
},
};
static
int
__init
omap_sdti_module_init
(
void
)
{
return
platform_driver_register
(
&
omap_sdti_driver
);
}
static
void
__exit
omap_sdti_module_exit
(
void
)
{
platform_driver_unregister
(
&
omap_sdti_driver
);
}
subsys_initcall
(
omap_sdti_module_init
);
module_exit
(
omap_sdti_module_exit
);
MODULE_AUTHOR
(
"Roman Tereshonkov"
);
MODULE_LICENSE
(
"GPL"
);
include/sound/davincisound.h
deleted
100644 → 0
View file @
5ae227e5
/*
* include/sound/davincisound.h
*
* Copyright (C) 2006 Texas Instruments, Inc.
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* History:
* --------
* 2006-03-29 Sudhakar - Created
*/
#include <linux/soundcard.h>
#define SOUND_MIXER_MICBIAS _IOC_NR(SOUND_MIXER_PRIVATE1)
#define SOUND_MIXER_READ_MICBIAS _SIOR ('M', SOUND_MIXER_MICBIAS, int)
#define SOUND_MIXER_WRITE_MICBIAS SOUND_MIXER_PRIVATE1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment