Merge commit 'linus/master' into x86/urgent
This commit is contained in:
commit
5c6baba84e
|
@ -0,0 +1,8 @@
|
||||||
|
What: /sys/bus/pci/drivers/qla2xxx/.../devices/*
|
||||||
|
Date: September 2009
|
||||||
|
Contact: QLogic Linux Driver <linux-driver@qlogic.com>
|
||||||
|
Description: qla2xxx-udev.sh currently looks for uevent CHANGE events to
|
||||||
|
signal a firmware-dump has been generated by the driver and is
|
||||||
|
ready for retrieval.
|
||||||
|
Users: qla2xxx-udev.sh. Proposed changes should be mailed to
|
||||||
|
linux-driver@qlogic.com
|
|
@ -8,7 +8,7 @@ Description:
|
||||||
1 - major number
|
1 - major number
|
||||||
2 - minor mumber
|
2 - minor mumber
|
||||||
3 - device name
|
3 - device name
|
||||||
4 - reads completed succesfully
|
4 - reads completed successfully
|
||||||
5 - reads merged
|
5 - reads merged
|
||||||
6 - sectors read
|
6 - sectors read
|
||||||
7 - time spent reading (ms)
|
7 - time spent reading (ms)
|
||||||
|
|
|
@ -4,7 +4,7 @@ Contact: Jerome Marchand <jmarchan@redhat.com>
|
||||||
Description:
|
Description:
|
||||||
The /sys/block/<disk>/stat files displays the I/O
|
The /sys/block/<disk>/stat files displays the I/O
|
||||||
statistics of disk <disk>. They contain 11 fields:
|
statistics of disk <disk>. They contain 11 fields:
|
||||||
1 - reads completed succesfully
|
1 - reads completed successfully
|
||||||
2 - reads merged
|
2 - reads merged
|
||||||
3 - sectors read
|
3 - sectors read
|
||||||
4 - time spent reading (ms)
|
4 - time spent reading (ms)
|
||||||
|
|
|
@ -214,7 +214,7 @@ most specific mask.
|
||||||
Here is pseudo-code showing how this might be done:
|
Here is pseudo-code showing how this might be done:
|
||||||
|
|
||||||
#define PLAYBACK_ADDRESS_BITS DMA_BIT_MASK(32)
|
#define PLAYBACK_ADDRESS_BITS DMA_BIT_MASK(32)
|
||||||
#define RECORD_ADDRESS_BITS 0x00ffffff
|
#define RECORD_ADDRESS_BITS DMA_BIT_MASK(24)
|
||||||
|
|
||||||
struct my_sound_card *card;
|
struct my_sound_card *card;
|
||||||
struct pci_dev *pdev;
|
struct pci_dev *pdev;
|
||||||
|
@ -224,14 +224,14 @@ Here is pseudo-code showing how this might be done:
|
||||||
card->playback_enabled = 1;
|
card->playback_enabled = 1;
|
||||||
} else {
|
} else {
|
||||||
card->playback_enabled = 0;
|
card->playback_enabled = 0;
|
||||||
printk(KERN_WARN "%s: Playback disabled due to DMA limitations.\n",
|
printk(KERN_WARNING "%s: Playback disabled due to DMA limitations.\n",
|
||||||
card->name);
|
card->name);
|
||||||
}
|
}
|
||||||
if (!pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) {
|
if (!pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) {
|
||||||
card->record_enabled = 1;
|
card->record_enabled = 1;
|
||||||
} else {
|
} else {
|
||||||
card->record_enabled = 0;
|
card->record_enabled = 0;
|
||||||
printk(KERN_WARN "%s: Record disabled due to DMA limitations.\n",
|
printk(KERN_WARNING "%s: Record disabled due to DMA limitations.\n",
|
||||||
card->name);
|
card->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -293,10 +293,23 @@ X!Idrivers/video/console/fonts.c
|
||||||
|
|
||||||
<chapter id="input_subsystem">
|
<chapter id="input_subsystem">
|
||||||
<title>Input Subsystem</title>
|
<title>Input Subsystem</title>
|
||||||
|
<sect1><title>Input core</title>
|
||||||
!Iinclude/linux/input.h
|
!Iinclude/linux/input.h
|
||||||
!Edrivers/input/input.c
|
!Edrivers/input/input.c
|
||||||
!Edrivers/input/ff-core.c
|
!Edrivers/input/ff-core.c
|
||||||
!Edrivers/input/ff-memless.c
|
!Edrivers/input/ff-memless.c
|
||||||
|
</sect1>
|
||||||
|
<sect1><title>Polled input devices</title>
|
||||||
|
!Iinclude/linux/input-polldev.h
|
||||||
|
!Edrivers/input/input-polldev.c
|
||||||
|
</sect1>
|
||||||
|
<sect1><title>Matrix keyboars/keypads</title>
|
||||||
|
!Iinclude/linux/input/matrix_keypad.h
|
||||||
|
</sect1>
|
||||||
|
<sect1><title>Sparse keymap support</title>
|
||||||
|
!Iinclude/linux/input/sparse-keymap.h
|
||||||
|
!Edrivers/input/sparse-keymap.c
|
||||||
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter id="spi">
|
<chapter id="spi">
|
||||||
|
|
|
@ -29,6 +29,14 @@
|
||||||
|
|
||||||
<revhistory>
|
<revhistory>
|
||||||
<!-- Put document revisions here, newest first. -->
|
<!-- Put document revisions here, newest first. -->
|
||||||
|
<revision>
|
||||||
|
<revnumber>2.0.2</revnumber>
|
||||||
|
<date>2009-10-25</date>
|
||||||
|
<authorinitials>mcc</authorinitials>
|
||||||
|
<revremark>
|
||||||
|
documents FE_SET_FRONTEND_TUNE_MODE and FE_DISHETWORK_SEND_LEGACY_CMD ioctls.
|
||||||
|
</revremark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<revnumber>2.0.1</revnumber>
|
<revnumber>2.0.1</revnumber>
|
||||||
<date>2009-09-16</date>
|
<date>2009-09-16</date>
|
||||||
|
@ -85,3 +93,8 @@ Added ISDB-T test originally written by Patrick Boettcher
|
||||||
&sub-examples;
|
&sub-examples;
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- END OF CHAPTERS -->
|
<!-- END OF CHAPTERS -->
|
||||||
|
<appendix id="frontend_h">
|
||||||
|
<title>DVB Frontend Header File</title>
|
||||||
|
&sub-frontend-h;
|
||||||
|
</appendix>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
<section id="FE_GET_PROPERTY">
|
||||||
|
<title>FE_GET_PROPERTY/FE_SET_PROPERTY</title>
|
||||||
|
|
||||||
<section id="isdbt">
|
<section id="isdbt">
|
||||||
<title>ISDB-T frontend</title>
|
<title>ISDB-T frontend</title>
|
||||||
<para>This section describes shortly what are the possible parameters in the Linux
|
<para>This section describes shortly what are the possible parameters in the Linux
|
||||||
|
@ -312,3 +315,4 @@
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
</section>
|
|
@ -0,0 +1,415 @@
|
||||||
|
<programlisting>
|
||||||
|
/*
|
||||||
|
* frontend.h
|
||||||
|
*
|
||||||
|
* Copyright (C) 2000 Marcus Metzler <marcus@convergence.de>
|
||||||
|
* Ralph Metzler <ralph@convergence.de>
|
||||||
|
* Holger Waechtler <holger@convergence.de>
|
||||||
|
* Andre Draszik <ad@convergence.de>
|
||||||
|
* for convergence integrated media GmbH
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2.1
|
||||||
|
* 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 Lesser General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _DVBFRONTEND_H_
|
||||||
|
#define _DVBFRONTEND_H_
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
typedef enum fe_type {
|
||||||
|
FE_QPSK,
|
||||||
|
FE_QAM,
|
||||||
|
FE_OFDM,
|
||||||
|
FE_ATSC
|
||||||
|
} fe_type_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_caps {
|
||||||
|
FE_IS_STUPID = 0,
|
||||||
|
FE_CAN_INVERSION_AUTO = 0x1,
|
||||||
|
FE_CAN_FEC_1_2 = 0x2,
|
||||||
|
FE_CAN_FEC_2_3 = 0x4,
|
||||||
|
FE_CAN_FEC_3_4 = 0x8,
|
||||||
|
FE_CAN_FEC_4_5 = 0x10,
|
||||||
|
FE_CAN_FEC_5_6 = 0x20,
|
||||||
|
FE_CAN_FEC_6_7 = 0x40,
|
||||||
|
FE_CAN_FEC_7_8 = 0x80,
|
||||||
|
FE_CAN_FEC_8_9 = 0x100,
|
||||||
|
FE_CAN_FEC_AUTO = 0x200,
|
||||||
|
FE_CAN_QPSK = 0x400,
|
||||||
|
FE_CAN_QAM_16 = 0x800,
|
||||||
|
FE_CAN_QAM_32 = 0x1000,
|
||||||
|
FE_CAN_QAM_64 = 0x2000,
|
||||||
|
FE_CAN_QAM_128 = 0x4000,
|
||||||
|
FE_CAN_QAM_256 = 0x8000,
|
||||||
|
FE_CAN_QAM_AUTO = 0x10000,
|
||||||
|
FE_CAN_TRANSMISSION_MODE_AUTO = 0x20000,
|
||||||
|
FE_CAN_BANDWIDTH_AUTO = 0x40000,
|
||||||
|
FE_CAN_GUARD_INTERVAL_AUTO = 0x80000,
|
||||||
|
FE_CAN_HIERARCHY_AUTO = 0x100000,
|
||||||
|
FE_CAN_8VSB = 0x200000,
|
||||||
|
FE_CAN_16VSB = 0x400000,
|
||||||
|
FE_HAS_EXTENDED_CAPS = 0x800000, /* We need more bitspace for newer APIs, indicate this. */
|
||||||
|
FE_CAN_2G_MODULATION = 0x10000000, /* frontend supports "2nd generation modulation" (DVB-S2) */
|
||||||
|
FE_NEEDS_BENDING = 0x20000000, /* not supported anymore, don't use (frontend requires frequency bending) */
|
||||||
|
FE_CAN_RECOVER = 0x40000000, /* frontend can recover from a cable unplug automatically */
|
||||||
|
FE_CAN_MUTE_TS = 0x80000000 /* frontend can stop spurious TS data output */
|
||||||
|
} fe_caps_t;
|
||||||
|
|
||||||
|
|
||||||
|
struct dvb_frontend_info {
|
||||||
|
char name[128];
|
||||||
|
fe_type_t type;
|
||||||
|
__u32 frequency_min;
|
||||||
|
__u32 frequency_max;
|
||||||
|
__u32 frequency_stepsize;
|
||||||
|
__u32 frequency_tolerance;
|
||||||
|
__u32 symbol_rate_min;
|
||||||
|
__u32 symbol_rate_max;
|
||||||
|
__u32 symbol_rate_tolerance; /* ppm */
|
||||||
|
__u32 notifier_delay; /* DEPRECATED */
|
||||||
|
fe_caps_t caps;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check out the DiSEqC bus spec available on http://www.eutelsat.org/ for
|
||||||
|
* the meaning of this struct...
|
||||||
|
*/
|
||||||
|
struct dvb_diseqc_master_cmd {
|
||||||
|
__u8 msg [6]; /* { framing, address, command, data [3] } */
|
||||||
|
__u8 msg_len; /* valid values are 3...6 */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct dvb_diseqc_slave_reply {
|
||||||
|
__u8 msg [4]; /* { framing, data [3] } */
|
||||||
|
__u8 msg_len; /* valid values are 0...4, 0 means no msg */
|
||||||
|
int timeout; /* return from ioctl after timeout ms with */
|
||||||
|
}; /* errorcode when no message was received */
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_sec_voltage {
|
||||||
|
SEC_VOLTAGE_13,
|
||||||
|
SEC_VOLTAGE_18,
|
||||||
|
SEC_VOLTAGE_OFF
|
||||||
|
} fe_sec_voltage_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_sec_tone_mode {
|
||||||
|
SEC_TONE_ON,
|
||||||
|
SEC_TONE_OFF
|
||||||
|
} fe_sec_tone_mode_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_sec_mini_cmd {
|
||||||
|
SEC_MINI_A,
|
||||||
|
SEC_MINI_B
|
||||||
|
} fe_sec_mini_cmd_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_status {
|
||||||
|
FE_HAS_SIGNAL = 0x01, /* found something above the noise level */
|
||||||
|
FE_HAS_CARRIER = 0x02, /* found a DVB signal */
|
||||||
|
FE_HAS_VITERBI = 0x04, /* FEC is stable */
|
||||||
|
FE_HAS_SYNC = 0x08, /* found sync bytes */
|
||||||
|
FE_HAS_LOCK = 0x10, /* everything's working... */
|
||||||
|
FE_TIMEDOUT = 0x20, /* no lock within the last ~2 seconds */
|
||||||
|
FE_REINIT = 0x40 /* frontend was reinitialized, */
|
||||||
|
} fe_status_t; /* application is recommended to reset */
|
||||||
|
/* DiSEqC, tone and parameters */
|
||||||
|
|
||||||
|
typedef enum fe_spectral_inversion {
|
||||||
|
INVERSION_OFF,
|
||||||
|
INVERSION_ON,
|
||||||
|
INVERSION_AUTO
|
||||||
|
} fe_spectral_inversion_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_code_rate {
|
||||||
|
FEC_NONE = 0,
|
||||||
|
FEC_1_2,
|
||||||
|
FEC_2_3,
|
||||||
|
FEC_3_4,
|
||||||
|
FEC_4_5,
|
||||||
|
FEC_5_6,
|
||||||
|
FEC_6_7,
|
||||||
|
FEC_7_8,
|
||||||
|
FEC_8_9,
|
||||||
|
FEC_AUTO,
|
||||||
|
FEC_3_5,
|
||||||
|
FEC_9_10,
|
||||||
|
} fe_code_rate_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_modulation {
|
||||||
|
QPSK,
|
||||||
|
QAM_16,
|
||||||
|
QAM_32,
|
||||||
|
QAM_64,
|
||||||
|
QAM_128,
|
||||||
|
QAM_256,
|
||||||
|
QAM_AUTO,
|
||||||
|
VSB_8,
|
||||||
|
VSB_16,
|
||||||
|
PSK_8,
|
||||||
|
APSK_16,
|
||||||
|
APSK_32,
|
||||||
|
DQPSK,
|
||||||
|
} fe_modulation_t;
|
||||||
|
|
||||||
|
typedef enum fe_transmit_mode {
|
||||||
|
TRANSMISSION_MODE_2K,
|
||||||
|
TRANSMISSION_MODE_8K,
|
||||||
|
TRANSMISSION_MODE_AUTO,
|
||||||
|
TRANSMISSION_MODE_4K
|
||||||
|
} fe_transmit_mode_t;
|
||||||
|
|
||||||
|
typedef enum fe_bandwidth {
|
||||||
|
BANDWIDTH_8_MHZ,
|
||||||
|
BANDWIDTH_7_MHZ,
|
||||||
|
BANDWIDTH_6_MHZ,
|
||||||
|
BANDWIDTH_AUTO
|
||||||
|
} fe_bandwidth_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_guard_interval {
|
||||||
|
GUARD_INTERVAL_1_32,
|
||||||
|
GUARD_INTERVAL_1_16,
|
||||||
|
GUARD_INTERVAL_1_8,
|
||||||
|
GUARD_INTERVAL_1_4,
|
||||||
|
GUARD_INTERVAL_AUTO
|
||||||
|
} fe_guard_interval_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum fe_hierarchy {
|
||||||
|
HIERARCHY_NONE,
|
||||||
|
HIERARCHY_1,
|
||||||
|
HIERARCHY_2,
|
||||||
|
HIERARCHY_4,
|
||||||
|
HIERARCHY_AUTO
|
||||||
|
} fe_hierarchy_t;
|
||||||
|
|
||||||
|
|
||||||
|
struct dvb_qpsk_parameters {
|
||||||
|
__u32 symbol_rate; /* symbol rate in Symbols per second */
|
||||||
|
fe_code_rate_t fec_inner; /* forward error correction (see above) */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct dvb_qam_parameters {
|
||||||
|
__u32 symbol_rate; /* symbol rate in Symbols per second */
|
||||||
|
fe_code_rate_t fec_inner; /* forward error correction (see above) */
|
||||||
|
fe_modulation_t modulation; /* modulation type (see above) */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct dvb_vsb_parameters {
|
||||||
|
fe_modulation_t modulation; /* modulation type (see above) */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct dvb_ofdm_parameters {
|
||||||
|
fe_bandwidth_t bandwidth;
|
||||||
|
fe_code_rate_t code_rate_HP; /* high priority stream code rate */
|
||||||
|
fe_code_rate_t code_rate_LP; /* low priority stream code rate */
|
||||||
|
fe_modulation_t constellation; /* modulation type (see above) */
|
||||||
|
fe_transmit_mode_t transmission_mode;
|
||||||
|
fe_guard_interval_t guard_interval;
|
||||||
|
fe_hierarchy_t hierarchy_information;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct dvb_frontend_parameters {
|
||||||
|
__u32 frequency; /* (absolute) frequency in Hz for QAM/OFDM/ATSC */
|
||||||
|
/* intermediate frequency in kHz for QPSK */
|
||||||
|
fe_spectral_inversion_t inversion;
|
||||||
|
union {
|
||||||
|
struct dvb_qpsk_parameters qpsk;
|
||||||
|
struct dvb_qam_parameters qam;
|
||||||
|
struct dvb_ofdm_parameters ofdm;
|
||||||
|
struct dvb_vsb_parameters vsb;
|
||||||
|
} u;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct dvb_frontend_event {
|
||||||
|
fe_status_t status;
|
||||||
|
struct dvb_frontend_parameters parameters;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* S2API Commands */
|
||||||
|
#define DTV_UNDEFINED 0
|
||||||
|
#define DTV_TUNE 1
|
||||||
|
#define DTV_CLEAR 2
|
||||||
|
#define DTV_FREQUENCY 3
|
||||||
|
#define DTV_MODULATION 4
|
||||||
|
#define DTV_BANDWIDTH_HZ 5
|
||||||
|
#define DTV_INVERSION 6
|
||||||
|
#define DTV_DISEQC_MASTER 7
|
||||||
|
#define DTV_SYMBOL_RATE 8
|
||||||
|
#define DTV_INNER_FEC 9
|
||||||
|
#define DTV_VOLTAGE 10
|
||||||
|
#define DTV_TONE 11
|
||||||
|
#define DTV_PILOT 12
|
||||||
|
#define DTV_ROLLOFF 13
|
||||||
|
#define DTV_DISEQC_SLAVE_REPLY 14
|
||||||
|
|
||||||
|
/* Basic enumeration set for querying unlimited capabilities */
|
||||||
|
#define DTV_FE_CAPABILITY_COUNT 15
|
||||||
|
#define DTV_FE_CAPABILITY 16
|
||||||
|
#define DTV_DELIVERY_SYSTEM 17
|
||||||
|
|
||||||
|
/* ISDB-T and ISDB-Tsb */
|
||||||
|
#define DTV_ISDBT_PARTIAL_RECEPTION 18
|
||||||
|
#define DTV_ISDBT_SOUND_BROADCASTING 19
|
||||||
|
|
||||||
|
#define DTV_ISDBT_SB_SUBCHANNEL_ID 20
|
||||||
|
#define DTV_ISDBT_SB_SEGMENT_IDX 21
|
||||||
|
#define DTV_ISDBT_SB_SEGMENT_COUNT 22
|
||||||
|
|
||||||
|
#define DTV_ISDBT_LAYERA_FEC 23
|
||||||
|
#define DTV_ISDBT_LAYERA_MODULATION 24
|
||||||
|
#define DTV_ISDBT_LAYERA_SEGMENT_COUNT 25
|
||||||
|
#define DTV_ISDBT_LAYERA_TIME_INTERLEAVING 26
|
||||||
|
|
||||||
|
#define DTV_ISDBT_LAYERB_FEC 27
|
||||||
|
#define DTV_ISDBT_LAYERB_MODULATION 28
|
||||||
|
#define DTV_ISDBT_LAYERB_SEGMENT_COUNT 29
|
||||||
|
#define DTV_ISDBT_LAYERB_TIME_INTERLEAVING 30
|
||||||
|
|
||||||
|
#define DTV_ISDBT_LAYERC_FEC 31
|
||||||
|
#define DTV_ISDBT_LAYERC_MODULATION 32
|
||||||
|
#define DTV_ISDBT_LAYERC_SEGMENT_COUNT 33
|
||||||
|
#define DTV_ISDBT_LAYERC_TIME_INTERLEAVING 34
|
||||||
|
|
||||||
|
#define DTV_API_VERSION 35
|
||||||
|
|
||||||
|
#define DTV_CODE_RATE_HP 36
|
||||||
|
#define DTV_CODE_RATE_LP 37
|
||||||
|
#define DTV_GUARD_INTERVAL 38
|
||||||
|
#define DTV_TRANSMISSION_MODE 39
|
||||||
|
#define DTV_HIERARCHY 40
|
||||||
|
|
||||||
|
#define DTV_ISDBT_LAYER_ENABLED 41
|
||||||
|
|
||||||
|
#define DTV_ISDBS_TS_ID 42
|
||||||
|
|
||||||
|
#define DTV_MAX_COMMAND DTV_ISDBS_TS_ID
|
||||||
|
|
||||||
|
typedef enum fe_pilot {
|
||||||
|
PILOT_ON,
|
||||||
|
PILOT_OFF,
|
||||||
|
PILOT_AUTO,
|
||||||
|
} fe_pilot_t;
|
||||||
|
|
||||||
|
typedef enum fe_rolloff {
|
||||||
|
ROLLOFF_35, /* Implied value in DVB-S, default for DVB-S2 */
|
||||||
|
ROLLOFF_20,
|
||||||
|
ROLLOFF_25,
|
||||||
|
ROLLOFF_AUTO,
|
||||||
|
} fe_rolloff_t;
|
||||||
|
|
||||||
|
typedef enum fe_delivery_system {
|
||||||
|
SYS_UNDEFINED,
|
||||||
|
SYS_DVBC_ANNEX_AC,
|
||||||
|
SYS_DVBC_ANNEX_B,
|
||||||
|
SYS_DVBT,
|
||||||
|
SYS_DSS,
|
||||||
|
SYS_DVBS,
|
||||||
|
SYS_DVBS2,
|
||||||
|
SYS_DVBH,
|
||||||
|
SYS_ISDBT,
|
||||||
|
SYS_ISDBS,
|
||||||
|
SYS_ISDBC,
|
||||||
|
SYS_ATSC,
|
||||||
|
SYS_ATSCMH,
|
||||||
|
SYS_DMBTH,
|
||||||
|
SYS_CMMB,
|
||||||
|
SYS_DAB,
|
||||||
|
} fe_delivery_system_t;
|
||||||
|
|
||||||
|
struct dtv_cmds_h {
|
||||||
|
char *name; /* A display name for debugging purposes */
|
||||||
|
|
||||||
|
__u32 cmd; /* A unique ID */
|
||||||
|
|
||||||
|
/* Flags */
|
||||||
|
__u32 set:1; /* Either a set or get property */
|
||||||
|
__u32 buffer:1; /* Does this property use the buffer? */
|
||||||
|
__u32 reserved:30; /* Align */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct dtv_property {
|
||||||
|
__u32 cmd;
|
||||||
|
__u32 reserved[3];
|
||||||
|
union {
|
||||||
|
__u32 data;
|
||||||
|
struct {
|
||||||
|
__u8 data[32];
|
||||||
|
__u32 len;
|
||||||
|
__u32 reserved1[3];
|
||||||
|
void *reserved2;
|
||||||
|
} buffer;
|
||||||
|
} u;
|
||||||
|
int result;
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
/* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */
|
||||||
|
#define DTV_IOCTL_MAX_MSGS 64
|
||||||
|
|
||||||
|
struct dtv_properties {
|
||||||
|
__u32 num;
|
||||||
|
struct dtv_property *props;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define <link linkend="FE_GET_PROPERTY">FE_SET_PROPERTY</link> _IOW('o', 82, struct dtv_properties)
|
||||||
|
#define <link linkend="FE_GET_PROPERTY">FE_GET_PROPERTY</link> _IOR('o', 83, struct dtv_properties)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When set, this flag will disable any zigzagging or other "normal" tuning
|
||||||
|
* behaviour. Additionally, there will be no automatic monitoring of the lock
|
||||||
|
* status, and hence no frontend events will be generated. If a frontend device
|
||||||
|
* is closed, this flag will be automatically turned off when the device is
|
||||||
|
* reopened read-write.
|
||||||
|
*/
|
||||||
|
#define FE_TUNE_MODE_ONESHOT 0x01
|
||||||
|
|
||||||
|
|
||||||
|
#define <link linkend="FE_GET_INFO">FE_GET_INFO</link> _IOR('o', 61, struct dvb_frontend_info)
|
||||||
|
|
||||||
|
#define <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link> _IO('o', 62)
|
||||||
|
#define <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link> _IOW('o', 63, struct dvb_diseqc_master_cmd)
|
||||||
|
#define <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link> _IOR('o', 64, struct dvb_diseqc_slave_reply)
|
||||||
|
#define <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link> _IO('o', 65) /* fe_sec_mini_cmd_t */
|
||||||
|
|
||||||
|
#define <link linkend="FE_SET_TONE">FE_SET_TONE</link> _IO('o', 66) /* fe_sec_tone_mode_t */
|
||||||
|
#define <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> _IO('o', 67) /* fe_sec_voltage_t */
|
||||||
|
#define <link linkend="FE_ENABLE_HIGH_LNB_VOLTAGE">FE_ENABLE_HIGH_LNB_VOLTAGE</link> _IO('o', 68) /* int */
|
||||||
|
|
||||||
|
#define <link linkend="FE_READ_STATUS">FE_READ_STATUS</link> _IOR('o', 69, fe_status_t)
|
||||||
|
#define <link linkend="FE_READ_BER">FE_READ_BER</link> _IOR('o', 70, __u32)
|
||||||
|
#define <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link> _IOR('o', 71, __u16)
|
||||||
|
#define <link linkend="FE_READ_SNR">FE_READ_SNR</link> _IOR('o', 72, __u16)
|
||||||
|
#define <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link> _IOR('o', 73, __u32)
|
||||||
|
|
||||||
|
#define <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> _IOW('o', 76, struct dvb_frontend_parameters)
|
||||||
|
#define <link linkend="FE_GET_FRONTEND">FE_GET_FRONTEND</link> _IOR('o', 77, struct dvb_frontend_parameters)
|
||||||
|
#define <link linkend="FE_SET_FRONTEND_TUNE_MODE">FE_SET_FRONTEND_TUNE_MODE</link> _IO('o', 81) /* unsigned int */
|
||||||
|
#define <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> _IOR('o', 78, struct dvb_frontend_event)
|
||||||
|
|
||||||
|
#define <link linkend="FE_DISHNETWORK_SEND_LEGACY_CMD">FE_DISHNETWORK_SEND_LEGACY_CMD</link> _IO('o', 80) /* unsigned int */
|
||||||
|
|
||||||
|
#endif /*_DVBFRONTEND_H_*/
|
||||||
|
</programlisting>
|
|
@ -73,7 +73,8 @@ a specific frontend type.</para>
|
||||||
<section id="frontend_info">
|
<section id="frontend_info">
|
||||||
<title>frontend information</title>
|
<title>frontend information</title>
|
||||||
|
|
||||||
<para>Information about the frontend ca be queried with FE_GET_INFO.</para>
|
<para>Information about the frontend ca be queried with
|
||||||
|
<link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
struct dvb_frontend_info {
|
struct dvb_frontend_info {
|
||||||
|
@ -338,7 +339,7 @@ modulation mode which can be one of the following:
|
||||||
<entry align="char">
|
<entry align="char">
|
||||||
<para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
|
<para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
|
||||||
for subsequent use. Usually the first thing to do after a successful open is to
|
for subsequent use. Usually the first thing to do after a successful open is to
|
||||||
find out the frontend type with FE_GET_INFO.</para>
|
find out the frontend type with <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
|
||||||
<para>The device can be opened in read-only mode, which only allows monitoring of
|
<para>The device can be opened in read-only mode, which only allows monitoring of
|
||||||
device status and statistics, or read/write mode, which allows any kind of use
|
device status and statistics, or read/write mode, which allows any kind of use
|
||||||
(e.g. performing tuning operations.)
|
(e.g. performing tuning operations.)
|
||||||
|
@ -478,7 +479,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_read_status">
|
<section id="FE_READ_STATUS">
|
||||||
<title>FE_READ_STATUS</title>
|
<title>FE_READ_STATUS</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -492,7 +493,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_READ_STATUS,
|
<para>int ioctl(int fd, int request = <link linkend="FE_READ_STATUS">FE_READ_STATUS</link>,
|
||||||
fe_status_t ⋆status);</para>
|
fe_status_t ⋆status);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -511,7 +512,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_READ_STATUS for this command.</para>
|
<para>Equals <link linkend="FE_READ_STATUS">FE_READ_STATUS</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -542,7 +543,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_read_ber">
|
<section id="FE_READ_BER">
|
||||||
<title>FE_READ_BER</title>
|
<title>FE_READ_BER</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -557,7 +558,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_READ_BER,
|
<para>int ioctl(int fd, int request = <link linkend="FE_READ_BER">FE_READ_BER</link>,
|
||||||
uint32_t ⋆ber);</para>
|
uint32_t ⋆ber);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -575,7 +576,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_READ_BER for this command.</para>
|
<para>Equals <link linkend="FE_READ_BER">FE_READ_BER</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -619,7 +620,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_read_snr">
|
<section id="FE_READ_SNR">
|
||||||
<title>FE_READ_SNR</title>
|
<title>FE_READ_SNR</title>
|
||||||
|
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
|
@ -634,7 +635,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_READ_SNR, int16_t
|
<para>int ioctl(int fd, int request = <link linkend="FE_READ_SNR">FE_READ_SNR</link>, int16_t
|
||||||
⋆snr);</para>
|
⋆snr);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -652,7 +653,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_READ_SNR for this command.</para>
|
<para>Equals <link linkend="FE_READ_SNR">FE_READ_SNR</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -697,7 +698,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_read_signal_strength">
|
<section id="FE_READ_SIGNAL_STRENGTH">
|
||||||
<title>FE_READ_SIGNAL_STRENGTH</title>
|
<title>FE_READ_SIGNAL_STRENGTH</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -712,7 +713,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl( int fd, int request =
|
<para>int ioctl( int fd, int request =
|
||||||
FE_READ_SIGNAL_STRENGTH, int16_t ⋆strength);</para>
|
<link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link>, int16_t ⋆strength);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
@ -730,7 +731,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_READ_SIGNAL_STRENGTH for this
|
<para>Equals <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link> for this
|
||||||
command.</para>
|
command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
|
@ -775,7 +776,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_read_ub">
|
<section id="FE_READ_UNCORRECTED_BLOCKS">
|
||||||
<title>FE_READ_UNCORRECTED_BLOCKS</title>
|
<title>FE_READ_UNCORRECTED_BLOCKS</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -797,7 +798,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl( int fd, int request =
|
<para>int ioctl( int fd, int request =
|
||||||
FE_READ_UNCORRECTED_BLOCKS, uint32_t ⋆ublocks);</para>
|
<link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link>, uint32_t ⋆ublocks);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
<para>PARAMETERS
|
<para>PARAMETERS
|
||||||
|
@ -814,7 +815,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_READ_UNCORRECTED_BLOCKS for this
|
<para>Equals <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link> for this
|
||||||
command.</para>
|
command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
|
@ -852,7 +853,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_set_fe">
|
<section id="FE_SET_FRONTEND">
|
||||||
<title>FE_SET_FRONTEND</title>
|
<title>FE_SET_FRONTEND</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -861,8 +862,8 @@ modulation mode which can be one of the following:
|
||||||
<para>This ioctl call starts a tuning operation using specified parameters. The result
|
<para>This ioctl call starts a tuning operation using specified parameters. The result
|
||||||
of this call will be successful if the parameters were valid and the tuning could
|
of this call will be successful if the parameters were valid and the tuning could
|
||||||
be initiated. The result of the tuning operation in itself, however, will arrive
|
be initiated. The result of the tuning operation in itself, however, will arrive
|
||||||
asynchronously as an event (see documentation for FE_GET_EVENT and
|
asynchronously as an event (see documentation for <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> and
|
||||||
FrontendEvent.) If a new FE_SET_FRONTEND operation is initiated before
|
FrontendEvent.) If a new <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> operation is initiated before
|
||||||
the previous one was completed, the previous operation will be aborted in favor
|
the previous one was completed, the previous operation will be aborted in favor
|
||||||
of the new one. This command requires read/write access to the device.</para>
|
of the new one. This command requires read/write access to the device.</para>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -872,7 +873,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_SET_FRONTEND,
|
<para>int ioctl(int fd, int request = <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link>,
|
||||||
struct dvb_frontend_parameters ⋆p);</para>
|
struct dvb_frontend_parameters ⋆p);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -890,7 +891,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_SET_FRONTEND for this command.</para>
|
<para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -928,7 +929,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_get_fe">
|
<section id="FE_GET_FRONTEND">
|
||||||
<title>FE_GET_FRONTEND</title>
|
<title>FE_GET_FRONTEND</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -943,7 +944,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_GET_FRONTEND,
|
<para>int ioctl(int fd, int request = <link linkend="FE_GET_FRONTEND">FE_GET_FRONTEND</link>,
|
||||||
struct dvb_frontend_parameters ⋆p);</para>
|
struct dvb_frontend_parameters ⋆p);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -962,7 +963,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_SET_FRONTEND for this command.</para>
|
<para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1003,7 +1004,7 @@ modulation mode which can be one of the following:
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_get_event">
|
<section id="FE_GET_EVENT">
|
||||||
<title>FE_GET_EVENT</title>
|
<title>FE_GET_EVENT</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1024,7 +1025,8 @@ modulation mode which can be one of the following:
|
||||||
rather small (room for 8 events), the queue must be serviced regularly to avoid
|
rather small (room for 8 events), the queue must be serviced regularly to avoid
|
||||||
overflow. If an overflow happens, the oldest event is discarded from the queue,
|
overflow. If an overflow happens, the oldest event is discarded from the queue,
|
||||||
and an error (EOVERFLOW) occurs the next time the queue is read. After
|
and an error (EOVERFLOW) occurs the next time the queue is read. After
|
||||||
reporting the error condition in this fashion, subsequent FE_GET_EVENT
|
reporting the error condition in this fashion, subsequent
|
||||||
|
<link linkend="FE_GET_EVENT">FE_GET_EVENT</link>
|
||||||
calls will return events from the queue as usual.</para>
|
calls will return events from the queue as usual.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
|
@ -1057,7 +1059,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_GET_EVENT for this command.</para>
|
<para>Equals <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1115,7 +1117,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_get_info">
|
<section id="FE_GET_INFO">
|
||||||
<title>FE_GET_INFO</title>
|
<title>FE_GET_INFO</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1130,7 +1132,7 @@ modulation mode which can be one of the following:
|
||||||
|
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para> int ioctl(int fd, int request = FE_GET_INFO, struct
|
<para> int ioctl(int fd, int request = <link linkend="FE_GET_INFO">FE_GET_INFO</link>, struct
|
||||||
dvb_frontend_info ⋆info);</para>
|
dvb_frontend_info ⋆info);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1149,7 +1151,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_GET_INFO for this command.</para>
|
<para>Equals <link linkend="FE_GET_INFO">FE_GET_INFO</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1181,7 +1183,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_diseqc_reset_overload">
|
<section id="FE_DISEQC_RESET_OVERLOAD">
|
||||||
<title>FE_DISEQC_RESET_OVERLOAD</title>
|
<title>FE_DISEQC_RESET_OVERLOAD</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1199,7 +1201,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request =
|
<para>int ioctl(int fd, int request =
|
||||||
FE_DISEQC_RESET_OVERLOAD);</para>
|
<link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link>);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
<para>PARAMETERS
|
<para>PARAMETERS
|
||||||
|
@ -1216,7 +1218,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_DISEQC_RESET_OVERLOAD for this
|
<para>Equals <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link> for this
|
||||||
command.</para>
|
command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1247,7 +1249,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_diseqc_send_master_cmd">
|
<section id="FE_DISEQC_SEND_MASTER_CMD">
|
||||||
<title>FE_DISEQC_SEND_MASTER_CMD</title>
|
<title>FE_DISEQC_SEND_MASTER_CMD</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1261,7 +1263,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request =
|
<para>int ioctl(int fd, int request =
|
||||||
FE_DISEQC_SEND_MASTER_CMD, struct
|
<link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link>, struct
|
||||||
dvb_diseqc_master_cmd ⋆cmd);</para>
|
dvb_diseqc_master_cmd ⋆cmd);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1280,7 +1282,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_DISEQC_SEND_MASTER_CMD for this
|
<para>Equals <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link> for this
|
||||||
command.</para>
|
command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
|
@ -1335,7 +1337,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_diseqc_recv_slave_reply">
|
<section id="FE_DISEQC_RECV_SLAVE_REPLY">
|
||||||
<title>FE_DISEQC_RECV_SLAVE_REPLY</title>
|
<title>FE_DISEQC_RECV_SLAVE_REPLY</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1350,7 +1352,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request =
|
<para>int ioctl(int fd, int request =
|
||||||
FE_DISEQC_RECV_SLAVE_REPLY, struct
|
<link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link>, struct
|
||||||
dvb_diseqc_slave_reply ⋆reply);</para>
|
dvb_diseqc_slave_reply ⋆reply);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1369,7 +1371,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_DISEQC_RECV_SLAVE_REPLY for this
|
<para>Equals <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link> for this
|
||||||
command.</para>
|
command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
|
@ -1423,7 +1425,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_diseqc_send_burst">
|
<section id="FE_DISEQC_SEND_BURST">
|
||||||
<title>FE_DISEQC_SEND_BURST</title>
|
<title>FE_DISEQC_SEND_BURST</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1438,7 +1440,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request =
|
<para>int ioctl(int fd, int request =
|
||||||
FE_DISEQC_SEND_BURST, fe_sec_mini_cmd_t burst);</para>
|
<link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link>, fe_sec_mini_cmd_t burst);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
@ -1456,7 +1458,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_DISEQC_SEND_BURST for this command.</para>
|
<para>Equals <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1509,7 +1511,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_set_tone">
|
<section id="FE_SET_TONE">
|
||||||
<title>FE_SET_TONE</title>
|
<title>FE_SET_TONE</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1523,7 +1525,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_SET_TONE,
|
<para>int ioctl(int fd, int request = <link linkend="FE_SET_TONE">FE_SET_TONE</link>,
|
||||||
fe_sec_tone_mode_t tone);</para>
|
fe_sec_tone_mode_t tone);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1541,7 +1543,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_SET_TONE for this command.</para>
|
<para>Equals <link linkend="FE_SET_TONE">FE_SET_TONE</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1592,7 +1594,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="fe_set_voltage">
|
<section id="FE_SET_VOLTAGE">
|
||||||
<title>FE_SET_VOLTAGE</title>
|
<title>FE_SET_VOLTAGE</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1606,7 +1608,7 @@ modulation mode which can be one of the following:
|
||||||
</para>
|
</para>
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request = FE_SET_VOLTAGE,
|
<para>int ioctl(int fd, int request = <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link>,
|
||||||
fe_sec_voltage_t voltage);</para>
|
fe_sec_voltage_t voltage);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
@ -1625,7 +1627,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_SET_VOLTAGE for this command.</para>
|
<para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1677,7 +1679,7 @@ modulation mode which can be one of the following:
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="frontend_enable_high_lnb_volt">
|
<section id="FE_ENABLE_HIGH_LNB_VOLTAGE">
|
||||||
<title>FE_ENABLE_HIGH_LNB_VOLTAGE</title>
|
<title>FE_ENABLE_HIGH_LNB_VOLTAGE</title>
|
||||||
<para>DESCRIPTION
|
<para>DESCRIPTION
|
||||||
</para>
|
</para>
|
||||||
|
@ -1694,7 +1696,7 @@ modulation mode which can be one of the following:
|
||||||
<informaltable><tgroup cols="1"><tbody><row><entry
|
<informaltable><tgroup cols="1"><tbody><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>int ioctl(int fd, int request =
|
<para>int ioctl(int fd, int request =
|
||||||
FE_ENABLE_HIGH_LNB_VOLTAGE, int high);</para>
|
<link linkend="FE_ENABLE_HIGH_LNB_VOLTAGE">FE_ENABLE_HIGH_LNB_VOLTAGE</link>, int high);</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
@ -1712,7 +1714,7 @@ modulation mode which can be one of the following:
|
||||||
<para>int request</para>
|
<para>int request</para>
|
||||||
</entry><entry
|
</entry><entry
|
||||||
align="char">
|
align="char">
|
||||||
<para>Equals FE_SET_VOLTAGE for this command.</para>
|
<para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
|
||||||
</entry>
|
</entry>
|
||||||
</row><row><entry
|
</row><row><entry
|
||||||
align="char">
|
align="char">
|
||||||
|
@ -1762,5 +1764,82 @@ modulation mode which can be one of the following:
|
||||||
</entry>
|
</entry>
|
||||||
</row></tbody></tgroup></informaltable>
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section id="FE_SET_FRONTEND_TUNE_MODE">
|
||||||
|
<title>FE_SET_FRONTEND_TUNE_MODE</title>
|
||||||
|
<para>DESCRIPTION</para>
|
||||||
|
<informaltable><tgroup cols="1"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>Allow setting tuner mode flags to the frontend.</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>SYNOPSIS</para>
|
||||||
|
<informaltable><tgroup cols="1"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>int ioctl(int fd, int request =
|
||||||
|
<link linkend="FE_SET_FRONTEND_TUNE_MODE">FE_SET_FRONTEND_TUNE_MODE</link>, unsigned int flags);</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>PARAMETERS</para>
|
||||||
|
<informaltable><tgroup cols="2"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>unsigned int flags</para>
|
||||||
|
</entry>
|
||||||
|
<entry align="char">
|
||||||
|
<para>
|
||||||
|
FE_TUNE_MODE_ONESHOT When set, this flag will disable any zigzagging or other "normal" tuning behaviour. Additionally, there will be no automatic monitoring of the lock status, and hence no frontend events will be generated. If a frontend device is closed, this flag will be automatically turned off when the device is reopened read-write.
|
||||||
|
</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>ERRORS</para>
|
||||||
|
<informaltable><tgroup cols="2"><tbody><row>
|
||||||
|
<entry align="char"><para>EINVAL</para></entry>
|
||||||
|
<entry align="char"><para>Invalid argument.</para></entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
</section>
|
</section>
|
||||||
&sub-isdbt;
|
|
||||||
|
<section id="FE_DISHNETWORK_SEND_LEGACY_CMD">
|
||||||
|
<title>FE_DISHNETWORK_SEND_LEGACY_CMD</title>
|
||||||
|
<para>DESCRIPTION</para>
|
||||||
|
<informaltable><tgroup cols="1"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>WARNING: This is a very obscure legacy command, used only at stv0299 driver. Should not be used on newer drivers.</para>
|
||||||
|
<para>It provides a non-standard method for selecting Diseqc voltage on the frontend, for Dish Network legacy switches.</para>
|
||||||
|
<para>As support for this ioctl were added in 2004, this means that such dishes were already legacy in 2004.</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>SYNOPSIS</para>
|
||||||
|
<informaltable><tgroup cols="1"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>int ioctl(int fd, int request =
|
||||||
|
<link linkend="FE_DISHNETWORK_SEND_LEGACY_CMD">FE_DISHNETWORK_SEND_LEGACY_CMD</link>, unsigned long cmd);</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>PARAMETERS</para>
|
||||||
|
<informaltable><tgroup cols="2"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>unsigned long cmd</para>
|
||||||
|
</entry>
|
||||||
|
<entry align="char">
|
||||||
|
<para>
|
||||||
|
sends the specified raw cmd to the dish via DISEqC.
|
||||||
|
</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
|
||||||
|
<para>ERRORS</para>
|
||||||
|
<informaltable><tgroup cols="1"><tbody><row>
|
||||||
|
<entry align="char">
|
||||||
|
<para>There are no errors in use for this call</para>
|
||||||
|
</entry>
|
||||||
|
</row></tbody></tgroup></informaltable>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
&sub-dvbproperty;
|
||||||
|
|
|
@ -417,8 +417,8 @@ desc->chip->end();
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
To make use of the split implementation, replace the call to
|
To make use of the split implementation, replace the call to
|
||||||
__do_IRQ by a call to desc->chip->handle_irq() and associate
|
__do_IRQ by a call to desc->handle_irq() and associate
|
||||||
the appropriate handler function to desc->chip->handle_irq().
|
the appropriate handler function to desc->handle_irq().
|
||||||
In most cases the generic handler implementations should
|
In most cases the generic handler implementations should
|
||||||
be sufficient.
|
be sufficient.
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
if (signal_pending())
|
if (signal_pending(current))
|
||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
|
|
|
@ -280,7 +280,7 @@
|
||||||
<!ENTITY sub-v4l2 SYSTEM "v4l/v4l2.xml">
|
<!ENTITY sub-v4l2 SYSTEM "v4l/v4l2.xml">
|
||||||
<!ENTITY sub-intro SYSTEM "dvb/intro.xml">
|
<!ENTITY sub-intro SYSTEM "dvb/intro.xml">
|
||||||
<!ENTITY sub-frontend SYSTEM "dvb/frontend.xml">
|
<!ENTITY sub-frontend SYSTEM "dvb/frontend.xml">
|
||||||
<!ENTITY sub-isdbt SYSTEM "dvb/isdbt.xml">
|
<!ENTITY sub-dvbproperty SYSTEM "dvb/dvbproperty.xml">
|
||||||
<!ENTITY sub-demux SYSTEM "dvb/demux.xml">
|
<!ENTITY sub-demux SYSTEM "dvb/demux.xml">
|
||||||
<!ENTITY sub-video SYSTEM "dvb/video.xml">
|
<!ENTITY sub-video SYSTEM "dvb/video.xml">
|
||||||
<!ENTITY sub-audio SYSTEM "dvb/audio.xml">
|
<!ENTITY sub-audio SYSTEM "dvb/audio.xml">
|
||||||
|
@ -288,6 +288,7 @@
|
||||||
<!ENTITY sub-net SYSTEM "dvb/net.xml">
|
<!ENTITY sub-net SYSTEM "dvb/net.xml">
|
||||||
<!ENTITY sub-kdapi SYSTEM "dvb/kdapi.xml">
|
<!ENTITY sub-kdapi SYSTEM "dvb/kdapi.xml">
|
||||||
<!ENTITY sub-examples SYSTEM "dvb/examples.xml">
|
<!ENTITY sub-examples SYSTEM "dvb/examples.xml">
|
||||||
|
<!ENTITY sub-frontend-h SYSTEM "dvb/frontend.h.xml">
|
||||||
<!ENTITY sub-dvbapi SYSTEM "dvb/dvbapi.xml">
|
<!ENTITY sub-dvbapi SYSTEM "dvb/dvbapi.xml">
|
||||||
<!ENTITY sub-media SYSTEM "media.xml">
|
<!ENTITY sub-media SYSTEM "media.xml">
|
||||||
<!ENTITY sub-media-entities SYSTEM "media-entities.tmpl">
|
<!ENTITY sub-media-entities SYSTEM "media-entities.tmpl">
|
||||||
|
|
|
@ -362,7 +362,7 @@ module_exit(board_cleanup);
|
||||||
<sect1 id="Multiple_chip_control">
|
<sect1 id="Multiple_chip_control">
|
||||||
<title>Multiple chip control</title>
|
<title>Multiple chip control</title>
|
||||||
<para>
|
<para>
|
||||||
The nand driver can control chip arrays. Therefor the
|
The nand driver can control chip arrays. Therefore the
|
||||||
board driver must provide an own select_chip function. This
|
board driver must provide an own select_chip function. This
|
||||||
function must (de)select the requested chip.
|
function must (de)select the requested chip.
|
||||||
The function pointer in the nand_chip structure must
|
The function pointer in the nand_chip structure must
|
||||||
|
|
|
@ -280,11 +280,29 @@ minimum value disables backlight compensation.</entry>
|
||||||
<constant>V4L2_COLORFX_BW</constant> (1) and
|
<constant>V4L2_COLORFX_BW</constant> (1) and
|
||||||
<constant>V4L2_COLORFX_SEPIA</constant> (2).</entry>
|
<constant>V4L2_COLORFX_SEPIA</constant> (2).</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_CID_ROTATE</constant></entry>
|
||||||
|
<entry>integer</entry>
|
||||||
|
<entry>Rotates the image by specified angle. Common angles are 90,
|
||||||
|
270 and 180. Rotating the image to 90 and 270 will reverse the height
|
||||||
|
and width of the display window. It is necessary to set the new height and
|
||||||
|
width of the picture using the &VIDIOC-S-FMT; ioctl according to
|
||||||
|
the rotation angle selected.</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_CID_BG_COLOR</constant></entry>
|
||||||
|
<entry>integer</entry>
|
||||||
|
<entry>Sets the background color on the current output device.
|
||||||
|
Background color needs to be specified in the RGB24 format. The
|
||||||
|
supplied 32 bit value is interpreted as bits 0-7 Red color information,
|
||||||
|
bits 8-15 Green color information, bits 16-23 Blue color
|
||||||
|
information and bits 24-31 must be zero.</entry>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><constant>V4L2_CID_LASTP1</constant></entry>
|
<entry><constant>V4L2_CID_LASTP1</constant></entry>
|
||||||
<entry></entry>
|
<entry></entry>
|
||||||
<entry>End of the predefined control IDs (currently
|
<entry>End of the predefined control IDs (currently
|
||||||
<constant>V4L2_CID_COLORFX</constant> + 1).</entry>
|
<constant>V4L2_CID_BG_COLOR</constant> + 1).</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
|
<entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
|
||||||
|
|
|
@ -770,6 +770,11 @@ kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.hm
|
||||||
<entry>'S920'</entry>
|
<entry>'S920'</entry>
|
||||||
<entry>YUV 4:2:0 format of the gspca sn9c20x driver.</entry>
|
<entry>YUV 4:2:0 format of the gspca sn9c20x driver.</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row id="V4L2-PIX-FMT-STV0680">
|
||||||
|
<entry><constant>V4L2_PIX_FMT_STV0680</constant></entry>
|
||||||
|
<entry>'S680'</entry>
|
||||||
|
<entry>Bayer format of the gspca stv0680 driver.</entry>
|
||||||
|
</row>
|
||||||
<row id="V4L2-PIX-FMT-WNVA">
|
<row id="V4L2-PIX-FMT-WNVA">
|
||||||
<entry><constant>V4L2_PIX_FMT_WNVA</constant></entry>
|
<entry><constant>V4L2_PIX_FMT_WNVA</constant></entry>
|
||||||
<entry>'WNVA'</entry>
|
<entry>'WNVA'</entry>
|
||||||
|
|
|
@ -363,6 +363,7 @@ struct <link linkend="v4l2-pix-format">v4l2_pix_format</link> {
|
||||||
#define <link linkend="V4L2-PIX-FMT-OV511">V4L2_PIX_FMT_OV511</link> v4l2_fourcc('O', '5', '1', '1') /* ov511 JPEG */
|
#define <link linkend="V4L2-PIX-FMT-OV511">V4L2_PIX_FMT_OV511</link> v4l2_fourcc('O', '5', '1', '1') /* ov511 JPEG */
|
||||||
#define <link linkend="V4L2-PIX-FMT-OV518">V4L2_PIX_FMT_OV518</link> v4l2_fourcc('O', '5', '1', '8') /* ov518 JPEG */
|
#define <link linkend="V4L2-PIX-FMT-OV518">V4L2_PIX_FMT_OV518</link> v4l2_fourcc('O', '5', '1', '8') /* ov518 JPEG */
|
||||||
#define <link linkend="V4L2-PIX-FMT-TM6000">V4L2_PIX_FMT_TM6000</link> v4l2_fourcc('T', 'M', '6', '0') /* tm5600/tm60x0 */
|
#define <link linkend="V4L2-PIX-FMT-TM6000">V4L2_PIX_FMT_TM6000</link> v4l2_fourcc('T', 'M', '6', '0') /* tm5600/tm60x0 */
|
||||||
|
#define <link linkend="V4L2-PIX-FMT-STV0680">V4L2_PIX_FMT_STV0680</link> v4l2_fourcc('S', '6', '8', '0') /* stv0680 bayer */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* F O R M A T E N U M E R A T I O N
|
* F O R M A T E N U M E R A T I O N
|
||||||
|
@ -492,7 +493,7 @@ struct <link linkend="v4l2-jpegcompression">v4l2_jpegcompression</link> {
|
||||||
* you do, leave them untouched.
|
* you do, leave them untouched.
|
||||||
* Inluding less markers will make the
|
* Inluding less markers will make the
|
||||||
* resulting code smaller, but there will
|
* resulting code smaller, but there will
|
||||||
* be fewer aplications which can read it.
|
* be fewer applications which can read it.
|
||||||
* The presence of the APP and COM marker
|
* The presence of the APP and COM marker
|
||||||
* is influenced by APP_len and COM_len
|
* is influenced by APP_len and COM_len
|
||||||
* ONLY, not by this property! */
|
* ONLY, not by this property! */
|
||||||
|
@ -565,6 +566,7 @@ struct <link linkend="v4l2-framebuffer">v4l2_framebuffer</link> {
|
||||||
#define V4L2_FBUF_CAP_LOCAL_ALPHA 0x0010
|
#define V4L2_FBUF_CAP_LOCAL_ALPHA 0x0010
|
||||||
#define V4L2_FBUF_CAP_GLOBAL_ALPHA 0x0020
|
#define V4L2_FBUF_CAP_GLOBAL_ALPHA 0x0020
|
||||||
#define V4L2_FBUF_CAP_LOCAL_INV_ALPHA 0x0040
|
#define V4L2_FBUF_CAP_LOCAL_INV_ALPHA 0x0040
|
||||||
|
#define V4L2_FBUF_CAP_SRC_CHROMAKEY 0x0080
|
||||||
/* Flags for the 'flags' field. */
|
/* Flags for the 'flags' field. */
|
||||||
#define V4L2_FBUF_FLAG_PRIMARY 0x0001
|
#define V4L2_FBUF_FLAG_PRIMARY 0x0001
|
||||||
#define V4L2_FBUF_FLAG_OVERLAY 0x0002
|
#define V4L2_FBUF_FLAG_OVERLAY 0x0002
|
||||||
|
@ -572,6 +574,7 @@ struct <link linkend="v4l2-framebuffer">v4l2_framebuffer</link> {
|
||||||
#define V4L2_FBUF_FLAG_LOCAL_ALPHA 0x0008
|
#define V4L2_FBUF_FLAG_LOCAL_ALPHA 0x0008
|
||||||
#define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010
|
#define V4L2_FBUF_FLAG_GLOBAL_ALPHA 0x0010
|
||||||
#define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020
|
#define V4L2_FBUF_FLAG_LOCAL_INV_ALPHA 0x0020
|
||||||
|
#define V4L2_FBUF_FLAG_SRC_CHROMAKEY 0x0040
|
||||||
|
|
||||||
struct <link linkend="v4l2-clip">v4l2_clip</link> {
|
struct <link linkend="v4l2-clip">v4l2_clip</link> {
|
||||||
struct <link linkend="v4l2-rect">v4l2_rect</link> c;
|
struct <link linkend="v4l2-rect">v4l2_rect</link> c;
|
||||||
|
@ -914,8 +917,10 @@ enum <link linkend="v4l2-colorfx">v4l2_colorfx</link> {
|
||||||
#define V4L2_CID_AUTOBRIGHTNESS (V4L2_CID_BASE+32)
|
#define V4L2_CID_AUTOBRIGHTNESS (V4L2_CID_BASE+32)
|
||||||
#define V4L2_CID_BAND_STOP_FILTER (V4L2_CID_BASE+33)
|
#define V4L2_CID_BAND_STOP_FILTER (V4L2_CID_BASE+33)
|
||||||
|
|
||||||
|
#define V4L2_CID_ROTATE (V4L2_CID_BASE+34)
|
||||||
|
#define V4L2_CID_BG_COLOR (V4L2_CID_BASE+35)
|
||||||
/* last CID + 1 */
|
/* last CID + 1 */
|
||||||
#define V4L2_CID_LASTP1 (V4L2_CID_BASE+34)
|
#define V4L2_CID_LASTP1 (V4L2_CID_BASE+36)
|
||||||
|
|
||||||
/* MPEG-class control IDs defined by V4L2 */
|
/* MPEG-class control IDs defined by V4L2 */
|
||||||
#define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)
|
#define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)
|
||||||
|
|
|
@ -336,6 +336,13 @@ alpha value. Alpha blending makes no sense for destructive overlays.</entry>
|
||||||
inverted alpha channel of the framebuffer or VGA signal. Alpha
|
inverted alpha channel of the framebuffer or VGA signal. Alpha
|
||||||
blending makes no sense for destructive overlays.</entry>
|
blending makes no sense for destructive overlays.</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_FBUF_CAP_SRC_CHROMAKEY</constant></entry>
|
||||||
|
<entry>0x0080</entry>
|
||||||
|
<entry>The device supports Source Chroma-keying. Framebuffer pixels
|
||||||
|
with the chroma-key colors are replaced by video pixels, which is exactly opposite of
|
||||||
|
<constant>V4L2_FBUF_CAP_CHROMAKEY</constant></entry>
|
||||||
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</table>
|
</table>
|
||||||
|
@ -411,6 +418,16 @@ images, but with an inverted alpha value. The blend function is:
|
||||||
output = framebuffer pixel * (1 - alpha) + video pixel * alpha. The
|
output = framebuffer pixel * (1 - alpha) + video pixel * alpha. The
|
||||||
actual alpha depth depends on the framebuffer pixel format.</entry>
|
actual alpha depth depends on the framebuffer pixel format.</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><constant>V4L2_FBUF_FLAG_SRC_CHROMAKEY</constant></entry>
|
||||||
|
<entry>0x0040</entry>
|
||||||
|
<entry>Use source chroma-keying. The source chroma-key color is
|
||||||
|
determined by the <structfield>chromakey</structfield> field of
|
||||||
|
&v4l2-window; and negotiated with the &VIDIOC-S-FMT; ioctl, see <xref
|
||||||
|
linkend="overlay" /> and <xref linkend="osd" />.
|
||||||
|
Both chroma-keying are mutual exclusive to each other, so same
|
||||||
|
<structfield>chromakey</structfield> field of &v4l2-window; is being used.</entry>
|
||||||
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -5318,7 +5318,7 @@ struct _snd_pcm_runtime {
|
||||||
pages of the given size and map them onto the virtually contiguous
|
pages of the given size and map them onto the virtually contiguous
|
||||||
memory. The virtual pointer is addressed in runtime->dma_area.
|
memory. The virtual pointer is addressed in runtime->dma_area.
|
||||||
The physical address (runtime->dma_addr) is set to zero,
|
The physical address (runtime->dma_addr) is set to zero,
|
||||||
because the buffer is physically non-contigous.
|
because the buffer is physically non-contiguous.
|
||||||
The physical address table is set up in sgbuf->table.
|
The physical address table is set up in sgbuf->table.
|
||||||
You can get the physical address at a certain offset via
|
You can get the physical address at a certain offset via
|
||||||
<function>snd_pcm_sgbuf_get_addr()</function>.
|
<function>snd_pcm_sgbuf_get_addr()</function>.
|
||||||
|
|
|
@ -0,0 +1,317 @@
|
||||||
|
OMAP2/3 Display Subsystem
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
This is an almost total rewrite of the OMAP FB driver in drivers/video/omap
|
||||||
|
(let's call it DSS1). The main differences between DSS1 and DSS2 are DSI,
|
||||||
|
TV-out and multiple display support, but there are lots of small improvements
|
||||||
|
also.
|
||||||
|
|
||||||
|
The DSS2 driver (omapdss module) is in arch/arm/plat-omap/dss/, and the FB,
|
||||||
|
panel and controller drivers are in drivers/video/omap2/. DSS1 and DSS2 live
|
||||||
|
currently side by side, you can choose which one to use.
|
||||||
|
|
||||||
|
Features
|
||||||
|
--------
|
||||||
|
|
||||||
|
Working and tested features include:
|
||||||
|
|
||||||
|
- MIPI DPI (parallel) output
|
||||||
|
- MIPI DSI output in command mode
|
||||||
|
- MIPI DBI (RFBI) output
|
||||||
|
- SDI output
|
||||||
|
- TV output
|
||||||
|
- All pieces can be compiled as a module or inside kernel
|
||||||
|
- Use DISPC to update any of the outputs
|
||||||
|
- Use CPU to update RFBI or DSI output
|
||||||
|
- OMAP DISPC planes
|
||||||
|
- RGB16, RGB24 packed, RGB24 unpacked
|
||||||
|
- YUV2, UYVY
|
||||||
|
- Scaling
|
||||||
|
- Adjusting DSS FCK to find a good pixel clock
|
||||||
|
- Use DSI DPLL to create DSS FCK
|
||||||
|
|
||||||
|
Tested boards include:
|
||||||
|
- OMAP3 SDP board
|
||||||
|
- Beagle board
|
||||||
|
- N810
|
||||||
|
|
||||||
|
omapdss driver
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The DSS driver does not itself have any support for Linux framebuffer, V4L or
|
||||||
|
such like the current ones, but it has an internal kernel API that upper level
|
||||||
|
drivers can use.
|
||||||
|
|
||||||
|
The DSS driver models OMAP's overlays, overlay managers and displays in a
|
||||||
|
flexible way to enable non-common multi-display configuration. In addition to
|
||||||
|
modelling the hardware overlays, omapdss supports virtual overlays and overlay
|
||||||
|
managers. These can be used when updating a display with CPU or system DMA.
|
||||||
|
|
||||||
|
Panel and controller drivers
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
The drivers implement panel or controller specific functionality and are not
|
||||||
|
usually visible to users except through omapfb driver. They register
|
||||||
|
themselves to the DSS driver.
|
||||||
|
|
||||||
|
omapfb driver
|
||||||
|
-------------
|
||||||
|
|
||||||
|
The omapfb driver implements arbitrary number of standard linux framebuffers.
|
||||||
|
These framebuffers can be routed flexibly to any overlays, thus allowing very
|
||||||
|
dynamic display architecture.
|
||||||
|
|
||||||
|
The driver exports some omapfb specific ioctls, which are compatible with the
|
||||||
|
ioctls in the old driver.
|
||||||
|
|
||||||
|
The rest of the non standard features are exported via sysfs. Whether the final
|
||||||
|
implementation will use sysfs, or ioctls, is still open.
|
||||||
|
|
||||||
|
V4L2 drivers
|
||||||
|
------------
|
||||||
|
|
||||||
|
V4L2 is being implemented in TI.
|
||||||
|
|
||||||
|
From omapdss point of view the V4L2 drivers should be similar to framebuffer
|
||||||
|
driver.
|
||||||
|
|
||||||
|
Architecture
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Some clarification what the different components do:
|
||||||
|
|
||||||
|
- Framebuffer is a memory area inside OMAP's SRAM/SDRAM that contains the
|
||||||
|
pixel data for the image. Framebuffer has width and height and color
|
||||||
|
depth.
|
||||||
|
- Overlay defines where the pixels are read from and where they go on the
|
||||||
|
screen. The overlay may be smaller than framebuffer, thus displaying only
|
||||||
|
part of the framebuffer. The position of the overlay may be changed if
|
||||||
|
the overlay is smaller than the display.
|
||||||
|
- Overlay manager combines the overlays in to one image and feeds them to
|
||||||
|
display.
|
||||||
|
- Display is the actual physical display device.
|
||||||
|
|
||||||
|
A framebuffer can be connected to multiple overlays to show the same pixel data
|
||||||
|
on all of the overlays. Note that in this case the overlay input sizes must be
|
||||||
|
the same, but, in case of video overlays, the output size can be different. Any
|
||||||
|
framebuffer can be connected to any overlay.
|
||||||
|
|
||||||
|
An overlay can be connected to one overlay manager. Also DISPC overlays can be
|
||||||
|
connected only to DISPC overlay managers, and virtual overlays can be only
|
||||||
|
connected to virtual overlays.
|
||||||
|
|
||||||
|
An overlay manager can be connected to one display. There are certain
|
||||||
|
restrictions which kinds of displays an overlay manager can be connected:
|
||||||
|
|
||||||
|
- DISPC TV overlay manager can be only connected to TV display.
|
||||||
|
- Virtual overlay managers can only be connected to DBI or DSI displays.
|
||||||
|
- DISPC LCD overlay manager can be connected to all displays, except TV
|
||||||
|
display.
|
||||||
|
|
||||||
|
Sysfs
|
||||||
|
-----
|
||||||
|
The sysfs interface is mainly used for testing. I don't think sysfs
|
||||||
|
interface is the best for this in the final version, but I don't quite know
|
||||||
|
what would be the best interfaces for these things.
|
||||||
|
|
||||||
|
The sysfs interface is divided to two parts: DSS and FB.
|
||||||
|
|
||||||
|
/sys/class/graphics/fb? directory:
|
||||||
|
mirror 0=off, 1=on
|
||||||
|
rotate Rotation 0-3 for 0, 90, 180, 270 degrees
|
||||||
|
rotate_type 0 = DMA rotation, 1 = VRFB rotation
|
||||||
|
overlays List of overlay numbers to which framebuffer pixels go
|
||||||
|
phys_addr Physical address of the framebuffer
|
||||||
|
virt_addr Virtual address of the framebuffer
|
||||||
|
size Size of the framebuffer
|
||||||
|
|
||||||
|
/sys/devices/platform/omapdss/overlay? directory:
|
||||||
|
enabled 0=off, 1=on
|
||||||
|
input_size width,height (ie. the framebuffer size)
|
||||||
|
manager Destination overlay manager name
|
||||||
|
name
|
||||||
|
output_size width,height
|
||||||
|
position x,y
|
||||||
|
screen_width width
|
||||||
|
global_alpha global alpha 0-255 0=transparent 255=opaque
|
||||||
|
|
||||||
|
/sys/devices/platform/omapdss/manager? directory:
|
||||||
|
display Destination display
|
||||||
|
name
|
||||||
|
alpha_blending_enabled 0=off, 1=on
|
||||||
|
trans_key_enabled 0=off, 1=on
|
||||||
|
trans_key_type gfx-destination, video-source
|
||||||
|
trans_key_value transparency color key (RGB24)
|
||||||
|
default_color default background color (RGB24)
|
||||||
|
|
||||||
|
/sys/devices/platform/omapdss/display? directory:
|
||||||
|
ctrl_name Controller name
|
||||||
|
mirror 0=off, 1=on
|
||||||
|
update_mode 0=off, 1=auto, 2=manual
|
||||||
|
enabled 0=off, 1=on
|
||||||
|
name
|
||||||
|
rotate Rotation 0-3 for 0, 90, 180, 270 degrees
|
||||||
|
timings Display timings (pixclock,xres/hfp/hbp/hsw,yres/vfp/vbp/vsw)
|
||||||
|
When writing, two special timings are accepted for tv-out:
|
||||||
|
"pal" and "ntsc"
|
||||||
|
panel_name
|
||||||
|
tear_elim Tearing elimination 0=off, 1=on
|
||||||
|
|
||||||
|
There are also some debugfs files at <debugfs>/omapdss/ which show information
|
||||||
|
about clocks and registers.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
The following definitions have been made for the examples below:
|
||||||
|
|
||||||
|
ovl0=/sys/devices/platform/omapdss/overlay0
|
||||||
|
ovl1=/sys/devices/platform/omapdss/overlay1
|
||||||
|
ovl2=/sys/devices/platform/omapdss/overlay2
|
||||||
|
|
||||||
|
mgr0=/sys/devices/platform/omapdss/manager0
|
||||||
|
mgr1=/sys/devices/platform/omapdss/manager1
|
||||||
|
|
||||||
|
lcd=/sys/devices/platform/omapdss/display0
|
||||||
|
dvi=/sys/devices/platform/omapdss/display1
|
||||||
|
tv=/sys/devices/platform/omapdss/display2
|
||||||
|
|
||||||
|
fb0=/sys/class/graphics/fb0
|
||||||
|
fb1=/sys/class/graphics/fb1
|
||||||
|
fb2=/sys/class/graphics/fb2
|
||||||
|
|
||||||
|
Default setup on OMAP3 SDP
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Here's the default setup on OMAP3 SDP board. All planes go to LCD. DVI
|
||||||
|
and TV-out are not in use. The columns from left to right are:
|
||||||
|
framebuffers, overlays, overlay managers, displays. Framebuffers are
|
||||||
|
handled by omapfb, and the rest by the DSS.
|
||||||
|
|
||||||
|
FB0 --- GFX -\ DVI
|
||||||
|
FB1 --- VID1 --+- LCD ---- LCD
|
||||||
|
FB2 --- VID2 -/ TV ----- TV
|
||||||
|
|
||||||
|
Example: Switch from LCD to DVI
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
w=`cat $dvi/timings | cut -d "," -f 2 | cut -d "/" -f 1`
|
||||||
|
h=`cat $dvi/timings | cut -d "," -f 3 | cut -d "/" -f 1`
|
||||||
|
|
||||||
|
echo "0" > $lcd/enabled
|
||||||
|
echo "" > $mgr0/display
|
||||||
|
fbset -fb /dev/fb0 -xres $w -yres $h -vxres $w -vyres $h
|
||||||
|
# at this point you have to switch the dvi/lcd dip-switch from the omap board
|
||||||
|
echo "dvi" > $mgr0/display
|
||||||
|
echo "1" > $dvi/enabled
|
||||||
|
|
||||||
|
After this the configuration looks like:
|
||||||
|
|
||||||
|
FB0 --- GFX -\ -- DVI
|
||||||
|
FB1 --- VID1 --+- LCD -/ LCD
|
||||||
|
FB2 --- VID2 -/ TV ----- TV
|
||||||
|
|
||||||
|
Example: Clone GFX overlay to LCD and TV
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
w=`cat $tv/timings | cut -d "," -f 2 | cut -d "/" -f 1`
|
||||||
|
h=`cat $tv/timings | cut -d "," -f 3 | cut -d "/" -f 1`
|
||||||
|
|
||||||
|
echo "0" > $ovl0/enabled
|
||||||
|
echo "0" > $ovl1/enabled
|
||||||
|
|
||||||
|
echo "" > $fb1/overlays
|
||||||
|
echo "0,1" > $fb0/overlays
|
||||||
|
|
||||||
|
echo "$w,$h" > $ovl1/output_size
|
||||||
|
echo "tv" > $ovl1/manager
|
||||||
|
|
||||||
|
echo "1" > $ovl0/enabled
|
||||||
|
echo "1" > $ovl1/enabled
|
||||||
|
|
||||||
|
echo "1" > $tv/enabled
|
||||||
|
|
||||||
|
After this the configuration looks like (only relevant parts shown):
|
||||||
|
|
||||||
|
FB0 +-- GFX ---- LCD ---- LCD
|
||||||
|
\- VID1 ---- TV ---- TV
|
||||||
|
|
||||||
|
Misc notes
|
||||||
|
----------
|
||||||
|
|
||||||
|
OMAP FB allocates the framebuffer memory using the OMAP VRAM allocator.
|
||||||
|
|
||||||
|
Using DSI DPLL to generate pixel clock it is possible produce the pixel clock
|
||||||
|
of 86.5MHz (max possible), and with that you get 1280x1024@57 output from DVI.
|
||||||
|
|
||||||
|
Rotation and mirroring currently only supports RGB565 and RGB8888 modes. VRFB
|
||||||
|
does not support mirroring.
|
||||||
|
|
||||||
|
VRFB rotation requires much more memory than non-rotated framebuffer, so you
|
||||||
|
probably need to increase your vram setting before using VRFB rotation. Also,
|
||||||
|
many applications may not work with VRFB if they do not pay attention to all
|
||||||
|
framebuffer parameters.
|
||||||
|
|
||||||
|
Kernel boot arguments
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
vram=<size>
|
||||||
|
- Amount of total VRAM to preallocate. For example, "10M". omapfb
|
||||||
|
allocates memory for framebuffers from VRAM.
|
||||||
|
|
||||||
|
omapfb.mode=<display>:<mode>[,...]
|
||||||
|
- Default video mode for specified displays. For example,
|
||||||
|
"dvi:800x400MR-24@60". See drivers/video/modedb.c.
|
||||||
|
There are also two special modes: "pal" and "ntsc" that
|
||||||
|
can be used to tv out.
|
||||||
|
|
||||||
|
omapfb.vram=<fbnum>:<size>[@<physaddr>][,...]
|
||||||
|
- VRAM allocated for a framebuffer. Normally omapfb allocates vram
|
||||||
|
depending on the display size. With this you can manually allocate
|
||||||
|
more or define the physical address of each framebuffer. For example,
|
||||||
|
"1:4M" to allocate 4M for fb1.
|
||||||
|
|
||||||
|
omapfb.debug=<y|n>
|
||||||
|
- Enable debug printing. You have to have OMAPFB debug support enabled
|
||||||
|
in kernel config.
|
||||||
|
|
||||||
|
omapfb.test=<y|n>
|
||||||
|
- Draw test pattern to framebuffer whenever framebuffer settings change.
|
||||||
|
You need to have OMAPFB debug support enabled in kernel config.
|
||||||
|
|
||||||
|
omapfb.vrfb=<y|n>
|
||||||
|
- Use VRFB rotation for all framebuffers.
|
||||||
|
|
||||||
|
omapfb.rotate=<angle>
|
||||||
|
- Default rotation applied to all framebuffers.
|
||||||
|
0 - 0 degree rotation
|
||||||
|
1 - 90 degree rotation
|
||||||
|
2 - 180 degree rotation
|
||||||
|
3 - 270 degree rotation
|
||||||
|
|
||||||
|
omapfb.mirror=<y|n>
|
||||||
|
- Default mirror for all framebuffers. Only works with DMA rotation.
|
||||||
|
|
||||||
|
omapdss.def_disp=<display>
|
||||||
|
- Name of default display, to which all overlays will be connected.
|
||||||
|
Common examples are "lcd" or "tv".
|
||||||
|
|
||||||
|
omapdss.debug=<y|n>
|
||||||
|
- Enable debug printing. You have to have DSS debug support enabled in
|
||||||
|
kernel config.
|
||||||
|
|
||||||
|
TODO
|
||||||
|
----
|
||||||
|
|
||||||
|
DSS locking
|
||||||
|
|
||||||
|
Error checking
|
||||||
|
- Lots of checks are missing or implemented just as BUG()
|
||||||
|
|
||||||
|
System DMA update for DSI
|
||||||
|
- Can be used for RGB16 and RGB24P modes. Probably not for RGB24U (how
|
||||||
|
to skip the empty byte?)
|
||||||
|
|
||||||
|
OMAP1 support
|
||||||
|
- Not sure if needed
|
||||||
|
|
|
@ -85,7 +85,7 @@ http://www.linuxtv.org/wiki/index.php/DVB_USB
|
||||||
- moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
|
- moved transfer control (pid filter, fifo control) from usb driver to frontend, it seems
|
||||||
better settled there (added xfer_ops-struct)
|
better settled there (added xfer_ops-struct)
|
||||||
- created a common files for frontends (mc/p/mb)
|
- created a common files for frontends (mc/p/mb)
|
||||||
2004-09-28 - added support for a new device (Unkown, vendor ID is Hyper-Paltek)
|
2004-09-28 - added support for a new device (Unknown, vendor ID is Hyper-Paltek)
|
||||||
2004-09-20 - added support for a new device (Compro DVB-U2000), thanks
|
2004-09-20 - added support for a new device (Compro DVB-U2000), thanks
|
||||||
to Amaury Demol for reporting
|
to Amaury Demol for reporting
|
||||||
- changed usb TS transfer method (several urbs, stopping transfer
|
- changed usb TS transfer method (several urbs, stopping transfer
|
||||||
|
|
|
@ -80,7 +80,7 @@ is:
|
||||||
|
|
||||||
broken_parity_status
|
broken_parity_status
|
||||||
|
|
||||||
as is located in /sys/devices/pci<XXX>/0000:XX:YY.Z directorys for
|
as is located in /sys/devices/pci<XXX>/0000:XX:YY.Z directories for
|
||||||
PCI devices.
|
PCI devices.
|
||||||
|
|
||||||
FUTURE HARDWARE SCANNING
|
FUTURE HARDWARE SCANNING
|
||||||
|
@ -288,9 +288,8 @@ Total UE count that had no information attribute fileY:
|
||||||
|
|
||||||
'ue_noinfo_count'
|
'ue_noinfo_count'
|
||||||
|
|
||||||
This attribute file displays the number of UEs that
|
This attribute file displays the number of UEs that have occurred
|
||||||
have occurred have occurred with no informations as to which DIMM
|
with no information as to which DIMM slot is having errors.
|
||||||
slot is having errors.
|
|
||||||
|
|
||||||
|
|
||||||
Total Correctable Errors count attribute file:
|
Total Correctable Errors count attribute file:
|
||||||
|
|
|
@ -483,3 +483,10 @@ Why: With the recent innovations in CPU hardware acceleration technologies
|
||||||
Who: Alok N Kataria <akataria@vmware.com>
|
Who: Alok N Kataria <akataria@vmware.com>
|
||||||
|
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
What: adt7473 hardware monitoring driver
|
||||||
|
When: February 2010
|
||||||
|
Why: Obsoleted by the adt7475 driver.
|
||||||
|
Who: Jean Delvare <khali@linux-fr.org>
|
||||||
|
|
||||||
|
---------------------------
|
||||||
|
|
|
@ -36,6 +36,8 @@ dnotify.txt
|
||||||
- info about directory notification in Linux.
|
- info about directory notification in Linux.
|
||||||
ecryptfs.txt
|
ecryptfs.txt
|
||||||
- docs on eCryptfs: stacked cryptographic filesystem for Linux.
|
- docs on eCryptfs: stacked cryptographic filesystem for Linux.
|
||||||
|
exofs.txt
|
||||||
|
- info, usage, mount options, design about EXOFS.
|
||||||
ext2.txt
|
ext2.txt
|
||||||
- info, mount options and specifications for the Ext2 filesystem.
|
- info, mount options and specifications for the Ext2 filesystem.
|
||||||
ext3.txt
|
ext3.txt
|
||||||
|
|
|
@ -60,13 +60,13 @@ USAGE
|
||||||
|
|
||||||
mkfs.exofs --pid=65536 --format /dev/osd0
|
mkfs.exofs --pid=65536 --format /dev/osd0
|
||||||
|
|
||||||
The --format is optional if not specified no OSD_FORMAT will be
|
The --format is optional. If not specified, no OSD_FORMAT will be
|
||||||
preformed and a clean file system will be created in the specified pid,
|
performed and a clean file system will be created in the specified pid,
|
||||||
in the available space of the target. (Use --format=size_in_meg to limit
|
in the available space of the target. (Use --format=size_in_meg to limit
|
||||||
the total LUN space available)
|
the total LUN space available)
|
||||||
|
|
||||||
If pid already exist it will be deleted and a new one will be created in it's
|
If pid already exists, it will be deleted and a new one will be created in
|
||||||
place. Be careful.
|
its place. Be careful.
|
||||||
|
|
||||||
An exofs lives inside a single OSD partition. You can create multiple exofs
|
An exofs lives inside a single OSD partition. You can create multiple exofs
|
||||||
filesystems on the same device using multiple pids.
|
filesystems on the same device using multiple pids.
|
||||||
|
@ -81,7 +81,7 @@ USAGE
|
||||||
|
|
||||||
7. For reference (See do-exofs example script):
|
7. For reference (See do-exofs example script):
|
||||||
do-exofs start - an example of how to perform the above steps.
|
do-exofs start - an example of how to perform the above steps.
|
||||||
do-exofs stop - an example of how to unmount the file system.
|
do-exofs stop - an example of how to unmount the file system.
|
||||||
do-exofs format - an example of how to format and mkfs a new exofs.
|
do-exofs format - an example of how to format and mkfs a new exofs.
|
||||||
|
|
||||||
8. Extra compilation flags (uncomment in fs/exofs/Kbuild):
|
8. Extra compilation flags (uncomment in fs/exofs/Kbuild):
|
||||||
|
@ -104,8 +104,8 @@ Where:
|
||||||
exofs specific options: Options are separated by commas (,)
|
exofs specific options: Options are separated by commas (,)
|
||||||
pid=<integer> - The partition number to mount/create as
|
pid=<integer> - The partition number to mount/create as
|
||||||
container of the filesystem.
|
container of the filesystem.
|
||||||
This option is mandatory
|
This option is mandatory.
|
||||||
to=<integer> - Timeout in ticks for a single command
|
to=<integer> - Timeout in ticks for a single command.
|
||||||
default is (60 * HZ) [for debugging only]
|
default is (60 * HZ) [for debugging only]
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
@ -116,7 +116,7 @@ DESIGN
|
||||||
with a special ID (defined in common.h).
|
with a special ID (defined in common.h).
|
||||||
Information included in the file system control block is used to fill the
|
Information included in the file system control block is used to fill the
|
||||||
in-memory superblock structure at mount time. This object is created before
|
in-memory superblock structure at mount time. This object is created before
|
||||||
the file system is used by mkexofs.c It contains information such as:
|
the file system is used by mkexofs.c. It contains information such as:
|
||||||
- The file system's magic number
|
- The file system's magic number
|
||||||
- The next inode number to be allocated
|
- The next inode number to be allocated
|
||||||
|
|
||||||
|
@ -134,8 +134,8 @@ DESIGN
|
||||||
attributes. This applies to both regular files and other types (directories,
|
attributes. This applies to both regular files and other types (directories,
|
||||||
device files, symlinks, etc.).
|
device files, symlinks, etc.).
|
||||||
|
|
||||||
* Credentials are generated per object (inode and superblock) when they is
|
* Credentials are generated per object (inode and superblock) when they are
|
||||||
created in memory (read off disk or created). The credential works for all
|
created in memory (read from disk or created). The credential works for all
|
||||||
operations and is used as long as the object remains in memory.
|
operations and is used as long as the object remains in memory.
|
||||||
|
|
||||||
* Async OSD operations are used whenever possible, but the target may execute
|
* Async OSD operations are used whenever possible, but the target may execute
|
||||||
|
@ -145,7 +145,8 @@ DESIGN
|
||||||
from executing in reverse order:
|
from executing in reverse order:
|
||||||
- The following are handled with the OBJ_CREATED and OBJ_2BCREATED
|
- The following are handled with the OBJ_CREATED and OBJ_2BCREATED
|
||||||
flags. OBJ_CREATED is set when we know the object exists on the OSD -
|
flags. OBJ_CREATED is set when we know the object exists on the OSD -
|
||||||
in create's callback function, and when we successfully do a read_inode.
|
in create's callback function, and when we successfully do a
|
||||||
|
read_inode.
|
||||||
OBJ_2BCREATED is set in the beginning of the create function, so we
|
OBJ_2BCREATED is set in the beginning of the create function, so we
|
||||||
know that we should wait.
|
know that we should wait.
|
||||||
- create/delete: delete should wait until the object is created
|
- create/delete: delete should wait until the object is created
|
||||||
|
|
|
@ -153,8 +153,8 @@ journal_dev=devnum When the external journal device's major/minor numbers
|
||||||
identified through its new major/minor numbers encoded
|
identified through its new major/minor numbers encoded
|
||||||
in devnum.
|
in devnum.
|
||||||
|
|
||||||
noload Don't load the journal on mounting. Note that
|
norecovery Don't load the journal on mounting. Note that
|
||||||
if the filesystem was not unmounted cleanly,
|
noload if the filesystem was not unmounted cleanly,
|
||||||
skipping the journal replay will lead to the
|
skipping the journal replay will lead to the
|
||||||
filesystem containing inconsistencies that can
|
filesystem containing inconsistencies that can
|
||||||
lead to any number of problems.
|
lead to any number of problems.
|
||||||
|
@ -353,6 +353,12 @@ noauto_da_alloc replacing existing files via patterns such as
|
||||||
system crashes before the delayed allocation
|
system crashes before the delayed allocation
|
||||||
blocks are forced to disk.
|
blocks are forced to disk.
|
||||||
|
|
||||||
|
discard Controls whether ext4 should issue discard/TRIM
|
||||||
|
nodiscard(*) commands to the underlying block device when
|
||||||
|
blocks are freed. This is useful for SSD devices
|
||||||
|
and sparse/thinly-provisioned LUNs, but it is off
|
||||||
|
by default until sufficient testing has been done.
|
||||||
|
|
||||||
Data Mode
|
Data Mode
|
||||||
=========
|
=========
|
||||||
There are 3 different data modes:
|
There are 3 different data modes:
|
||||||
|
|
|
@ -1089,8 +1089,8 @@ The "processes" line gives the number of processes and threads created, which
|
||||||
includes (but is not limited to) those created by calls to the fork() and
|
includes (but is not limited to) those created by calls to the fork() and
|
||||||
clone() system calls.
|
clone() system calls.
|
||||||
|
|
||||||
The "procs_running" line gives the number of processes currently running on
|
The "procs_running" line gives the total number of threads that are
|
||||||
CPUs.
|
running or ready to run (i.e., the total number of runnable threads).
|
||||||
|
|
||||||
The "procs_blocked" line gives the number of processes currently blocked,
|
The "procs_blocked" line gives the number of processes currently blocked,
|
||||||
waiting for I/O to complete.
|
waiting for I/O to complete.
|
||||||
|
|
|
@ -380,7 +380,7 @@ rare; use gpiochip_remove() when it is unavoidable.
|
||||||
|
|
||||||
Most often a gpio_chip is part of an instance-specific structure with state
|
Most often a gpio_chip is part of an instance-specific structure with state
|
||||||
not exposed by the GPIO interfaces, such as addressing, power management,
|
not exposed by the GPIO interfaces, such as addressing, power management,
|
||||||
and more. Chips such as codecs will have complex non-GPIO state,
|
and more. Chips such as codecs will have complex non-GPIO state.
|
||||||
|
|
||||||
Any debugfs dump method should normally ignore signals which haven't been
|
Any debugfs dump method should normally ignore signals which haven't been
|
||||||
requested as GPIOs. They can use gpiochip_is_requested(), which returns
|
requested as GPIOs. They can use gpiochip_is_requested(), which returns
|
||||||
|
@ -531,7 +531,7 @@ and have the following read/write attributes:
|
||||||
This file exists only if the pin can be configured as an
|
This file exists only if the pin can be configured as an
|
||||||
interrupt generating input pin.
|
interrupt generating input pin.
|
||||||
|
|
||||||
GPIO controllers have paths like /sys/class/gpio/chipchip42/ (for the
|
GPIO controllers have paths like /sys/class/gpio/gpiochip42/ (for the
|
||||||
controller implementing GPIOs starting at #42) and have the following
|
controller implementing GPIOs starting at #42) and have the following
|
||||||
read-only attributes:
|
read-only attributes:
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ Supported chips:
|
||||||
|
|
||||||
Author: Darrick J. Wong
|
Author: Darrick J. Wong
|
||||||
|
|
||||||
|
This driver is depreacted, please use the adt7475 driver instead.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
|
@ -1,87 +1,117 @@
|
||||||
This describes the interface for the ADT7475 driver:
|
Kernel driver adt7475
|
||||||
|
=====================
|
||||||
|
|
||||||
(there are 4 fans, numbered fan1 to fan4):
|
Supported chips:
|
||||||
|
* Analog Devices ADT7473
|
||||||
|
Prefix: 'adt7473'
|
||||||
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
||||||
|
Datasheet: Publicly available at the On Semiconductors website
|
||||||
|
* Analog Devices ADT7475
|
||||||
|
Prefix: 'adt7475'
|
||||||
|
Addresses scanned: I2C 0x2E
|
||||||
|
Datasheet: Publicly available at the On Semiconductors website
|
||||||
|
* Analog Devices ADT7476
|
||||||
|
Prefix: 'adt7476'
|
||||||
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
||||||
|
Datasheet: Publicly available at the On Semiconductors website
|
||||||
|
* Analog Devices ADT7490
|
||||||
|
Prefix: 'adt7490'
|
||||||
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
||||||
|
Datasheet: Publicly available at the On Semiconductors website
|
||||||
|
|
||||||
fanX_input Read the current speed of the fan (in RPMs)
|
Authors:
|
||||||
fanX_min Read/write the minimum speed of the fan. Dropping
|
Jordan Crouse
|
||||||
below this sets an alarm.
|
Hans de Goede
|
||||||
|
Darrick J. Wong (documentation)
|
||||||
|
Jean Delvare
|
||||||
|
|
||||||
(there are three PWMs, numbered pwm1 to pwm3):
|
|
||||||
|
|
||||||
pwmX Read/write the current duty cycle of the PWM. Writes
|
Description
|
||||||
only have effect when auto mode is turned off (see
|
-----------
|
||||||
below). Range is 0 - 255.
|
|
||||||
|
|
||||||
pwmX_enable Fan speed control method:
|
This driver implements support for the Analog Devices ADT7473, ADT7475,
|
||||||
|
ADT7476 and ADT7490 chip family. The ADT7473 and ADT7475 differ only in
|
||||||
|
minor details. The ADT7476 has additional features, including extra voltage
|
||||||
|
measurement inputs and VID support. The ADT7490 also has additional
|
||||||
|
features, including extra voltage measurement inputs and PECI support. All
|
||||||
|
the supported chips will be collectively designed by the name "ADT747x" in
|
||||||
|
the rest of this document.
|
||||||
|
|
||||||
0 - No control (fan at full speed)
|
The ADT747x uses the 2-wire interface compatible with the SMBus 2.0
|
||||||
1 - Manual fan speed control (using pwm[1-*])
|
specification. Using an analog to digital converter it measures three (3)
|
||||||
2 - Automatic fan speed control
|
temperatures and two (2) or more voltages. It has four (4) 16-bit counters
|
||||||
|
for measuring fan speed. There are three (3) PWM outputs that can be used
|
||||||
|
to control fan speed.
|
||||||
|
|
||||||
pwmX_auto_channels_temp Select which channels affect this PWM
|
A sophisticated control system for the PWM outputs is designed into the
|
||||||
|
ADT747x that allows fan speed to be adjusted automatically based on any of the
|
||||||
|
three temperature sensors. Each PWM output is individually adjustable and
|
||||||
|
programmable. Once configured, the ADT747x will adjust the PWM outputs in
|
||||||
|
response to the measured temperatures without further host intervention.
|
||||||
|
This feature can also be disabled for manual control of the PWM's.
|
||||||
|
|
||||||
1 - TEMP1 controls PWM
|
Each of the measured inputs (voltage, temperature, fan speed) has
|
||||||
2 - TEMP2 controls PWM
|
corresponding high/low limit values. The ADT747x will signal an ALARM if
|
||||||
4 - TEMP3 controls PWM
|
any measured value exceeds either limit.
|
||||||
6 - TEMP2 and TEMP3 control PWM
|
|
||||||
7 - All three inputs control PWM
|
|
||||||
|
|
||||||
pwmX_freq Read/write the PWM frequency in Hz. The number
|
The ADT747x samples all inputs continuously. The driver will not read
|
||||||
should be one of the following:
|
the registers more often than once every other second. Further,
|
||||||
|
configuration data is only read once per minute.
|
||||||
|
|
||||||
11 Hz
|
Chip Differences Summary
|
||||||
14 Hz
|
------------------------
|
||||||
22 Hz
|
|
||||||
29 Hz
|
|
||||||
35 Hz
|
|
||||||
44 Hz
|
|
||||||
58 Hz
|
|
||||||
88 Hz
|
|
||||||
|
|
||||||
pwmX_auto_point1_pwm Read/write the minimum PWM duty cycle in automatic mode
|
ADT7473:
|
||||||
|
* 2 voltage inputs
|
||||||
|
* system acoustics optimizations (not implemented)
|
||||||
|
|
||||||
pwmX_auto_point2_pwm Read/write the maximum PWM duty cycle in automatic mode
|
ADT7475:
|
||||||
|
* 2 voltage inputs
|
||||||
|
|
||||||
(there are three temperature settings numbered temp1 to temp3):
|
ADT7476:
|
||||||
|
* 5 voltage inputs
|
||||||
|
* VID support
|
||||||
|
|
||||||
tempX_input Read the current temperature. The value is in milli
|
ADT7490:
|
||||||
degrees of Celsius.
|
* 6 voltage inputs
|
||||||
|
* 1 Imon input (not implemented)
|
||||||
|
* PECI support (not implemented)
|
||||||
|
* 2 GPIO pins (not implemented)
|
||||||
|
* system acoustics optimizations (not implemented)
|
||||||
|
|
||||||
tempX_max Read/write the upper temperature limit - exceeding this
|
Special Features
|
||||||
will cause an alarm.
|
----------------
|
||||||
|
|
||||||
tempX_min Read/write the lower temperature limit - exceeding this
|
The ADT747x has a 10-bit ADC and can therefore measure temperatures
|
||||||
will cause an alarm.
|
with a resolution of 0.25 degree Celsius. Temperature readings can be
|
||||||
|
configured either for two's complement format or "Offset 64" format,
|
||||||
|
wherein 64 is subtracted from the raw value to get the temperature value.
|
||||||
|
|
||||||
tempX_offset Read/write the temperature adjustment offset
|
The datasheet is very detailed and describes a procedure for determining
|
||||||
|
an optimal configuration for the automatic PWM control.
|
||||||
|
|
||||||
tempX_crit Read/write the THERM limit for remote1.
|
Fan Speed Control
|
||||||
|
-----------------
|
||||||
|
|
||||||
tempX_crit_hyst Set the temperature value below crit where the
|
The driver exposes two trip points per PWM channel.
|
||||||
fans will stay on - this helps drive the temperature
|
|
||||||
low enough so it doesn't stay near the edge and
|
|
||||||
cause THERM to keep tripping.
|
|
||||||
|
|
||||||
tempX_auto_point1_temp Read/write the minimum temperature where the fans will
|
point1: Set the PWM speed at the lower temperature bound
|
||||||
turn on in automatic mode.
|
point2: Set the PWM speed at the higher temperature bound
|
||||||
|
|
||||||
tempX_auto_point2_temp Read/write the maximum temperature over which the fans
|
The ADT747x will scale the PWM linearly between the lower and higher PWM
|
||||||
will run in automatic mode. tempX_auto_point1_temp
|
speed when the temperature is between the two temperature boundaries.
|
||||||
and tempX_auto_point2_temp together define the
|
Temperature boundaries are associated to temperature channels rather than
|
||||||
range of automatic control.
|
PWM outputs, and a given PWM output can be controlled by several temperature
|
||||||
|
channels. As a result, the ADT747x may compute more than one PWM value
|
||||||
|
for a channel at a given time, in which case the maximum value (fastest
|
||||||
|
fan speed) is applied. PWM values range from 0 (off) to 255 (full speed).
|
||||||
|
|
||||||
tempX_alarm Read a 1 if the max/min alarm is set
|
Fan speed may be set to maximum when the temperature sensor associated with
|
||||||
tempX_fault Read a 1 if either temp1 or temp3 diode has a fault
|
the PWM control exceeds temp#_max.
|
||||||
|
|
||||||
(There are two voltage settings, in1 and in2):
|
Notes
|
||||||
|
-----
|
||||||
|
|
||||||
inX_input Read the current voltage on VCC. Value is in
|
The nVidia binary driver presents an ADT7473 chip via an on-card i2c bus.
|
||||||
millivolts.
|
Unfortunately, they fail to set the i2c adapter class, so this driver may
|
||||||
|
fail to find the chip until the nvidia driver is patched.
|
||||||
inX_min read/write the minimum voltage limit.
|
|
||||||
Dropping below this causes an alarm.
|
|
||||||
|
|
||||||
inX_max read/write the maximum voltage limit.
|
|
||||||
Exceeding this causes an alarm.
|
|
||||||
|
|
||||||
inX_alarm Read a 1 if the max/min alarm is set.
|
|
||||||
|
|
|
@ -14,6 +14,10 @@ Supported chips:
|
||||||
Prefix: 'f71882fg'
|
Prefix: 'f71882fg'
|
||||||
Addresses scanned: none, address read from Super I/O config space
|
Addresses scanned: none, address read from Super I/O config space
|
||||||
Datasheet: Available from the Fintek website
|
Datasheet: Available from the Fintek website
|
||||||
|
* Fintek F71889FG
|
||||||
|
Prefix: 'f71889fg'
|
||||||
|
Addresses scanned: none, address read from Super I/O config space
|
||||||
|
Datasheet: Should become available on the Fintek website soon
|
||||||
* Fintek F8000
|
* Fintek F8000
|
||||||
Prefix: 'f8000'
|
Prefix: 'f8000'
|
||||||
Addresses scanned: none, address read from Super I/O config space
|
Addresses scanned: none, address read from Super I/O config space
|
||||||
|
@ -51,6 +55,12 @@ supported. The right one to use depends on external circuitry on the
|
||||||
motherboard, so the driver assumes that the BIOS set the method
|
motherboard, so the driver assumes that the BIOS set the method
|
||||||
properly.
|
properly.
|
||||||
|
|
||||||
|
Note that the lowest numbered temperature zone trip point corresponds to
|
||||||
|
to the border between the highest and one but highest temperature zones, and
|
||||||
|
vica versa. So the temperature zone trip points 1-4 (or 1-2) go from high temp
|
||||||
|
to low temp! This is how things are implemented in the IC, and the driver
|
||||||
|
mimicks this.
|
||||||
|
|
||||||
There are 2 modes to specify the speed of the fan, PWM duty cycle (or DC
|
There are 2 modes to specify the speed of the fan, PWM duty cycle (or DC
|
||||||
voltage) mode, where 0-100% duty cycle (0-100% of 12V) is specified. And RPM
|
voltage) mode, where 0-100% duty cycle (0-100% of 12V) is specified. And RPM
|
||||||
mode where the actual RPM of the fan (as measured) is controlled and the speed
|
mode where the actual RPM of the fan (as measured) is controlled and the speed
|
||||||
|
|
|
@ -86,7 +86,6 @@ The IT8712F and IT8716F additionally feature VID inputs, used to report
|
||||||
the Vcore voltage of the processor. The early IT8712F have 5 VID pins,
|
the Vcore voltage of the processor. The early IT8712F have 5 VID pins,
|
||||||
the IT8716F and late IT8712F have 6. They are shared with other functions
|
the IT8716F and late IT8712F have 6. They are shared with other functions
|
||||||
though, so the functionality may not be available on a given system.
|
though, so the functionality may not be available on a given system.
|
||||||
The driver dumbly assume it is there.
|
|
||||||
|
|
||||||
The IT8718F and IT8720F also features VID inputs (up to 8 pins) but the value
|
The IT8718F and IT8720F also features VID inputs (up to 8 pins) but the value
|
||||||
is stored in the Super-I/O configuration space. Due to technical limitations,
|
is stored in the Super-I/O configuration space. Due to technical limitations,
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
Kernel driver mc13783-adc
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Supported chips:
|
||||||
|
* Freescale Atlas MC13783
|
||||||
|
Prefix: 'mc13783_adc'
|
||||||
|
Datasheet: http://www.freescale.com/files/rf_if/doc/data_sheet/MC13783.pdf?fsrch=1
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
Sascha Hauer <s.hauer@pengutronix.de>
|
||||||
|
Luotao Fu <l.fu@pengutronix.de>
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The Freescale MC13783 is a Power Management and Audio Circuit. Among
|
||||||
|
other things it contains a 10-bit A/D converter. The converter has 16
|
||||||
|
channels which can be used in different modes.
|
||||||
|
The A/D converter has a resolution of 2.25mV. Channels 0-4 have
|
||||||
|
a dedicated meaning with chip internal scaling applied. Channels 5-7
|
||||||
|
can be used as general purpose inputs or alternatively in a dedicated
|
||||||
|
mode. Channels 12-15 are occupied by the touchscreen if it's active.
|
||||||
|
|
||||||
|
Currently the driver only supports channels 2 and 5-15 with no alternative
|
||||||
|
modes for channels 5-7.
|
||||||
|
|
||||||
|
See this table for the meaning of the different channels and their chip
|
||||||
|
internal scaling:
|
||||||
|
|
||||||
|
Channel Signal Input Range Scaling
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V
|
||||||
|
1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20
|
||||||
|
2 Application Supply (BP) 2.50 - 4.65V -2.40V
|
||||||
|
3 Charger Voltage (CHRGRAW) 0 - 10V / /5
|
||||||
|
0 - 20V /10
|
||||||
|
4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25V - 0.25V x4
|
||||||
|
5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No
|
||||||
|
6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No /
|
||||||
|
1.50 - 3.50V -1.20V
|
||||||
|
7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No /
|
||||||
|
0 - 2.55V / x0.9 / No
|
||||||
|
8 General Purpose ADIN8 0 - 2.30V No
|
||||||
|
9 General Purpose ADIN9 0 - 2.30V No
|
||||||
|
10 General Purpose ADIN10 0 - 2.30V No
|
||||||
|
11 General Purpose ADIN11 0 - 2.30V No
|
||||||
|
12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.30V No
|
||||||
|
13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.30V No
|
||||||
|
14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.30V No
|
||||||
|
15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.30V No
|
|
@ -225,8 +225,6 @@ pwm[1-*]_auto_point[1-*]_temp_hyst
|
||||||
to PWM output channels.
|
to PWM output channels.
|
||||||
RW
|
RW
|
||||||
|
|
||||||
OR
|
|
||||||
|
|
||||||
temp[1-*]_auto_point[1-*]_pwm
|
temp[1-*]_auto_point[1-*]_pwm
|
||||||
temp[1-*]_auto_point[1-*]_temp
|
temp[1-*]_auto_point[1-*]_temp
|
||||||
temp[1-*]_auto_point[1-*]_temp_hyst
|
temp[1-*]_auto_point[1-*]_temp_hyst
|
||||||
|
@ -235,6 +233,15 @@ temp[1-*]_auto_point[1-*]_temp_hyst
|
||||||
to temperature channels.
|
to temperature channels.
|
||||||
RW
|
RW
|
||||||
|
|
||||||
|
There is a third case where trip points are associated to both PWM output
|
||||||
|
channels and temperature channels: the PWM values are associated to PWM
|
||||||
|
output channels while the temperature values are associated to temperature
|
||||||
|
channels. In that case, the result is determined by the mapping between
|
||||||
|
temperature inputs and PWM outputs. When several temperature inputs are
|
||||||
|
mapped to a given PWM output, this leads to several candidate PWM values.
|
||||||
|
The actual result is up to the chip, but in general the highest candidate
|
||||||
|
value (fastest fan speed) wins.
|
||||||
|
|
||||||
|
|
||||||
****************
|
****************
|
||||||
* Temperatures *
|
* Temperatures *
|
||||||
|
|
|
@ -32,8 +32,6 @@ Authors:
|
||||||
Module Parameters
|
Module Parameters
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
* force_addr: int
|
|
||||||
Initialize the ISA address of the sensors
|
|
||||||
* force_i2c: int
|
* force_i2c: int
|
||||||
Initialize the I2C address of the sensors
|
Initialize the I2C address of the sensors
|
||||||
* init: int
|
* init: int
|
||||||
|
@ -70,3 +68,30 @@ doesn't help, you may just ignore the bogus VID reading with no harm done.
|
||||||
For further information on this driver see the w83781d driver documentation.
|
For further information on this driver see the w83781d driver documentation.
|
||||||
|
|
||||||
[1] http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/vid
|
[1] http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/vid
|
||||||
|
|
||||||
|
Forcing the address
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
The driver used to have a module parameter named force_addr, which could
|
||||||
|
be used to force the base I/O address of the hardware monitoring block.
|
||||||
|
This was meant as a workaround for mainboards with a broken BIOS. This
|
||||||
|
module parameter is gone for technical reasons. If you need this feature,
|
||||||
|
you can obtain the same result by using the isaset tool (part of
|
||||||
|
lm-sensors) before loading the driver:
|
||||||
|
|
||||||
|
# Enter the Super I/O config space
|
||||||
|
isaset -y -f 0x2e 0x87
|
||||||
|
isaset -y -f 0x2e 0x87
|
||||||
|
|
||||||
|
# Select the hwmon logical device
|
||||||
|
isaset -y 0x2e 0x2f 0x07 0x0b
|
||||||
|
|
||||||
|
# Set the base I/O address (to 0x290 in this example)
|
||||||
|
isaset -y 0x2e 0x2f 0x60 0x02
|
||||||
|
isaset -y 0x2e 0x2f 0x61 0x90
|
||||||
|
|
||||||
|
# Exit the Super-I/O config space
|
||||||
|
isaset -y -f 0x2e 0xaa
|
||||||
|
|
||||||
|
The above sequence assumes a Super-I/O config space at 0x2e/0x2f, but
|
||||||
|
0x4e/0x4f is also possible.
|
||||||
|
|
|
@ -304,7 +304,7 @@ static void *map_zeroed_pages(unsigned int num)
|
||||||
addr = mmap(NULL, getpagesize() * num,
|
addr = mmap(NULL, getpagesize() * num,
|
||||||
PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, fd, 0);
|
PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, fd, 0);
|
||||||
if (addr == MAP_FAILED)
|
if (addr == MAP_FAILED)
|
||||||
err(1, "Mmaping %u pages of /dev/zero", num);
|
err(1, "Mmapping %u pages of /dev/zero", num);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* One neat mmap feature is that you can close the fd, and it
|
* One neat mmap feature is that you can close the fd, and it
|
||||||
|
|
|
@ -257,6 +257,8 @@ characters, each representing a particular tainted value.
|
||||||
|
|
||||||
10: 'W' if a warning has previously been issued by the kernel.
|
10: 'W' if a warning has previously been issued by the kernel.
|
||||||
|
|
||||||
|
11: 'C' if a staging driver has been loaded.
|
||||||
|
|
||||||
The primary reason for the 'Tainted: ' string is to tell kernel
|
The primary reason for the 'Tainted: ' string is to tell kernel
|
||||||
debuggers if this is a clean kernel or if anything unusual has
|
debuggers if this is a clean kernel or if anything unusual has
|
||||||
occurred. Tainting is permanent: even if an offending module is
|
occurred. Tainting is permanent: even if an offending module is
|
||||||
|
|
|
@ -104,7 +104,7 @@ to set the limit to 500mA when supplying power.
|
||||||
|
|
||||||
Consumers can control their supply current limit by calling :-
|
Consumers can control their supply current limit by calling :-
|
||||||
|
|
||||||
int regulator_set_current_limit(regulator, min_uV, max_uV);
|
int regulator_set_current_limit(regulator, min_uA, max_uA);
|
||||||
|
|
||||||
Where min_uA and max_uA are the minimum and maximum acceptable current limit in
|
Where min_uA and max_uA are the minimum and maximum acceptable current limit in
|
||||||
microamps.
|
microamps.
|
||||||
|
|
|
@ -1,3 +1,65 @@
|
||||||
|
1 Release Date : Tues. July 28, 2009 10:12:45 PST 2009 -
|
||||||
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
Bo Yang
|
||||||
|
|
||||||
|
2 Current Version : 00.00.04.12
|
||||||
|
3 Older Version : 00.00.04.10
|
||||||
|
|
||||||
|
1. Change the AEN sys PD update from scsi_scan to
|
||||||
|
scsi_add_device and scsi_remove_device.
|
||||||
|
2. Takeoff the debug print-out in aen_polling routine.
|
||||||
|
|
||||||
|
1 Release Date : Thur. July 02, 2009 10:12:45 PST 2009 -
|
||||||
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
Bo Yang
|
||||||
|
|
||||||
|
2 Current Version : 00.00.04.10
|
||||||
|
3 Older Version : 00.00.04.08
|
||||||
|
|
||||||
|
1. Add the 3 mins timeout during the controller initialize.
|
||||||
|
2. Add the fix for 64bit sense date errors.
|
||||||
|
|
||||||
|
1 Release Date : Tues. May 05, 2009 10:12:45 PST 2009 -
|
||||||
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
Bo Yang
|
||||||
|
|
||||||
|
2 Current Version : 00.00.04.08
|
||||||
|
3 Older Version : 00.00.04.06
|
||||||
|
|
||||||
|
1. Add the fix of pending in FW after deleted the logic drives.
|
||||||
|
2. Add the fix of deallocating memory after get pdlist.
|
||||||
|
|
||||||
|
1 Release Date : Tues. March 26, 2009 10:12:45 PST 2009 -
|
||||||
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
Bo Yang
|
||||||
|
|
||||||
|
2 Current Version : 00.00.04.06
|
||||||
|
3 Older Version : 00.00.04.04
|
||||||
|
|
||||||
|
1. Add the fix of the driver cmd empty fix of the driver cmd empty.
|
||||||
|
2. Add the fix of the driver MSM AEN CMD cause the system slow.
|
||||||
|
|
||||||
|
1 Release Date : Tues. March 03, 2009 10:12:45 PST 2009 -
|
||||||
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
Bo Yang
|
||||||
|
|
||||||
|
2 Current Version : 00.00.04.04
|
||||||
|
3 Older Version : 00.00.04.01
|
||||||
|
|
||||||
|
1. Add the Tape drive fix to the driver: If the command is for
|
||||||
|
the tape device, set the pthru timeout to the os layer timeout value.
|
||||||
|
|
||||||
|
2. Add Poll_wait mechanism to Gen-2 Linux driv.
|
||||||
|
In the aen handler, driver needs to wakeup poll handler similar to
|
||||||
|
the way it raises SIGIO.
|
||||||
|
|
||||||
|
3. Add new controller new SAS2 support to the driver.
|
||||||
|
|
||||||
|
4. Report the unconfigured PD (system PD) to OS.
|
||||||
|
|
||||||
|
5. Add the IEEE SGL support to the driver
|
||||||
|
|
||||||
|
6. Reasign the Application cmds to SAS2 controller
|
||||||
|
|
||||||
1 Release Date : Thur.July. 24 11:41:51 PST 2008 -
|
1 Release Date : Thur.July. 24 11:41:51 PST 2008 -
|
||||||
(emaild-id:megaraidlinux@lsi.com)
|
(emaild-id:megaraidlinux@lsi.com)
|
||||||
|
@ -185,7 +247,7 @@ ii. FW enables WCE bit in Mode Sense cmd for drives that are configured
|
||||||
Disks are exposed with WCE=1. User is advised to enable Write Back
|
Disks are exposed with WCE=1. User is advised to enable Write Back
|
||||||
mode only when the controller has battery backup. At this time
|
mode only when the controller has battery backup. At this time
|
||||||
Synhronize cache is not supported by the FW. Driver will short-cycle
|
Synhronize cache is not supported by the FW. Driver will short-cycle
|
||||||
the cmd and return sucess without sending down to FW.
|
the cmd and return success without sending down to FW.
|
||||||
|
|
||||||
1 Release Date : Sun Jan. 14 11:21:32 PDT 2007 -
|
1 Release Date : Sun Jan. 14 11:21:32 PDT 2007 -
|
||||||
Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
|
Sumant Patro <Sumant.Patro@lsil.com>/Bo Yang
|
||||||
|
|
|
@ -126,6 +126,7 @@ ALC882/883/885/888/889
|
||||||
mb5 Macbook 5,1
|
mb5 Macbook 5,1
|
||||||
mbp3 Macbook Pro rev3
|
mbp3 Macbook Pro rev3
|
||||||
imac24 iMac 24'' with jack detection
|
imac24 iMac 24'' with jack detection
|
||||||
|
imac91 iMac 9,1
|
||||||
w2jc ASUS W2JC
|
w2jc ASUS W2JC
|
||||||
3stack-2ch-dig 3-jack with SPDIF I/O (ALC883)
|
3stack-2ch-dig 3-jack with SPDIF I/O (ALC883)
|
||||||
alc883-6stack-dig 6-jack digital with SPDIF I/O (ALC883)
|
alc883-6stack-dig 6-jack digital with SPDIF I/O (ALC883)
|
||||||
|
|
|
@ -624,11 +624,13 @@ hda-verb. The program gives you an easy-to-use GUI stuff for showing
|
||||||
the widget information and adjusting the amp values, as well as the
|
the widget information and adjusting the amp values, as well as the
|
||||||
proc-compatible output.
|
proc-compatible output.
|
||||||
|
|
||||||
The hda-analyzer is a part of alsa.git repository in
|
The hda-analyzer:
|
||||||
alsa-project.org:
|
|
||||||
|
|
||||||
- http://git.alsa-project.org/?p=alsa.git;a=tree;f=hda-analyzer
|
- http://git.alsa-project.org/?p=alsa.git;a=tree;f=hda-analyzer
|
||||||
|
|
||||||
|
is a part of alsa.git repository in alsa-project.org:
|
||||||
|
|
||||||
|
- git://git.alsa-project.org/alsa.git
|
||||||
|
|
||||||
Codecgraph
|
Codecgraph
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
|
@ -538,7 +538,7 @@ SPI MESSAGE QUEUE
|
||||||
The bulk of the driver will be managing the I/O queue fed by transfer().
|
The bulk of the driver will be managing the I/O queue fed by transfer().
|
||||||
|
|
||||||
That queue could be purely conceptual. For example, a driver used only
|
That queue could be purely conceptual. For example, a driver used only
|
||||||
for low-frequency sensor acess might be fine using synchronous PIO.
|
for low-frequency sensor access might be fine using synchronous PIO.
|
||||||
|
|
||||||
But the queue will probably be very real, using message->queue, PIO,
|
But the queue will probably be very real, using message->queue, PIO,
|
||||||
often DMA (especially if the root filesystem is in SPI flash), and
|
often DMA (especially if the root filesystem is in SPI flash), and
|
||||||
|
|
|
@ -139,9 +139,9 @@ core_pattern is used to specify a core dumpfile pattern name.
|
||||||
core_pipe_limit:
|
core_pipe_limit:
|
||||||
|
|
||||||
This sysctl is only applicable when core_pattern is configured to pipe core
|
This sysctl is only applicable when core_pattern is configured to pipe core
|
||||||
files to user space helper a (when the first character of core_pattern is a '|',
|
files to a user space helper (when the first character of core_pattern is a '|',
|
||||||
see above). When collecting cores via a pipe to an application, it is
|
see above). When collecting cores via a pipe to an application, it is
|
||||||
occasionally usefull for the collecting application to gather data about the
|
occasionally useful for the collecting application to gather data about the
|
||||||
crashing process from its /proc/pid directory. In order to do this safely, the
|
crashing process from its /proc/pid directory. In order to do this safely, the
|
||||||
kernel must wait for the collecting process to exit, so as not to remove the
|
kernel must wait for the collecting process to exit, so as not to remove the
|
||||||
crashing processes proc files prematurely. This in turn creates the possibility
|
crashing processes proc files prematurely. This in turn creates the possibility
|
||||||
|
@ -152,7 +152,7 @@ applications in parallel. If this value is exceeded, then those crashing
|
||||||
processes above that value are noted via the kernel log and their cores are
|
processes above that value are noted via the kernel log and their cores are
|
||||||
skipped. 0 is a special value, indicating that unlimited processes may be
|
skipped. 0 is a special value, indicating that unlimited processes may be
|
||||||
captured in parallel, but that no waiting will take place (i.e. the collecting
|
captured in parallel, but that no waiting will take place (i.e. the collecting
|
||||||
process is not guaranteed access to /proc/<crahing pid>/). This value defaults
|
process is not guaranteed access to /proc/<crashing pid>/). This value defaults
|
||||||
to 0.
|
to 0.
|
||||||
|
|
||||||
==============================================================
|
==============================================================
|
||||||
|
|
|
@ -370,7 +370,7 @@ The default is 1 percent.
|
||||||
mmap_min_addr
|
mmap_min_addr
|
||||||
|
|
||||||
This file indicates the amount of address space which a user process will
|
This file indicates the amount of address space which a user process will
|
||||||
be restricted from mmaping. Since kernel null dereference bugs could
|
be restricted from mmapping. Since kernel null dereference bugs could
|
||||||
accidentally operate based on the information in the first couple of pages
|
accidentally operate based on the information in the first couple of pages
|
||||||
of memory userspace processes should not be allowed to write to them. By
|
of memory userspace processes should not be allowed to write to them. By
|
||||||
default this value is set to 0 and no protections will be enforced by the
|
default this value is set to 0 and no protections will be enforced by the
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
The High Precision Event Timer (HPET) hardware follows a specification
|
The High Precision Event Timer (HPET) hardware follows a specification
|
||||||
by Intel and Microsoft which can be found at
|
by Intel and Microsoft which can be found at
|
||||||
|
|
||||||
http://www.intel.com/technology/architecture/hpetspec.htm
|
http://www.intel.com/hardwaredesign/hpetspec_1.pdf
|
||||||
|
|
||||||
Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")
|
Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")
|
||||||
and up to 32 comparators. Normally three or more comparators are provided,
|
and up to 32 comparators. Normally three or more comparators are provided,
|
||||||
|
|
|
@ -24,3 +24,5 @@
|
||||||
23 -> Magic-Pro ProHDTV Extreme 2 [14f1:8657]
|
23 -> Magic-Pro ProHDTV Extreme 2 [14f1:8657]
|
||||||
24 -> Hauppauge WinTV-HVR1850 [0070:8541]
|
24 -> Hauppauge WinTV-HVR1850 [0070:8541]
|
||||||
25 -> Compro VideoMate E800 [1858:e800]
|
25 -> Compro VideoMate E800 [1858:e800]
|
||||||
|
26 -> Hauppauge WinTV-HVR1290 [0070:8551]
|
||||||
|
27 -> Mygica X8558 PRO DMB-TH [14f1:8578]
|
||||||
|
|
|
@ -81,3 +81,4 @@
|
||||||
80 -> Hauppauge WinTV-IR Only [0070:9290]
|
80 -> Hauppauge WinTV-IR Only [0070:9290]
|
||||||
81 -> Leadtek WinFast DTV1800 Hybrid [107d:6654]
|
81 -> Leadtek WinFast DTV1800 Hybrid [107d:6654]
|
||||||
82 -> WinFast DTV2000 H rev. J [107d:6f2b]
|
82 -> WinFast DTV2000 H rev. J [107d:6f2b]
|
||||||
|
83 -> Prof 7301 DVB-S/S2 [b034:3034]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
0 -> Unknown EM2800 video grabber (em2800) [eb1a:2800]
|
0 -> Unknown EM2800 video grabber (em2800) [eb1a:2800]
|
||||||
1 -> Unknown EM2750/28xx video grabber (em2820/em2840) [eb1a:2710,eb1a:2820,eb1a:2821,eb1a:2860,eb1a:2861,eb1a:2870,eb1a:2881,eb1a:2883,eb1a:2868]
|
1 -> Unknown EM2750/28xx video grabber (em2820/em2840) [eb1a:2710,eb1a:2820,eb1a:2821,eb1a:2860,eb1a:2861,eb1a:2862,eb1a:2870,eb1a:2881,eb1a:2883,eb1a:2868]
|
||||||
2 -> Terratec Cinergy 250 USB (em2820/em2840) [0ccd:0036]
|
2 -> Terratec Cinergy 250 USB (em2820/em2840) [0ccd:0036]
|
||||||
3 -> Pinnacle PCTV USB 2 (em2820/em2840) [2304:0208]
|
3 -> Pinnacle PCTV USB 2 (em2820/em2840) [2304:0208]
|
||||||
4 -> Hauppauge WinTV USB 2 (em2820/em2840) [2040:4200,2040:4201]
|
4 -> Hauppauge WinTV USB 2 (em2820/em2840) [2040:4200,2040:4201]
|
||||||
|
@ -69,3 +69,4 @@
|
||||||
71 -> Silvercrest Webcam 1.3mpix (em2820/em2840)
|
71 -> Silvercrest Webcam 1.3mpix (em2820/em2840)
|
||||||
72 -> Gadmei UTV330+ (em2861)
|
72 -> Gadmei UTV330+ (em2861)
|
||||||
73 -> Reddo DVB-C USB TV Box (em2870)
|
73 -> Reddo DVB-C USB TV Box (em2870)
|
||||||
|
74 -> Actionmaster/LinXcel/Digitus VC211A (em2800)
|
||||||
|
|
|
@ -172,3 +172,5 @@
|
||||||
171 -> Beholder BeholdTV X7 [5ace:7595]
|
171 -> Beholder BeholdTV X7 [5ace:7595]
|
||||||
172 -> RoverMedia TV Link Pro FM [19d1:0138]
|
172 -> RoverMedia TV Link Pro FM [19d1:0138]
|
||||||
173 -> Zolid Hybrid TV Tuner PCI [1131:2004]
|
173 -> Zolid Hybrid TV Tuner PCI [1131:2004]
|
||||||
|
174 -> Asus Europa Hybrid OEM [1043:4847]
|
||||||
|
175 -> Leadtek Winfast DTV1000S [107d:6655]
|
||||||
|
|
|
@ -6,7 +6,8 @@ The modules are:
|
||||||
|
|
||||||
xxxx vend:prod
|
xxxx vend:prod
|
||||||
----
|
----
|
||||||
spca501 0000:0000 MystFromOri Unknow Camera
|
spca501 0000:0000 MystFromOri Unknown Camera
|
||||||
|
spca508 0130:0130 Clone Digital Webcam 11043
|
||||||
m5602 0402:5602 ALi Video Camera Controller
|
m5602 0402:5602 ALi Video Camera Controller
|
||||||
spca501 040a:0002 Kodak DVC-325
|
spca501 040a:0002 Kodak DVC-325
|
||||||
spca500 040a:0300 Kodak EZ200
|
spca500 040a:0300 Kodak EZ200
|
||||||
|
@ -37,6 +38,7 @@ ov519 041e:405f Creative Live! VISTA VF0330
|
||||||
ov519 041e:4060 Creative Live! VISTA VF0350
|
ov519 041e:4060 Creative Live! VISTA VF0350
|
||||||
ov519 041e:4061 Creative Live! VISTA VF0400
|
ov519 041e:4061 Creative Live! VISTA VF0400
|
||||||
ov519 041e:4064 Creative Live! VISTA VF0420
|
ov519 041e:4064 Creative Live! VISTA VF0420
|
||||||
|
ov519 041e:4067 Creative Live! Cam Video IM (VF0350)
|
||||||
ov519 041e:4068 Creative Live! VISTA VF0470
|
ov519 041e:4068 Creative Live! VISTA VF0470
|
||||||
spca561 0458:7004 Genius VideoCAM Express V2
|
spca561 0458:7004 Genius VideoCAM Express V2
|
||||||
sunplus 0458:7006 Genius Dsc 1.3 Smart
|
sunplus 0458:7006 Genius Dsc 1.3 Smart
|
||||||
|
@ -68,12 +70,12 @@ zc3xx 046d:08a3 Logitech QC Chat
|
||||||
zc3xx 046d:08a6 Logitech QCim
|
zc3xx 046d:08a6 Logitech QCim
|
||||||
zc3xx 046d:08a7 Logitech QuickCam Image
|
zc3xx 046d:08a7 Logitech QuickCam Image
|
||||||
zc3xx 046d:08a9 Logitech Notebook Deluxe
|
zc3xx 046d:08a9 Logitech Notebook Deluxe
|
||||||
zc3xx 046d:08aa Labtec Webcam Notebook
|
zc3xx 046d:08aa Labtec Webcam Notebook
|
||||||
zc3xx 046d:08ac Logitech QuickCam Cool
|
zc3xx 046d:08ac Logitech QuickCam Cool
|
||||||
zc3xx 046d:08ad Logitech QCCommunicate STX
|
zc3xx 046d:08ad Logitech QCCommunicate STX
|
||||||
zc3xx 046d:08ae Logitech QuickCam for Notebooks
|
zc3xx 046d:08ae Logitech QuickCam for Notebooks
|
||||||
zc3xx 046d:08af Logitech QuickCam Cool
|
zc3xx 046d:08af Logitech QuickCam Cool
|
||||||
zc3xx 046d:08b9 Logitech QC IM ???
|
zc3xx 046d:08b9 Logitech QuickCam Express
|
||||||
zc3xx 046d:08d7 Logitech QCam STX
|
zc3xx 046d:08d7 Logitech QCam STX
|
||||||
zc3xx 046d:08d9 Logitech QuickCam IM/Connect
|
zc3xx 046d:08d9 Logitech QuickCam IM/Connect
|
||||||
zc3xx 046d:08d8 Logitech Notebook Deluxe
|
zc3xx 046d:08d8 Logitech Notebook Deluxe
|
||||||
|
@ -82,7 +84,7 @@ zc3xx 046d:08dd Logitech QuickCam for Notebooks
|
||||||
spca500 046d:0900 Logitech Inc. ClickSmart 310
|
spca500 046d:0900 Logitech Inc. ClickSmart 310
|
||||||
spca500 046d:0901 Logitech Inc. ClickSmart 510
|
spca500 046d:0901 Logitech Inc. ClickSmart 510
|
||||||
sunplus 046d:0905 Logitech ClickSmart 820
|
sunplus 046d:0905 Logitech ClickSmart 820
|
||||||
tv8532 046d:0920 QC Express
|
tv8532 046d:0920 Logitech QuickCam Express
|
||||||
tv8532 046d:0921 Labtec Webcam
|
tv8532 046d:0921 Labtec Webcam
|
||||||
spca561 046d:0928 Logitech QC Express Etch2
|
spca561 046d:0928 Logitech QC Express Etch2
|
||||||
spca561 046d:0929 Labtec Webcam Elch2
|
spca561 046d:0929 Labtec Webcam Elch2
|
||||||
|
@ -91,7 +93,7 @@ spca561 046d:092b Labtec Webcam Plus
|
||||||
spca561 046d:092c Logitech QC chat Elch2
|
spca561 046d:092c Logitech QC chat Elch2
|
||||||
spca561 046d:092d Logitech QC Elch2
|
spca561 046d:092d Logitech QC Elch2
|
||||||
spca561 046d:092e Logitech QC Elch2
|
spca561 046d:092e Logitech QC Elch2
|
||||||
spca561 046d:092f Logitech QuickCam Express Plus
|
spca561 046d:092f Logitech QuickCam Express Plus
|
||||||
sunplus 046d:0960 Logitech ClickSmart 420
|
sunplus 046d:0960 Logitech ClickSmart 420
|
||||||
sunplus 0471:0322 Philips DMVC1300K
|
sunplus 0471:0322 Philips DMVC1300K
|
||||||
zc3xx 0471:0325 Philips SPC 200 NC
|
zc3xx 0471:0325 Philips SPC 200 NC
|
||||||
|
@ -187,7 +189,6 @@ sonixj 06f8:3004 Hercules Classic Silver
|
||||||
sonixj 06f8:3008 Hercules Deluxe Optical Glass
|
sonixj 06f8:3008 Hercules Deluxe Optical Glass
|
||||||
pac7311 06f8:3009 Hercules Classic Link
|
pac7311 06f8:3009 Hercules Classic Link
|
||||||
spca508 0733:0110 ViewQuest VQ110
|
spca508 0733:0110 ViewQuest VQ110
|
||||||
spca508 0130:0130 Clone Digital Webcam 11043
|
|
||||||
spca501 0733:0401 Intel Create and Share
|
spca501 0733:0401 Intel Create and Share
|
||||||
spca501 0733:0402 ViewQuest M318B
|
spca501 0733:0402 ViewQuest M318B
|
||||||
spca505 0733:0430 Intel PC Camera Pro
|
spca505 0733:0430 Intel PC Camera Pro
|
||||||
|
@ -202,6 +203,7 @@ spca500 084d:0003 D-Link DSC-350
|
||||||
spca500 08ca:0103 Aiptek PocketDV
|
spca500 08ca:0103 Aiptek PocketDV
|
||||||
sunplus 08ca:0104 Aiptek PocketDVII 1.3
|
sunplus 08ca:0104 Aiptek PocketDVII 1.3
|
||||||
sunplus 08ca:0106 Aiptek Pocket DV3100+
|
sunplus 08ca:0106 Aiptek Pocket DV3100+
|
||||||
|
mr97310a 08ca:0110 Trust Spyc@m 100
|
||||||
mr97310a 08ca:0111 Aiptek PenCam VGA+
|
mr97310a 08ca:0111 Aiptek PenCam VGA+
|
||||||
sunplus 08ca:2008 Aiptek Mini PenCam 2 M
|
sunplus 08ca:2008 Aiptek Mini PenCam 2 M
|
||||||
sunplus 08ca:2010 Aiptek PocketCam 3M
|
sunplus 08ca:2010 Aiptek PocketCam 3M
|
||||||
|
@ -222,7 +224,7 @@ pac207 093a:2460 Qtec Webcam 100
|
||||||
pac207 093a:2461 HP Webcam
|
pac207 093a:2461 HP Webcam
|
||||||
pac207 093a:2463 Philips SPC 220 NC
|
pac207 093a:2463 Philips SPC 220 NC
|
||||||
pac207 093a:2464 Labtec Webcam 1200
|
pac207 093a:2464 Labtec Webcam 1200
|
||||||
pac207 093a:2468 PAC207
|
pac207 093a:2468 Webcam WB-1400T
|
||||||
pac207 093a:2470 Genius GF112
|
pac207 093a:2470 Genius GF112
|
||||||
pac207 093a:2471 Genius VideoCam ge111
|
pac207 093a:2471 Genius VideoCam ge111
|
||||||
pac207 093a:2472 Genius VideoCam ge110
|
pac207 093a:2472 Genius VideoCam ge110
|
||||||
|
@ -230,7 +232,7 @@ pac207 093a:2474 Genius iLook 111
|
||||||
pac207 093a:2476 Genius e-Messenger 112
|
pac207 093a:2476 Genius e-Messenger 112
|
||||||
pac7311 093a:2600 PAC7311 Typhoon
|
pac7311 093a:2600 PAC7311 Typhoon
|
||||||
pac7311 093a:2601 Philips SPC 610 NC
|
pac7311 093a:2601 Philips SPC 610 NC
|
||||||
pac7311 093a:2603 PAC7312
|
pac7311 093a:2603 Philips SPC 500 NC
|
||||||
pac7311 093a:2608 Trust WB-3300p
|
pac7311 093a:2608 Trust WB-3300p
|
||||||
pac7311 093a:260e Gigaware VGA PC Camera, Trust WB-3350p, SIGMA cam 2350
|
pac7311 093a:260e Gigaware VGA PC Camera, Trust WB-3350p, SIGMA cam 2350
|
||||||
pac7311 093a:260f SnakeCam
|
pac7311 093a:260f SnakeCam
|
||||||
|
@ -239,6 +241,7 @@ pac7311 093a:2621 PAC731x
|
||||||
pac7311 093a:2622 Genius Eye 312
|
pac7311 093a:2622 Genius Eye 312
|
||||||
pac7311 093a:2624 PAC7302
|
pac7311 093a:2624 PAC7302
|
||||||
pac7311 093a:2626 Labtec 2200
|
pac7311 093a:2626 Labtec 2200
|
||||||
|
pac7311 093a:2628 Genius iLook 300
|
||||||
pac7311 093a:2629 Genious iSlim 300
|
pac7311 093a:2629 Genious iSlim 300
|
||||||
pac7311 093a:262a Webcam 300k
|
pac7311 093a:262a Webcam 300k
|
||||||
pac7311 093a:262c Philips SPC 230 NC
|
pac7311 093a:262c Philips SPC 230 NC
|
||||||
|
@ -250,7 +253,7 @@ vc032x 0ac8:0328 A4Tech PK-130MG
|
||||||
zc3xx 0ac8:301b Z-Star zc301b
|
zc3xx 0ac8:301b Z-Star zc301b
|
||||||
zc3xx 0ac8:303b Vimicro 0x303b
|
zc3xx 0ac8:303b Vimicro 0x303b
|
||||||
zc3xx 0ac8:305b Z-star Vimicro zc0305b
|
zc3xx 0ac8:305b Z-star Vimicro zc0305b
|
||||||
zc3xx 0ac8:307b Ldlc VC302+Ov7620
|
zc3xx 0ac8:307b PC Camera (ZS0211)
|
||||||
vc032x 0ac8:c001 Sony embedded vimicro
|
vc032x 0ac8:c001 Sony embedded vimicro
|
||||||
vc032x 0ac8:c002 Sony embedded vimicro
|
vc032x 0ac8:c002 Sony embedded vimicro
|
||||||
vc032x 0ac8:c301 Samsung Q1 Ultra Premium
|
vc032x 0ac8:c301 Samsung Q1 Ultra Premium
|
||||||
|
|
|
@ -164,7 +164,7 @@ Stereo/Mono and RDS subchannels
|
||||||
|
|
||||||
The device can also be configured using the available sub channels for
|
The device can also be configured using the available sub channels for
|
||||||
transmission. To do that use S/G_MODULATOR ioctl and configure txsubchans properly.
|
transmission. To do that use S/G_MODULATOR ioctl and configure txsubchans properly.
|
||||||
Refer to v4l2-spec for proper use of this ioctl.
|
Refer to the V4L2 API specification for proper use of this ioctl.
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
=======
|
=======
|
||||||
|
|
|
@ -66,3 +66,4 @@ Vendor Product Distributor Model
|
||||||
0x0a17 0x004e Pentax Optio 50
|
0x0a17 0x004e Pentax Optio 50
|
||||||
0x041e 0x405d Creative DiVi CAM 516
|
0x041e 0x405d Creative DiVi CAM 516
|
||||||
0x08ca 0x2102 Aiptek DV T300
|
0x08ca 0x2102 Aiptek DV T300
|
||||||
|
0x06d6 0x003d Trust Powerc@m 910Z
|
||||||
|
|
|
@ -301,7 +301,7 @@ static char *page_flag_name(uint64_t flags)
|
||||||
present = (flags >> i) & 1;
|
present = (flags >> i) & 1;
|
||||||
if (!page_flag_names[i]) {
|
if (!page_flag_names[i]) {
|
||||||
if (present)
|
if (present)
|
||||||
fatal("unkown flag bit %d\n", i);
|
fatal("unknown flag bit %d\n", i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
buf[j++] = present ? page_flag_names[i][0] : '_';
|
buf[j++] = present ? page_flag_names[i][0] : '_';
|
||||||
|
|
|
@ -245,7 +245,7 @@ been overwritten. Here a string of 8 characters was written into a slab that
|
||||||
has the length of 8 characters. However, a 8 character string needs a
|
has the length of 8 characters. However, a 8 character string needs a
|
||||||
terminating 0. That zero has overwritten the first byte of the Redzone field.
|
terminating 0. That zero has overwritten the first byte of the Redzone field.
|
||||||
After reporting the details of the issue encountered the FIX SLUB message
|
After reporting the details of the issue encountered the FIX SLUB message
|
||||||
tell us that SLUB has restored the Redzone to its proper value and then
|
tells us that SLUB has restored the Redzone to its proper value and then
|
||||||
system operations continue.
|
system operations continue.
|
||||||
|
|
||||||
Emergency operations:
|
Emergency operations:
|
||||||
|
|
61
MAINTAINERS
61
MAINTAINERS
|
@ -327,6 +327,13 @@ M: Colin Leroy <colin@colino.net>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/macintosh/therm_adt746x.c
|
F: drivers/macintosh/therm_adt746x.c
|
||||||
|
|
||||||
|
ADT7475 HARDWARE MONITOR DRIVER
|
||||||
|
M: Jean Delvare <khali@linux-fr.org>
|
||||||
|
L: lm-sensors@lm-sensors.org
|
||||||
|
S: Maintained
|
||||||
|
F: Documentation/hwmon/adt7475
|
||||||
|
F: drivers/hwmon/adt7475.c
|
||||||
|
|
||||||
ADVANSYS SCSI DRIVER
|
ADVANSYS SCSI DRIVER
|
||||||
M: Matthew Wilcox <matthew@wil.cx>
|
M: Matthew Wilcox <matthew@wil.cx>
|
||||||
L: linux-scsi@vger.kernel.org
|
L: linux-scsi@vger.kernel.org
|
||||||
|
@ -486,13 +493,6 @@ S: Maintained
|
||||||
F: drivers/net/appletalk/
|
F: drivers/net/appletalk/
|
||||||
F: net/appletalk/
|
F: net/appletalk/
|
||||||
|
|
||||||
APPLETOUCH TOUCHPAD DRIVER
|
|
||||||
M: Johannes Berg <johannes@sipsolutions.net>
|
|
||||||
L: linux-input@vger.kernel.org
|
|
||||||
S: Maintained
|
|
||||||
F: Documentation/input/appletouch.txt
|
|
||||||
F: drivers/input/mouse/appletouch.c
|
|
||||||
|
|
||||||
ARC FRAMEBUFFER DRIVER
|
ARC FRAMEBUFFER DRIVER
|
||||||
M: Jaya Kumar <jayalk@intworks.biz>
|
M: Jaya Kumar <jayalk@intworks.biz>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
@ -2423,7 +2423,9 @@ HARDWARE MONITORING
|
||||||
L: lm-sensors@lm-sensors.org
|
L: lm-sensors@lm-sensors.org
|
||||||
W: http://www.lm-sensors.org/
|
W: http://www.lm-sensors.org/
|
||||||
S: Orphan
|
S: Orphan
|
||||||
|
F: Documentation/hwmon/
|
||||||
F: drivers/hwmon/
|
F: drivers/hwmon/
|
||||||
|
F: include/linux/hwmon*.h
|
||||||
|
|
||||||
HARDWARE RANDOM NUMBER GENERATOR CORE
|
HARDWARE RANDOM NUMBER GENERATOR CORE
|
||||||
M: Matt Mackall <mpm@selenic.com>
|
M: Matt Mackall <mpm@selenic.com>
|
||||||
|
@ -3139,6 +3141,7 @@ S: Supported
|
||||||
F: Documentation/s390/kvm.txt
|
F: Documentation/s390/kvm.txt
|
||||||
F: arch/s390/include/asm/kvm*
|
F: arch/s390/include/asm/kvm*
|
||||||
F: arch/s390/kvm/
|
F: arch/s390/kvm/
|
||||||
|
F: drivers/s390/kvm/
|
||||||
|
|
||||||
KEXEC
|
KEXEC
|
||||||
M: Eric Biederman <ebiederm@xmission.com>
|
M: Eric Biederman <ebiederm@xmission.com>
|
||||||
|
@ -3318,6 +3321,12 @@ S: Maintained
|
||||||
F: Documentation/hwmon/lis3lv02d
|
F: Documentation/hwmon/lis3lv02d
|
||||||
F: drivers/hwmon/lis3lv02d.*
|
F: drivers/hwmon/lis3lv02d.*
|
||||||
|
|
||||||
|
LM73 HARDWARE MONITOR DRIVER
|
||||||
|
M: Guillaume Ligneul <guillaume.ligneul@gmail.com>
|
||||||
|
L: lm-sensors@lm-sensors.org
|
||||||
|
S: Maintained
|
||||||
|
F: drivers/hwmon/lm73.c
|
||||||
|
|
||||||
LM83 HARDWARE MONITOR DRIVER
|
LM83 HARDWARE MONITOR DRIVER
|
||||||
M: Jean Delvare <khali@linux-fr.org>
|
M: Jean Delvare <khali@linux-fr.org>
|
||||||
L: lm-sensors@lm-sensors.org
|
L: lm-sensors@lm-sensors.org
|
||||||
|
@ -3894,6 +3903,23 @@ L: linux-omap@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/video/omap/
|
F: drivers/video/omap/
|
||||||
|
|
||||||
|
OMAP DISPLAY SUBSYSTEM SUPPORT (DSS2)
|
||||||
|
M: Tomi Valkeinen <tomi.valkeinen@nokia.com>
|
||||||
|
L: linux-omap@vger.kernel.org
|
||||||
|
L: linux-fbdev@vger.kernel.org (moderated for non-subscribers)
|
||||||
|
S: Maintained
|
||||||
|
F: drivers/video/omap2/dss/
|
||||||
|
F: drivers/video/omap2/vrfb.c
|
||||||
|
F: drivers/video/omap2/vram.c
|
||||||
|
F: Documentation/arm/OMAP/DSS
|
||||||
|
|
||||||
|
OMAP FRAMEBUFFER SUPPORT (FOR DSS2)
|
||||||
|
M: Tomi Valkeinen <tomi.valkeinen@nokia.com>
|
||||||
|
L: linux-omap@vger.kernel.org
|
||||||
|
L: linux-fbdev@vger.kernel.org (moderated for non-subscribers)
|
||||||
|
S: Maintained
|
||||||
|
F: drivers/video/omap2/omapfb/
|
||||||
|
|
||||||
OMAP MMC SUPPORT
|
OMAP MMC SUPPORT
|
||||||
M: Jarkko Lavinen <jarkko.lavinen@nokia.com>
|
M: Jarkko Lavinen <jarkko.lavinen@nokia.com>
|
||||||
L: linux-omap@vger.kernel.org
|
L: linux-omap@vger.kernel.org
|
||||||
|
@ -4195,6 +4221,13 @@ W: http://www.pmc-sierra.com/
|
||||||
S: Supported
|
S: Supported
|
||||||
F: drivers/scsi/pmcraid.*
|
F: drivers/scsi/pmcraid.*
|
||||||
|
|
||||||
|
PMC SIERRA PM8001 DRIVER
|
||||||
|
M: jack_wang@usish.com
|
||||||
|
M: lindar_liu@usish.com
|
||||||
|
L: linux-scsi@vger.kernel.org
|
||||||
|
S: Supported
|
||||||
|
F: drivers/scsi/pm8001/
|
||||||
|
|
||||||
POSIX CLOCKS and TIMERS
|
POSIX CLOCKS and TIMERS
|
||||||
M: Thomas Gleixner <tglx@linutronix.de>
|
M: Thomas Gleixner <tglx@linutronix.de>
|
||||||
S: Supported
|
S: Supported
|
||||||
|
@ -4553,6 +4586,7 @@ L: linux-s390@vger.kernel.org
|
||||||
W: http://www.ibm.com/developerworks/linux/linux390/
|
W: http://www.ibm.com/developerworks/linux/linux390/
|
||||||
S: Supported
|
S: Supported
|
||||||
F: arch/s390/
|
F: arch/s390/
|
||||||
|
F: drivers/s390/
|
||||||
|
|
||||||
S390 NETWORK DRIVERS
|
S390 NETWORK DRIVERS
|
||||||
M: Ursula Braun <ursula.braun@de.ibm.com>
|
M: Ursula Braun <ursula.braun@de.ibm.com>
|
||||||
|
@ -4568,6 +4602,7 @@ M: Felix Beck <felix.beck@de.ibm.com>
|
||||||
M: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
|
M: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
|
||||||
M: linux390@de.ibm.com
|
M: linux390@de.ibm.com
|
||||||
L: linux-s390@vger.kernel.org
|
L: linux-s390@vger.kernel.org
|
||||||
|
W: http://www.ibm.com/developerworks/linux/linux390/
|
||||||
S: Supported
|
S: Supported
|
||||||
F: drivers/s390/crypto/
|
F: drivers/s390/crypto/
|
||||||
|
|
||||||
|
@ -5317,7 +5352,7 @@ S: Maintained
|
||||||
F: drivers/scsi/u14-34f.c
|
F: drivers/scsi/u14-34f.c
|
||||||
|
|
||||||
UBI FILE SYSTEM (UBIFS)
|
UBI FILE SYSTEM (UBIFS)
|
||||||
M: Artem Bityutskiy <dedekind@infradead.org>
|
M: Artem Bityutskiy <dedekind1@gmail.com>
|
||||||
M: Adrian Hunter <adrian.hunter@nokia.com>
|
M: Adrian Hunter <adrian.hunter@nokia.com>
|
||||||
L: linux-mtd@lists.infradead.org
|
L: linux-mtd@lists.infradead.org
|
||||||
T: git git://git.infradead.org/ubifs-2.6.git
|
T: git git://git.infradead.org/ubifs-2.6.git
|
||||||
|
@ -5368,7 +5403,7 @@ F: drivers/cdrom/cdrom.c
|
||||||
F: include/linux/cdrom.h
|
F: include/linux/cdrom.h
|
||||||
|
|
||||||
UNSORTED BLOCK IMAGES (UBI)
|
UNSORTED BLOCK IMAGES (UBI)
|
||||||
M: Artem Bityutskiy <dedekind@infradead.org>
|
M: Artem Bityutskiy <dedekind1@gmail.com>
|
||||||
W: http://www.linux-mtd.infradead.org/
|
W: http://www.linux-mtd.infradead.org/
|
||||||
L: linux-mtd@lists.infradead.org
|
L: linux-mtd@lists.infradead.org
|
||||||
T: git git://git.infradead.org/ubi-2.6.git
|
T: git git://git.infradead.org/ubi-2.6.git
|
||||||
|
@ -5769,6 +5804,14 @@ L: netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/vmxnet3/
|
F: drivers/net/vmxnet3/
|
||||||
|
|
||||||
|
VMware PVSCSI driver
|
||||||
|
M: Alok Kataria <akataria@vmware.com>
|
||||||
|
M: VMware PV-Drivers <pv-drivers@vmware.com>
|
||||||
|
L: linux-scsi@vger.kernel.org
|
||||||
|
S: Maintained
|
||||||
|
F: drivers/scsi/vmw_pvscsi.c
|
||||||
|
F: drivers/scsi/vmw_pvscsi.h
|
||||||
|
|
||||||
VOLTAGE AND CURRENT REGULATOR FRAMEWORK
|
VOLTAGE AND CURRENT REGULATOR FRAMEWORK
|
||||||
M: Liam Girdwood <lrg@slimlogic.co.uk>
|
M: Liam Girdwood <lrg@slimlogic.co.uk>
|
||||||
M: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
M: Mark Brown <broonie@opensource.wolfsonmicro.com>
|
||||||
|
|
|
@ -197,7 +197,7 @@ setup_memory_node(int nid, void *kernel_end)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bootmap_start == -1)
|
if (bootmap_start == -1)
|
||||||
panic("couldn't find a contigous place for the bootmap");
|
panic("couldn't find a contiguous place for the bootmap");
|
||||||
|
|
||||||
/* Allocate the bootmap and mark the whole MM as reserved. */
|
/* Allocate the bootmap and mark the whole MM as reserved. */
|
||||||
bootmap_size = init_bootmem_node(NODE_DATA(nid), bootmap_start,
|
bootmap_size = init_bootmem_node(NODE_DATA(nid), bootmap_start,
|
||||||
|
|
|
@ -82,7 +82,7 @@ static int scoop_gpio_get(struct gpio_chip *chip, unsigned offset)
|
||||||
{
|
{
|
||||||
struct scoop_dev *sdev = container_of(chip, struct scoop_dev, gpio);
|
struct scoop_dev *sdev = container_of(chip, struct scoop_dev, gpio);
|
||||||
|
|
||||||
/* XXX: I'm usure, but it seems so */
|
/* XXX: I'm unsure, but it seems so */
|
||||||
return ioread16(sdev->base + SCOOP_GPRR) & (1 << (offset + 1));
|
return ioread16(sdev->base + SCOOP_GPRR) & (1 << (offset + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,15 +1,13 @@
|
||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.30-davinci1
|
# Linux kernel version: 2.6.32-rc5
|
||||||
# Mon Jun 29 07:54:15 2009
|
# Thu Oct 22 12:19:19 2009
|
||||||
#
|
#
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
||||||
CONFIG_GENERIC_GPIO=y
|
CONFIG_GENERIC_GPIO=y
|
||||||
CONFIG_GENERIC_TIME=y
|
CONFIG_GENERIC_TIME=y
|
||||||
CONFIG_GENERIC_CLOCKEVENTS=y
|
CONFIG_GENERIC_CLOCKEVENTS=y
|
||||||
CONFIG_MMU=y
|
|
||||||
# CONFIG_NO_IOPORT is not set
|
|
||||||
CONFIG_GENERIC_HARDIRQS=y
|
CONFIG_GENERIC_HARDIRQS=y
|
||||||
CONFIG_STACKTRACE_SUPPORT=y
|
CONFIG_STACKTRACE_SUPPORT=y
|
||||||
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
|
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
|
||||||
|
@ -18,14 +16,14 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y
|
||||||
CONFIG_HARDIRQS_SW_RESEND=y
|
CONFIG_HARDIRQS_SW_RESEND=y
|
||||||
CONFIG_GENERIC_IRQ_PROBE=y
|
CONFIG_GENERIC_IRQ_PROBE=y
|
||||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
|
CONFIG_ARCH_HAS_CPUFREQ=y
|
||||||
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
|
|
||||||
CONFIG_GENERIC_HWEIGHT=y
|
CONFIG_GENERIC_HWEIGHT=y
|
||||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
CONFIG_ZONE_DMA=y
|
CONFIG_ZONE_DMA=y
|
||||||
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
|
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
|
||||||
CONFIG_VECTORS_BASE=0xffff0000
|
CONFIG_VECTORS_BASE=0xffff0000
|
||||||
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
|
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
|
||||||
|
CONFIG_CONSTRUCTORS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# General setup
|
# General setup
|
||||||
|
@ -48,11 +46,12 @@ CONFIG_POSIX_MQUEUE_SYSCTL=y
|
||||||
#
|
#
|
||||||
# RCU Subsystem
|
# RCU Subsystem
|
||||||
#
|
#
|
||||||
CONFIG_CLASSIC_RCU=y
|
CONFIG_TREE_RCU=y
|
||||||
# CONFIG_TREE_RCU is not set
|
# CONFIG_TREE_PREEMPT_RCU is not set
|
||||||
# CONFIG_PREEMPT_RCU is not set
|
# CONFIG_RCU_TRACE is not set
|
||||||
|
CONFIG_RCU_FANOUT=32
|
||||||
|
# CONFIG_RCU_FANOUT_EXACT is not set
|
||||||
# CONFIG_TREE_RCU_TRACE is not set
|
# CONFIG_TREE_RCU_TRACE is not set
|
||||||
# CONFIG_PREEMPT_RCU_TRACE is not set
|
|
||||||
CONFIG_IKCONFIG=y
|
CONFIG_IKCONFIG=y
|
||||||
CONFIG_IKCONFIG_PROC=y
|
CONFIG_IKCONFIG_PROC=y
|
||||||
CONFIG_LOG_BUF_SHIFT=14
|
CONFIG_LOG_BUF_SHIFT=14
|
||||||
|
@ -62,8 +61,7 @@ CONFIG_FAIR_GROUP_SCHED=y
|
||||||
CONFIG_USER_SCHED=y
|
CONFIG_USER_SCHED=y
|
||||||
# CONFIG_CGROUP_SCHED is not set
|
# CONFIG_CGROUP_SCHED is not set
|
||||||
# CONFIG_CGROUPS is not set
|
# CONFIG_CGROUPS is not set
|
||||||
CONFIG_SYSFS_DEPRECATED=y
|
# CONFIG_SYSFS_DEPRECATED_V2 is not set
|
||||||
CONFIG_SYSFS_DEPRECATED_V2=y
|
|
||||||
# CONFIG_RELAY is not set
|
# CONFIG_RELAY is not set
|
||||||
# CONFIG_NAMESPACES is not set
|
# CONFIG_NAMESPACES is not set
|
||||||
CONFIG_BLK_DEV_INITRD=y
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
|
@ -80,7 +78,6 @@ CONFIG_SYSCTL_SYSCALL=y
|
||||||
CONFIG_KALLSYMS=y
|
CONFIG_KALLSYMS=y
|
||||||
# CONFIG_KALLSYMS_ALL is not set
|
# CONFIG_KALLSYMS_ALL is not set
|
||||||
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
# CONFIG_STRIP_ASM_SYMS is not set
|
|
||||||
CONFIG_HOTPLUG=y
|
CONFIG_HOTPLUG=y
|
||||||
CONFIG_PRINTK=y
|
CONFIG_PRINTK=y
|
||||||
CONFIG_BUG=y
|
CONFIG_BUG=y
|
||||||
|
@ -93,6 +90,10 @@ CONFIG_TIMERFD=y
|
||||||
CONFIG_EVENTFD=y
|
CONFIG_EVENTFD=y
|
||||||
CONFIG_SHMEM=y
|
CONFIG_SHMEM=y
|
||||||
CONFIG_AIO=y
|
CONFIG_AIO=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel Performance Events And Counters
|
||||||
|
#
|
||||||
CONFIG_VM_EVENT_COUNTERS=y
|
CONFIG_VM_EVENT_COUNTERS=y
|
||||||
CONFIG_SLUB_DEBUG=y
|
CONFIG_SLUB_DEBUG=y
|
||||||
CONFIG_COMPAT_BRK=y
|
CONFIG_COMPAT_BRK=y
|
||||||
|
@ -100,12 +101,16 @@ CONFIG_COMPAT_BRK=y
|
||||||
CONFIG_SLUB=y
|
CONFIG_SLUB=y
|
||||||
# CONFIG_SLOB is not set
|
# CONFIG_SLOB is not set
|
||||||
# CONFIG_PROFILING is not set
|
# CONFIG_PROFILING is not set
|
||||||
# CONFIG_MARKERS is not set
|
|
||||||
CONFIG_HAVE_OPROFILE=y
|
CONFIG_HAVE_OPROFILE=y
|
||||||
# CONFIG_KPROBES is not set
|
# CONFIG_KPROBES is not set
|
||||||
CONFIG_HAVE_KPROBES=y
|
CONFIG_HAVE_KPROBES=y
|
||||||
CONFIG_HAVE_KRETPROBES=y
|
CONFIG_HAVE_KRETPROBES=y
|
||||||
CONFIG_HAVE_CLK=y
|
CONFIG_HAVE_CLK=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# GCOV-based kernel profiling
|
||||||
|
#
|
||||||
|
# CONFIG_GCOV_KERNEL is not set
|
||||||
# CONFIG_SLOW_WORK is not set
|
# CONFIG_SLOW_WORK is not set
|
||||||
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
|
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
|
||||||
CONFIG_SLABINFO=y
|
CONFIG_SLABINFO=y
|
||||||
|
@ -118,7 +123,7 @@ CONFIG_MODULE_FORCE_UNLOAD=y
|
||||||
CONFIG_MODVERSIONS=y
|
CONFIG_MODVERSIONS=y
|
||||||
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
CONFIG_BLOCK=y
|
CONFIG_BLOCK=y
|
||||||
# CONFIG_LBD is not set
|
CONFIG_LBDAF=y
|
||||||
# CONFIG_BLK_DEV_BSG is not set
|
# CONFIG_BLK_DEV_BSG is not set
|
||||||
# CONFIG_BLK_DEV_INTEGRITY is not set
|
# CONFIG_BLK_DEV_INTEGRITY is not set
|
||||||
|
|
||||||
|
@ -139,19 +144,22 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
#
|
#
|
||||||
# System Type
|
# System Type
|
||||||
#
|
#
|
||||||
|
CONFIG_MMU=y
|
||||||
# CONFIG_ARCH_AAEC2000 is not set
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
# CONFIG_ARCH_INTEGRATOR is not set
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
# CONFIG_ARCH_REALVIEW is not set
|
# CONFIG_ARCH_REALVIEW is not set
|
||||||
# CONFIG_ARCH_VERSATILE is not set
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
# CONFIG_ARCH_AT91 is not set
|
# CONFIG_ARCH_AT91 is not set
|
||||||
# CONFIG_ARCH_CLPS711X is not set
|
# CONFIG_ARCH_CLPS711X is not set
|
||||||
|
# CONFIG_ARCH_GEMINI is not set
|
||||||
# CONFIG_ARCH_EBSA110 is not set
|
# CONFIG_ARCH_EBSA110 is not set
|
||||||
# CONFIG_ARCH_EP93XX is not set
|
# CONFIG_ARCH_EP93XX is not set
|
||||||
# CONFIG_ARCH_GEMINI is not set
|
|
||||||
# CONFIG_ARCH_FOOTBRIDGE is not set
|
# CONFIG_ARCH_FOOTBRIDGE is not set
|
||||||
|
# CONFIG_ARCH_MXC is not set
|
||||||
|
# CONFIG_ARCH_STMP3XXX is not set
|
||||||
# CONFIG_ARCH_NETX is not set
|
# CONFIG_ARCH_NETX is not set
|
||||||
# CONFIG_ARCH_H720X is not set
|
# CONFIG_ARCH_H720X is not set
|
||||||
# CONFIG_ARCH_IMX is not set
|
# CONFIG_ARCH_NOMADIK is not set
|
||||||
# CONFIG_ARCH_IOP13XX is not set
|
# CONFIG_ARCH_IOP13XX is not set
|
||||||
# CONFIG_ARCH_IOP32X is not set
|
# CONFIG_ARCH_IOP32X is not set
|
||||||
# CONFIG_ARCH_IOP33X is not set
|
# CONFIG_ARCH_IOP33X is not set
|
||||||
|
@ -160,25 +168,27 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
# CONFIG_ARCH_IXP4XX is not set
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
# CONFIG_ARCH_L7200 is not set
|
# CONFIG_ARCH_L7200 is not set
|
||||||
# CONFIG_ARCH_KIRKWOOD is not set
|
# CONFIG_ARCH_KIRKWOOD is not set
|
||||||
# CONFIG_ARCH_KS8695 is not set
|
|
||||||
# CONFIG_ARCH_NS9XXX is not set
|
|
||||||
# CONFIG_ARCH_LOKI is not set
|
# CONFIG_ARCH_LOKI is not set
|
||||||
# CONFIG_ARCH_MV78XX0 is not set
|
# CONFIG_ARCH_MV78XX0 is not set
|
||||||
# CONFIG_ARCH_MXC is not set
|
|
||||||
# CONFIG_ARCH_ORION5X is not set
|
# CONFIG_ARCH_ORION5X is not set
|
||||||
|
# CONFIG_ARCH_MMP is not set
|
||||||
|
# CONFIG_ARCH_KS8695 is not set
|
||||||
|
# CONFIG_ARCH_NS9XXX is not set
|
||||||
|
# CONFIG_ARCH_W90X900 is not set
|
||||||
# CONFIG_ARCH_PNX4008 is not set
|
# CONFIG_ARCH_PNX4008 is not set
|
||||||
# CONFIG_ARCH_PXA is not set
|
# CONFIG_ARCH_PXA is not set
|
||||||
# CONFIG_ARCH_MMP is not set
|
# CONFIG_ARCH_MSM is not set
|
||||||
# CONFIG_ARCH_RPC is not set
|
# CONFIG_ARCH_RPC is not set
|
||||||
# CONFIG_ARCH_SA1100 is not set
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
# CONFIG_ARCH_S3C2410 is not set
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
# CONFIG_ARCH_S3C64XX is not set
|
# CONFIG_ARCH_S3C64XX is not set
|
||||||
|
# CONFIG_ARCH_S5PC1XX is not set
|
||||||
# CONFIG_ARCH_SHARK is not set
|
# CONFIG_ARCH_SHARK is not set
|
||||||
# CONFIG_ARCH_LH7A40X is not set
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
|
# CONFIG_ARCH_U300 is not set
|
||||||
CONFIG_ARCH_DAVINCI=y
|
CONFIG_ARCH_DAVINCI=y
|
||||||
# CONFIG_ARCH_OMAP is not set
|
# CONFIG_ARCH_OMAP is not set
|
||||||
# CONFIG_ARCH_MSM is not set
|
# CONFIG_ARCH_BCMRING is not set
|
||||||
# CONFIG_ARCH_W90X900 is not set
|
|
||||||
CONFIG_CP_INTC=y
|
CONFIG_CP_INTC=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -191,7 +201,7 @@ CONFIG_CP_INTC=y
|
||||||
# CONFIG_ARCH_DAVINCI_DM644x is not set
|
# CONFIG_ARCH_DAVINCI_DM644x is not set
|
||||||
# CONFIG_ARCH_DAVINCI_DM355 is not set
|
# CONFIG_ARCH_DAVINCI_DM355 is not set
|
||||||
# CONFIG_ARCH_DAVINCI_DM646x is not set
|
# CONFIG_ARCH_DAVINCI_DM646x is not set
|
||||||
# CONFIG_ARCH_DAVINCI_DA830 is not set
|
CONFIG_ARCH_DAVINCI_DA830=y
|
||||||
CONFIG_ARCH_DAVINCI_DA850=y
|
CONFIG_ARCH_DAVINCI_DA850=y
|
||||||
CONFIG_ARCH_DAVINCI_DA8XX=y
|
CONFIG_ARCH_DAVINCI_DA8XX=y
|
||||||
# CONFIG_ARCH_DAVINCI_DM365 is not set
|
# CONFIG_ARCH_DAVINCI_DM365 is not set
|
||||||
|
@ -199,7 +209,14 @@ CONFIG_ARCH_DAVINCI_DA8XX=y
|
||||||
#
|
#
|
||||||
# DaVinci Board Type
|
# DaVinci Board Type
|
||||||
#
|
#
|
||||||
|
CONFIG_MACH_DAVINCI_DA830_EVM=y
|
||||||
|
CONFIG_DA830_UI=y
|
||||||
|
CONFIG_DA830_UI_LCD=y
|
||||||
|
# CONFIG_DA830_UI_NAND is not set
|
||||||
CONFIG_MACH_DAVINCI_DA850_EVM=y
|
CONFIG_MACH_DAVINCI_DA850_EVM=y
|
||||||
|
CONFIG_DA850_UI_EXP=y
|
||||||
|
CONFIG_DA850_UI_NONE=y
|
||||||
|
# CONFIG_DA850_UI_RMII is not set
|
||||||
CONFIG_DAVINCI_MUX=y
|
CONFIG_DAVINCI_MUX=y
|
||||||
# CONFIG_DAVINCI_MUX_DEBUG is not set
|
# CONFIG_DAVINCI_MUX_DEBUG is not set
|
||||||
# CONFIG_DAVINCI_MUX_WARNINGS is not set
|
# CONFIG_DAVINCI_MUX_WARNINGS is not set
|
||||||
|
@ -212,7 +229,7 @@ CONFIG_CPU_32=y
|
||||||
CONFIG_CPU_ARM926T=y
|
CONFIG_CPU_ARM926T=y
|
||||||
CONFIG_CPU_32v5=y
|
CONFIG_CPU_32v5=y
|
||||||
CONFIG_CPU_ABRT_EV5TJ=y
|
CONFIG_CPU_ABRT_EV5TJ=y
|
||||||
CONFIG_CPU_PABRT_NOIFAR=y
|
CONFIG_CPU_PABRT_LEGACY=y
|
||||||
CONFIG_CPU_CACHE_VIVT=y
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
CONFIG_CPU_COPY_V4WB=y
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
CONFIG_CPU_TLB_V4WBI=y
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
@ -225,9 +242,9 @@ CONFIG_CPU_CP15_MMU=y
|
||||||
CONFIG_ARM_THUMB=y
|
CONFIG_ARM_THUMB=y
|
||||||
# CONFIG_CPU_ICACHE_DISABLE is not set
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
# CONFIG_CPU_DCACHE_DISABLE is not set
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
CONFIG_CPU_DCACHE_WRITETHROUGH=y
|
||||||
# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
|
# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
|
||||||
# CONFIG_OUTER_CACHE is not set
|
CONFIG_ARM_L1_CACHE_SHIFT=5
|
||||||
CONFIG_COMMON_CLKDEV=y
|
CONFIG_COMMON_CLKDEV=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -248,11 +265,12 @@ CONFIG_VMSPLIT_3G=y
|
||||||
# CONFIG_VMSPLIT_2G is not set
|
# CONFIG_VMSPLIT_2G is not set
|
||||||
# CONFIG_VMSPLIT_1G is not set
|
# CONFIG_VMSPLIT_1G is not set
|
||||||
CONFIG_PAGE_OFFSET=0xC0000000
|
CONFIG_PAGE_OFFSET=0xC0000000
|
||||||
|
# CONFIG_PREEMPT_NONE is not set
|
||||||
|
# CONFIG_PREEMPT_VOLUNTARY is not set
|
||||||
CONFIG_PREEMPT=y
|
CONFIG_PREEMPT=y
|
||||||
CONFIG_HZ=100
|
CONFIG_HZ=100
|
||||||
CONFIG_AEABI=y
|
CONFIG_AEABI=y
|
||||||
# CONFIG_OABI_COMPAT is not set
|
# CONFIG_OABI_COMPAT is not set
|
||||||
# CONFIG_ARCH_HAS_HOLES_MEMORYMODEL is not set
|
|
||||||
# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
|
# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
|
||||||
# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
|
# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
|
||||||
# CONFIG_HIGHMEM is not set
|
# CONFIG_HIGHMEM is not set
|
||||||
|
@ -268,12 +286,14 @@ CONFIG_SPLIT_PTLOCK_CPUS=4096
|
||||||
CONFIG_ZONE_DMA_FLAG=1
|
CONFIG_ZONE_DMA_FLAG=1
|
||||||
CONFIG_BOUNCE=y
|
CONFIG_BOUNCE=y
|
||||||
CONFIG_VIRT_TO_BUS=y
|
CONFIG_VIRT_TO_BUS=y
|
||||||
CONFIG_UNEVICTABLE_LRU=y
|
|
||||||
CONFIG_HAVE_MLOCK=y
|
CONFIG_HAVE_MLOCK=y
|
||||||
CONFIG_HAVE_MLOCKED_PAGE_BIT=y
|
CONFIG_HAVE_MLOCKED_PAGE_BIT=y
|
||||||
|
# CONFIG_KSM is not set
|
||||||
|
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
|
||||||
CONFIG_LEDS=y
|
CONFIG_LEDS=y
|
||||||
# CONFIG_LEDS_CPU is not set
|
# CONFIG_LEDS_CPU is not set
|
||||||
CONFIG_ALIGNMENT_TRAP=y
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
# CONFIG_UACCESS_WITH_MEMCPY is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Boot options
|
# Boot options
|
||||||
|
@ -287,7 +307,24 @@ CONFIG_CMDLINE=""
|
||||||
#
|
#
|
||||||
# CPU Power Management
|
# CPU Power Management
|
||||||
#
|
#
|
||||||
# CONFIG_CPU_IDLE is not set
|
CONFIG_CPU_FREQ=y
|
||||||
|
CONFIG_CPU_FREQ_TABLE=y
|
||||||
|
# CONFIG_CPU_FREQ_DEBUG is not set
|
||||||
|
CONFIG_CPU_FREQ_STAT=y
|
||||||
|
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
|
||||||
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
|
||||||
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
|
||||||
|
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
|
||||||
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
||||||
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
||||||
|
CONFIG_CPU_FREQ_GOV_PERFORMANCE=m
|
||||||
|
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
|
||||||
|
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
||||||
|
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
||||||
|
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
|
||||||
|
CONFIG_CPU_IDLE=y
|
||||||
|
CONFIG_CPU_IDLE_GOV_LADDER=y
|
||||||
|
CONFIG_CPU_IDLE_GOV_MENU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Floating point emulation
|
# Floating point emulation
|
||||||
|
@ -401,6 +438,7 @@ CONFIG_NETFILTER_ADVANCED=y
|
||||||
# CONFIG_IP6_NF_IPTABLES is not set
|
# CONFIG_IP6_NF_IPTABLES is not set
|
||||||
# CONFIG_IP_DCCP is not set
|
# CONFIG_IP_DCCP is not set
|
||||||
# CONFIG_IP_SCTP is not set
|
# CONFIG_IP_SCTP is not set
|
||||||
|
# CONFIG_RDS is not set
|
||||||
# CONFIG_TIPC is not set
|
# CONFIG_TIPC is not set
|
||||||
# CONFIG_ATM is not set
|
# CONFIG_ATM is not set
|
||||||
# CONFIG_BRIDGE is not set
|
# CONFIG_BRIDGE is not set
|
||||||
|
@ -415,6 +453,7 @@ CONFIG_NETFILTER_ADVANCED=y
|
||||||
# CONFIG_ECONET is not set
|
# CONFIG_ECONET is not set
|
||||||
# CONFIG_WAN_ROUTER is not set
|
# CONFIG_WAN_ROUTER is not set
|
||||||
# CONFIG_PHONET is not set
|
# CONFIG_PHONET is not set
|
||||||
|
# CONFIG_IEEE802154 is not set
|
||||||
# CONFIG_NET_SCHED is not set
|
# CONFIG_NET_SCHED is not set
|
||||||
# CONFIG_DCB is not set
|
# CONFIG_DCB is not set
|
||||||
|
|
||||||
|
@ -440,6 +479,7 @@ CONFIG_NETFILTER_ADVANCED=y
|
||||||
# Generic Driver Options
|
# Generic Driver Options
|
||||||
#
|
#
|
||||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||||
|
# CONFIG_DEVTMPFS is not set
|
||||||
CONFIG_STANDALONE=y
|
CONFIG_STANDALONE=y
|
||||||
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
# CONFIG_FW_LOADER is not set
|
# CONFIG_FW_LOADER is not set
|
||||||
|
@ -460,6 +500,7 @@ CONFIG_BLK_DEV_RAM_SIZE=32768
|
||||||
# CONFIG_BLK_DEV_XIP is not set
|
# CONFIG_BLK_DEV_XIP is not set
|
||||||
# CONFIG_CDROM_PKTCDVD is not set
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
# CONFIG_ATA_OVER_ETH is not set
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
# CONFIG_MG_DISK is not set
|
||||||
CONFIG_MISC_DEVICES=y
|
CONFIG_MISC_DEVICES=y
|
||||||
# CONFIG_ICS932S401 is not set
|
# CONFIG_ICS932S401 is not set
|
||||||
# CONFIG_ENCLOSURE_SERVICES is not set
|
# CONFIG_ENCLOSURE_SERVICES is not set
|
||||||
|
@ -471,6 +512,7 @@ CONFIG_MISC_DEVICES=y
|
||||||
#
|
#
|
||||||
CONFIG_EEPROM_AT24=y
|
CONFIG_EEPROM_AT24=y
|
||||||
# CONFIG_EEPROM_LEGACY is not set
|
# CONFIG_EEPROM_LEGACY is not set
|
||||||
|
# CONFIG_EEPROM_MAX6875 is not set
|
||||||
# CONFIG_EEPROM_93CX6 is not set
|
# CONFIG_EEPROM_93CX6 is not set
|
||||||
CONFIG_HAVE_IDE=y
|
CONFIG_HAVE_IDE=y
|
||||||
# CONFIG_IDE is not set
|
# CONFIG_IDE is not set
|
||||||
|
@ -494,10 +536,6 @@ CONFIG_BLK_DEV_SD=m
|
||||||
# CONFIG_BLK_DEV_SR is not set
|
# CONFIG_BLK_DEV_SR is not set
|
||||||
# CONFIG_CHR_DEV_SG is not set
|
# CONFIG_CHR_DEV_SG is not set
|
||||||
# CONFIG_CHR_DEV_SCH is not set
|
# CONFIG_CHR_DEV_SCH is not set
|
||||||
|
|
||||||
#
|
|
||||||
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
|
|
||||||
#
|
|
||||||
# CONFIG_SCSI_MULTI_LUN is not set
|
# CONFIG_SCSI_MULTI_LUN is not set
|
||||||
# CONFIG_SCSI_CONSTANTS is not set
|
# CONFIG_SCSI_CONSTANTS is not set
|
||||||
# CONFIG_SCSI_LOGGING is not set
|
# CONFIG_SCSI_LOGGING is not set
|
||||||
|
@ -522,7 +560,6 @@ CONFIG_SCSI_LOWLEVEL=y
|
||||||
# CONFIG_ATA is not set
|
# CONFIG_ATA is not set
|
||||||
# CONFIG_MD is not set
|
# CONFIG_MD is not set
|
||||||
CONFIG_NETDEVICES=y
|
CONFIG_NETDEVICES=y
|
||||||
CONFIG_COMPAT_NET_DEV_OPS=y
|
|
||||||
# CONFIG_DUMMY is not set
|
# CONFIG_DUMMY is not set
|
||||||
# CONFIG_BONDING is not set
|
# CONFIG_BONDING is not set
|
||||||
# CONFIG_MACVLAN is not set
|
# CONFIG_MACVLAN is not set
|
||||||
|
@ -553,7 +590,7 @@ CONFIG_NET_ETHERNET=y
|
||||||
CONFIG_MII=y
|
CONFIG_MII=y
|
||||||
# CONFIG_AX88796 is not set
|
# CONFIG_AX88796 is not set
|
||||||
# CONFIG_SMC91X is not set
|
# CONFIG_SMC91X is not set
|
||||||
# CONFIG_TI_DAVINCI_EMAC is not set
|
CONFIG_TI_DAVINCI_EMAC=y
|
||||||
# CONFIG_DM9000 is not set
|
# CONFIG_DM9000 is not set
|
||||||
# CONFIG_ETHOC is not set
|
# CONFIG_ETHOC is not set
|
||||||
# CONFIG_SMC911X is not set
|
# CONFIG_SMC911X is not set
|
||||||
|
@ -567,12 +604,11 @@ CONFIG_MII=y
|
||||||
# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set
|
# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set
|
||||||
# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set
|
# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set
|
||||||
# CONFIG_B44 is not set
|
# CONFIG_B44 is not set
|
||||||
|
# CONFIG_KS8842 is not set
|
||||||
|
# CONFIG_KS8851_MLL is not set
|
||||||
# CONFIG_NETDEV_1000 is not set
|
# CONFIG_NETDEV_1000 is not set
|
||||||
# CONFIG_NETDEV_10000 is not set
|
# CONFIG_NETDEV_10000 is not set
|
||||||
|
CONFIG_WLAN=y
|
||||||
#
|
|
||||||
# Wireless LAN
|
|
||||||
#
|
|
||||||
# CONFIG_WLAN_PRE80211 is not set
|
# CONFIG_WLAN_PRE80211 is not set
|
||||||
# CONFIG_WLAN_80211 is not set
|
# CONFIG_WLAN_80211 is not set
|
||||||
|
|
||||||
|
@ -588,6 +624,7 @@ CONFIG_NETPOLL=y
|
||||||
CONFIG_NETPOLL_TRAP=y
|
CONFIG_NETPOLL_TRAP=y
|
||||||
CONFIG_NET_POLL_CONTROLLER=y
|
CONFIG_NET_POLL_CONTROLLER=y
|
||||||
# CONFIG_ISDN is not set
|
# CONFIG_ISDN is not set
|
||||||
|
# CONFIG_PHONE is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Input device support
|
# Input device support
|
||||||
|
@ -611,23 +648,30 @@ CONFIG_INPUT_EVBUG=m
|
||||||
# Input Device Drivers
|
# Input Device Drivers
|
||||||
#
|
#
|
||||||
CONFIG_INPUT_KEYBOARD=y
|
CONFIG_INPUT_KEYBOARD=y
|
||||||
|
# CONFIG_KEYBOARD_ADP5588 is not set
|
||||||
CONFIG_KEYBOARD_ATKBD=m
|
CONFIG_KEYBOARD_ATKBD=m
|
||||||
# CONFIG_KEYBOARD_SUNKBD is not set
|
# CONFIG_QT2160 is not set
|
||||||
# CONFIG_KEYBOARD_LKKBD is not set
|
# CONFIG_KEYBOARD_LKKBD is not set
|
||||||
CONFIG_KEYBOARD_XTKBD=m
|
|
||||||
# CONFIG_KEYBOARD_NEWTON is not set
|
|
||||||
# CONFIG_KEYBOARD_STOWAWAY is not set
|
|
||||||
CONFIG_KEYBOARD_GPIO=y
|
CONFIG_KEYBOARD_GPIO=y
|
||||||
|
# CONFIG_KEYBOARD_MATRIX is not set
|
||||||
|
# CONFIG_KEYBOARD_MAX7359 is not set
|
||||||
|
# CONFIG_KEYBOARD_NEWTON is not set
|
||||||
|
# CONFIG_KEYBOARD_OPENCORES is not set
|
||||||
|
# CONFIG_KEYBOARD_STOWAWAY is not set
|
||||||
|
# CONFIG_KEYBOARD_SUNKBD is not set
|
||||||
|
CONFIG_KEYBOARD_XTKBD=m
|
||||||
# CONFIG_INPUT_MOUSE is not set
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
# CONFIG_INPUT_JOYSTICK is not set
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
# CONFIG_INPUT_TABLET is not set
|
# CONFIG_INPUT_TABLET is not set
|
||||||
CONFIG_INPUT_TOUCHSCREEN=y
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
# CONFIG_TOUCHSCREEN_AD7879_I2C is not set
|
# CONFIG_TOUCHSCREEN_AD7879_I2C is not set
|
||||||
# CONFIG_TOUCHSCREEN_AD7879 is not set
|
# CONFIG_TOUCHSCREEN_AD7879 is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_EETI is not set
|
||||||
# CONFIG_TOUCHSCREEN_FUJITSU is not set
|
# CONFIG_TOUCHSCREEN_FUJITSU is not set
|
||||||
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
||||||
# CONFIG_TOUCHSCREEN_ELO is not set
|
# CONFIG_TOUCHSCREEN_ELO is not set
|
||||||
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
|
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MCS5000 is not set
|
||||||
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
||||||
# CONFIG_TOUCHSCREEN_INEXIO is not set
|
# CONFIG_TOUCHSCREEN_INEXIO is not set
|
||||||
# CONFIG_TOUCHSCREEN_MK712 is not set
|
# CONFIG_TOUCHSCREEN_MK712 is not set
|
||||||
|
@ -636,6 +680,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
|
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
|
||||||
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
|
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
|
||||||
# CONFIG_TOUCHSCREEN_TSC2007 is not set
|
# CONFIG_TOUCHSCREEN_TSC2007 is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_W90X900 is not set
|
||||||
# CONFIG_INPUT_MISC is not set
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -684,6 +729,7 @@ CONFIG_HW_RANDOM=m
|
||||||
# CONFIG_TCG_TPM is not set
|
# CONFIG_TCG_TPM is not set
|
||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_I2C_BOARDINFO=y
|
CONFIG_I2C_BOARDINFO=y
|
||||||
|
CONFIG_I2C_COMPAT=y
|
||||||
CONFIG_I2C_CHARDEV=y
|
CONFIG_I2C_CHARDEV=y
|
||||||
CONFIG_I2C_HELPER_AUTO=y
|
CONFIG_I2C_HELPER_AUTO=y
|
||||||
|
|
||||||
|
@ -695,6 +741,7 @@ CONFIG_I2C_HELPER_AUTO=y
|
||||||
# I2C system bus drivers (mostly embedded / system-on-chip)
|
# I2C system bus drivers (mostly embedded / system-on-chip)
|
||||||
#
|
#
|
||||||
CONFIG_I2C_DAVINCI=y
|
CONFIG_I2C_DAVINCI=y
|
||||||
|
# CONFIG_I2C_DESIGNWARE is not set
|
||||||
# CONFIG_I2C_GPIO is not set
|
# CONFIG_I2C_GPIO is not set
|
||||||
# CONFIG_I2C_OCORES is not set
|
# CONFIG_I2C_OCORES is not set
|
||||||
# CONFIG_I2C_SIMTEC is not set
|
# CONFIG_I2C_SIMTEC is not set
|
||||||
|
@ -715,14 +762,17 @@ CONFIG_I2C_DAVINCI=y
|
||||||
# Miscellaneous I2C Chip support
|
# Miscellaneous I2C Chip support
|
||||||
#
|
#
|
||||||
# CONFIG_DS1682 is not set
|
# CONFIG_DS1682 is not set
|
||||||
# CONFIG_SENSORS_PCA9539 is not set
|
|
||||||
# CONFIG_SENSORS_MAX6875 is not set
|
|
||||||
# CONFIG_SENSORS_TSL2550 is not set
|
# CONFIG_SENSORS_TSL2550 is not set
|
||||||
# CONFIG_I2C_DEBUG_CORE is not set
|
# CONFIG_I2C_DEBUG_CORE is not set
|
||||||
# CONFIG_I2C_DEBUG_ALGO is not set
|
# CONFIG_I2C_DEBUG_ALGO is not set
|
||||||
# CONFIG_I2C_DEBUG_BUS is not set
|
# CONFIG_I2C_DEBUG_BUS is not set
|
||||||
# CONFIG_I2C_DEBUG_CHIP is not set
|
# CONFIG_I2C_DEBUG_CHIP is not set
|
||||||
# CONFIG_SPI is not set
|
# CONFIG_SPI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PPS support
|
||||||
|
#
|
||||||
|
# CONFIG_PPS is not set
|
||||||
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
||||||
CONFIG_GPIOLIB=y
|
CONFIG_GPIOLIB=y
|
||||||
# CONFIG_DEBUG_GPIO is not set
|
# CONFIG_DEBUG_GPIO is not set
|
||||||
|
@ -736,8 +786,8 @@ CONFIG_GPIOLIB=y
|
||||||
# I2C GPIO expanders:
|
# I2C GPIO expanders:
|
||||||
#
|
#
|
||||||
# CONFIG_GPIO_MAX732X is not set
|
# CONFIG_GPIO_MAX732X is not set
|
||||||
# CONFIG_GPIO_PCA953X is not set
|
CONFIG_GPIO_PCA953X=y
|
||||||
CONFIG_GPIO_PCF857X=m
|
CONFIG_GPIO_PCF857X=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# PCI GPIO expanders:
|
# PCI GPIO expanders:
|
||||||
|
@ -746,11 +796,14 @@ CONFIG_GPIO_PCF857X=m
|
||||||
#
|
#
|
||||||
# SPI GPIO expanders:
|
# SPI GPIO expanders:
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# AC97 GPIO expanders:
|
||||||
|
#
|
||||||
# CONFIG_W1 is not set
|
# CONFIG_W1 is not set
|
||||||
# CONFIG_POWER_SUPPLY is not set
|
# CONFIG_POWER_SUPPLY is not set
|
||||||
# CONFIG_HWMON is not set
|
# CONFIG_HWMON is not set
|
||||||
# CONFIG_THERMAL is not set
|
# CONFIG_THERMAL is not set
|
||||||
# CONFIG_THERMAL_HWMON is not set
|
|
||||||
CONFIG_WATCHDOG=y
|
CONFIG_WATCHDOG=y
|
||||||
# CONFIG_WATCHDOG_NOWAYOUT is not set
|
# CONFIG_WATCHDOG_NOWAYOUT is not set
|
||||||
|
|
||||||
|
@ -782,31 +835,56 @@ CONFIG_SSB_POSSIBLE=y
|
||||||
# CONFIG_MFD_TC6393XB is not set
|
# CONFIG_MFD_TC6393XB is not set
|
||||||
# CONFIG_PMIC_DA903X is not set
|
# CONFIG_PMIC_DA903X is not set
|
||||||
# CONFIG_MFD_WM8400 is not set
|
# CONFIG_MFD_WM8400 is not set
|
||||||
|
# CONFIG_MFD_WM831X is not set
|
||||||
# CONFIG_MFD_WM8350_I2C is not set
|
# CONFIG_MFD_WM8350_I2C is not set
|
||||||
# CONFIG_MFD_PCF50633 is not set
|
# CONFIG_MFD_PCF50633 is not set
|
||||||
|
# CONFIG_AB3100_CORE is not set
|
||||||
#
|
CONFIG_REGULATOR=y
|
||||||
# Multimedia devices
|
# CONFIG_REGULATOR_DEBUG is not set
|
||||||
#
|
# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
|
||||||
|
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
|
||||||
#
|
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
|
||||||
# Multimedia core support
|
# CONFIG_REGULATOR_BQ24022 is not set
|
||||||
#
|
# CONFIG_REGULATOR_MAX1586 is not set
|
||||||
# CONFIG_VIDEO_DEV is not set
|
# CONFIG_REGULATOR_LP3971 is not set
|
||||||
# CONFIG_DVB_CORE is not set
|
# CONFIG_REGULATOR_TPS65023 is not set
|
||||||
# CONFIG_VIDEO_MEDIA is not set
|
CONFIG_REGULATOR_TPS6507X=y
|
||||||
|
# CONFIG_MEDIA_SUPPORT is not set
|
||||||
#
|
|
||||||
# Multimedia drivers
|
|
||||||
#
|
|
||||||
# CONFIG_DAB is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Graphics support
|
# Graphics support
|
||||||
#
|
#
|
||||||
# CONFIG_VGASTATE is not set
|
# CONFIG_VGASTATE is not set
|
||||||
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
|
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
|
||||||
# CONFIG_FB is not set
|
CONFIG_FB=y
|
||||||
|
# CONFIG_FIRMWARE_EDID is not set
|
||||||
|
# CONFIG_FB_DDC is not set
|
||||||
|
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
|
||||||
|
# CONFIG_FB_SYS_FILLRECT is not set
|
||||||
|
# CONFIG_FB_SYS_COPYAREA is not set
|
||||||
|
# CONFIG_FB_SYS_IMAGEBLIT is not set
|
||||||
|
# CONFIG_FB_FOREIGN_ENDIAN is not set
|
||||||
|
# CONFIG_FB_SYS_FOPS is not set
|
||||||
|
# CONFIG_FB_SVGALIB is not set
|
||||||
|
# CONFIG_FB_MACMODES is not set
|
||||||
|
# CONFIG_FB_BACKLIGHT is not set
|
||||||
|
# CONFIG_FB_MODE_HELPERS is not set
|
||||||
|
# CONFIG_FB_TILEBLITTING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Frame buffer hardware drivers
|
||||||
|
#
|
||||||
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
# CONFIG_FB_DAVINCI is not set
|
||||||
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
|
CONFIG_FB_DA8XX=y
|
||||||
|
# CONFIG_FB_METRONOME is not set
|
||||||
|
# CONFIG_FB_MB862XX is not set
|
||||||
|
# CONFIG_FB_BROADSHEET is not set
|
||||||
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -819,6 +897,16 @@ CONFIG_SSB_POSSIBLE=y
|
||||||
#
|
#
|
||||||
# CONFIG_VGA_CONSOLE is not set
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
CONFIG_DUMMY_CONSOLE=y
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||||
|
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
|
||||||
|
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
|
||||||
|
# CONFIG_FONTS is not set
|
||||||
|
CONFIG_FONT_8x8=y
|
||||||
|
CONFIG_FONT_8x16=y
|
||||||
|
CONFIG_LOGO=y
|
||||||
|
CONFIG_LOGO_LINUX_MONO=y
|
||||||
|
CONFIG_LOGO_LINUX_VGA16=y
|
||||||
|
CONFIG_LOGO_LINUX_CLUT224=y
|
||||||
CONFIG_SOUND=m
|
CONFIG_SOUND=m
|
||||||
# CONFIG_SOUND_OSS_CORE is not set
|
# CONFIG_SOUND_OSS_CORE is not set
|
||||||
CONFIG_SND=m
|
CONFIG_SND=m
|
||||||
|
@ -834,6 +922,11 @@ CONFIG_SND_SUPPORT_OLD_API=y
|
||||||
CONFIG_SND_VERBOSE_PROCFS=y
|
CONFIG_SND_VERBOSE_PROCFS=y
|
||||||
# CONFIG_SND_VERBOSE_PRINTK is not set
|
# CONFIG_SND_VERBOSE_PRINTK is not set
|
||||||
# CONFIG_SND_DEBUG is not set
|
# CONFIG_SND_DEBUG is not set
|
||||||
|
# CONFIG_SND_RAWMIDI_SEQ is not set
|
||||||
|
# CONFIG_SND_OPL3_LIB_SEQ is not set
|
||||||
|
# CONFIG_SND_OPL4_LIB_SEQ is not set
|
||||||
|
# CONFIG_SND_SBAWE_SEQ is not set
|
||||||
|
# CONFIG_SND_EMU10K1_SEQ is not set
|
||||||
CONFIG_SND_DRIVERS=y
|
CONFIG_SND_DRIVERS=y
|
||||||
# CONFIG_SND_DUMMY is not set
|
# CONFIG_SND_DUMMY is not set
|
||||||
# CONFIG_SND_MTPAV is not set
|
# CONFIG_SND_MTPAV is not set
|
||||||
|
@ -842,6 +935,8 @@ CONFIG_SND_DRIVERS=y
|
||||||
CONFIG_SND_ARM=y
|
CONFIG_SND_ARM=y
|
||||||
CONFIG_SND_SOC=m
|
CONFIG_SND_SOC=m
|
||||||
CONFIG_SND_DAVINCI_SOC=m
|
CONFIG_SND_DAVINCI_SOC=m
|
||||||
|
# CONFIG_SND_DA830_SOC_EVM is not set
|
||||||
|
# CONFIG_SND_DA850_SOC_EVM is not set
|
||||||
CONFIG_SND_SOC_I2C_AND_SPI=m
|
CONFIG_SND_SOC_I2C_AND_SPI=m
|
||||||
# CONFIG_SND_SOC_ALL_CODECS is not set
|
# CONFIG_SND_SOC_ALL_CODECS is not set
|
||||||
# CONFIG_SOUND_PRIME is not set
|
# CONFIG_SOUND_PRIME is not set
|
||||||
|
@ -849,14 +944,17 @@ CONFIG_SND_SOC_I2C_AND_SPI=m
|
||||||
# CONFIG_USB_SUPPORT is not set
|
# CONFIG_USB_SUPPORT is not set
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
# CONFIG_MEMSTICK is not set
|
# CONFIG_MEMSTICK is not set
|
||||||
# CONFIG_ACCESSIBILITY is not set
|
|
||||||
# CONFIG_NEW_LEDS is not set
|
# CONFIG_NEW_LEDS is not set
|
||||||
|
# CONFIG_ACCESSIBILITY is not set
|
||||||
CONFIG_RTC_LIB=y
|
CONFIG_RTC_LIB=y
|
||||||
# CONFIG_RTC_CLASS is not set
|
# CONFIG_RTC_CLASS is not set
|
||||||
# CONFIG_DMADEVICES is not set
|
# CONFIG_DMADEVICES is not set
|
||||||
# CONFIG_AUXDISPLAY is not set
|
# CONFIG_AUXDISPLAY is not set
|
||||||
# CONFIG_REGULATOR is not set
|
|
||||||
# CONFIG_UIO is not set
|
# CONFIG_UIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TI VLYNQ
|
||||||
|
#
|
||||||
# CONFIG_STAGING is not set
|
# CONFIG_STAGING is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -877,14 +975,17 @@ CONFIG_FS_MBCACHE=y
|
||||||
# CONFIG_REISERFS_FS is not set
|
# CONFIG_REISERFS_FS is not set
|
||||||
# CONFIG_JFS_FS is not set
|
# CONFIG_JFS_FS is not set
|
||||||
# CONFIG_FS_POSIX_ACL is not set
|
# CONFIG_FS_POSIX_ACL is not set
|
||||||
CONFIG_FILE_LOCKING=y
|
|
||||||
CONFIG_XFS_FS=m
|
CONFIG_XFS_FS=m
|
||||||
# CONFIG_XFS_QUOTA is not set
|
# CONFIG_XFS_QUOTA is not set
|
||||||
# CONFIG_XFS_POSIX_ACL is not set
|
# CONFIG_XFS_POSIX_ACL is not set
|
||||||
# CONFIG_XFS_RT is not set
|
# CONFIG_XFS_RT is not set
|
||||||
# CONFIG_XFS_DEBUG is not set
|
# CONFIG_XFS_DEBUG is not set
|
||||||
|
# CONFIG_GFS2_FS is not set
|
||||||
# CONFIG_OCFS2_FS is not set
|
# CONFIG_OCFS2_FS is not set
|
||||||
# CONFIG_BTRFS_FS is not set
|
# CONFIG_BTRFS_FS is not set
|
||||||
|
# CONFIG_NILFS2_FS is not set
|
||||||
|
CONFIG_FILE_LOCKING=y
|
||||||
|
CONFIG_FSNOTIFY=y
|
||||||
CONFIG_DNOTIFY=y
|
CONFIG_DNOTIFY=y
|
||||||
CONFIG_INOTIFY=y
|
CONFIG_INOTIFY=y
|
||||||
CONFIG_INOTIFY_USER=y
|
CONFIG_INOTIFY_USER=y
|
||||||
|
@ -943,7 +1044,6 @@ CONFIG_MINIX_FS=m
|
||||||
# CONFIG_ROMFS_FS is not set
|
# CONFIG_ROMFS_FS is not set
|
||||||
# CONFIG_SYSV_FS is not set
|
# CONFIG_SYSV_FS is not set
|
||||||
# CONFIG_UFS_FS is not set
|
# CONFIG_UFS_FS is not set
|
||||||
# CONFIG_NILFS2_FS is not set
|
|
||||||
CONFIG_NETWORK_FILESYSTEMS=y
|
CONFIG_NETWORK_FILESYSTEMS=y
|
||||||
CONFIG_NFS_FS=y
|
CONFIG_NFS_FS=y
|
||||||
CONFIG_NFS_V3=y
|
CONFIG_NFS_V3=y
|
||||||
|
@ -1039,6 +1139,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y
|
||||||
CONFIG_ENABLE_MUST_CHECK=y
|
CONFIG_ENABLE_MUST_CHECK=y
|
||||||
CONFIG_FRAME_WARN=1024
|
CONFIG_FRAME_WARN=1024
|
||||||
# CONFIG_MAGIC_SYSRQ is not set
|
# CONFIG_MAGIC_SYSRQ is not set
|
||||||
|
# CONFIG_STRIP_ASM_SYMS is not set
|
||||||
# CONFIG_UNUSED_SYMBOLS is not set
|
# CONFIG_UNUSED_SYMBOLS is not set
|
||||||
CONFIG_DEBUG_FS=y
|
CONFIG_DEBUG_FS=y
|
||||||
# CONFIG_HEADERS_CHECK is not set
|
# CONFIG_HEADERS_CHECK is not set
|
||||||
|
@ -1056,6 +1157,7 @@ CONFIG_TIMER_STATS=y
|
||||||
# CONFIG_DEBUG_OBJECTS is not set
|
# CONFIG_DEBUG_OBJECTS is not set
|
||||||
# CONFIG_SLUB_DEBUG_ON is not set
|
# CONFIG_SLUB_DEBUG_ON is not set
|
||||||
# CONFIG_SLUB_STATS is not set
|
# CONFIG_SLUB_STATS is not set
|
||||||
|
# CONFIG_DEBUG_KMEMLEAK is not set
|
||||||
CONFIG_DEBUG_PREEMPT=y
|
CONFIG_DEBUG_PREEMPT=y
|
||||||
CONFIG_DEBUG_RT_MUTEXES=y
|
CONFIG_DEBUG_RT_MUTEXES=y
|
||||||
CONFIG_DEBUG_PI_LIST=y
|
CONFIG_DEBUG_PI_LIST=y
|
||||||
|
@ -1076,29 +1178,29 @@ CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
# CONFIG_DEBUG_LIST is not set
|
# CONFIG_DEBUG_LIST is not set
|
||||||
# CONFIG_DEBUG_SG is not set
|
# CONFIG_DEBUG_SG is not set
|
||||||
# CONFIG_DEBUG_NOTIFIERS is not set
|
# CONFIG_DEBUG_NOTIFIERS is not set
|
||||||
|
# CONFIG_DEBUG_CREDENTIALS is not set
|
||||||
# CONFIG_BOOT_PRINTK_DELAY is not set
|
# CONFIG_BOOT_PRINTK_DELAY is not set
|
||||||
# CONFIG_RCU_TORTURE_TEST is not set
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
|
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
|
||||||
# CONFIG_BACKTRACE_SELF_TEST is not set
|
# CONFIG_BACKTRACE_SELF_TEST is not set
|
||||||
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
|
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
|
||||||
|
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||||
# CONFIG_FAULT_INJECTION is not set
|
# CONFIG_FAULT_INJECTION is not set
|
||||||
# CONFIG_LATENCYTOP is not set
|
# CONFIG_LATENCYTOP is not set
|
||||||
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
|
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
|
||||||
# CONFIG_PAGE_POISONING is not set
|
# CONFIG_PAGE_POISONING is not set
|
||||||
CONFIG_HAVE_FUNCTION_TRACER=y
|
CONFIG_HAVE_FUNCTION_TRACER=y
|
||||||
CONFIG_TRACING_SUPPORT=y
|
CONFIG_TRACING_SUPPORT=y
|
||||||
|
CONFIG_FTRACE=y
|
||||||
#
|
|
||||||
# Tracers
|
|
||||||
#
|
|
||||||
# CONFIG_FUNCTION_TRACER is not set
|
# CONFIG_FUNCTION_TRACER is not set
|
||||||
# CONFIG_IRQSOFF_TRACER is not set
|
# CONFIG_IRQSOFF_TRACER is not set
|
||||||
# CONFIG_PREEMPT_TRACER is not set
|
# CONFIG_PREEMPT_TRACER is not set
|
||||||
# CONFIG_SCHED_TRACER is not set
|
# CONFIG_SCHED_TRACER is not set
|
||||||
# CONFIG_CONTEXT_SWITCH_TRACER is not set
|
# CONFIG_ENABLE_DEFAULT_TRACERS is not set
|
||||||
# CONFIG_EVENT_TRACER is not set
|
|
||||||
# CONFIG_BOOT_TRACER is not set
|
# CONFIG_BOOT_TRACER is not set
|
||||||
# CONFIG_TRACE_BRANCH_PROFILING is not set
|
CONFIG_BRANCH_PROFILE_NONE=y
|
||||||
|
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
|
||||||
|
# CONFIG_PROFILE_ALL_BRANCHES is not set
|
||||||
# CONFIG_STACK_TRACER is not set
|
# CONFIG_STACK_TRACER is not set
|
||||||
# CONFIG_KMEMTRACE is not set
|
# CONFIG_KMEMTRACE is not set
|
||||||
# CONFIG_WORKQUEUE_TRACER is not set
|
# CONFIG_WORKQUEUE_TRACER is not set
|
||||||
|
@ -1125,7 +1227,6 @@ CONFIG_CRYPTO=y
|
||||||
#
|
#
|
||||||
# Crypto core or helper
|
# Crypto core or helper
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_FIPS is not set
|
|
||||||
# CONFIG_CRYPTO_MANAGER is not set
|
# CONFIG_CRYPTO_MANAGER is not set
|
||||||
# CONFIG_CRYPTO_MANAGER2 is not set
|
# CONFIG_CRYPTO_MANAGER2 is not set
|
||||||
# CONFIG_CRYPTO_GF128MUL is not set
|
# CONFIG_CRYPTO_GF128MUL is not set
|
||||||
|
@ -1157,11 +1258,13 @@ CONFIG_CRYPTO=y
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_HMAC is not set
|
# CONFIG_CRYPTO_HMAC is not set
|
||||||
# CONFIG_CRYPTO_XCBC is not set
|
# CONFIG_CRYPTO_XCBC is not set
|
||||||
|
# CONFIG_CRYPTO_VMAC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Digest
|
# Digest
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_CRC32C is not set
|
# CONFIG_CRYPTO_CRC32C is not set
|
||||||
|
# CONFIG_CRYPTO_GHASH is not set
|
||||||
# CONFIG_CRYPTO_MD4 is not set
|
# CONFIG_CRYPTO_MD4 is not set
|
||||||
# CONFIG_CRYPTO_MD5 is not set
|
# CONFIG_CRYPTO_MD5 is not set
|
||||||
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
|
@ -1,14 +1,13 @@
|
||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.31-rc3-davinci1
|
# Linux kernel version: 2.6.32-rc4
|
||||||
# Fri Jul 17 08:26:52 2009
|
# Mon Oct 12 14:13:12 2009
|
||||||
#
|
#
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
||||||
CONFIG_GENERIC_GPIO=y
|
CONFIG_GENERIC_GPIO=y
|
||||||
CONFIG_GENERIC_TIME=y
|
CONFIG_GENERIC_TIME=y
|
||||||
CONFIG_GENERIC_CLOCKEVENTS=y
|
CONFIG_GENERIC_CLOCKEVENTS=y
|
||||||
CONFIG_MMU=y
|
|
||||||
CONFIG_GENERIC_HARDIRQS=y
|
CONFIG_GENERIC_HARDIRQS=y
|
||||||
CONFIG_STACKTRACE_SUPPORT=y
|
CONFIG_STACKTRACE_SUPPORT=y
|
||||||
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
|
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
|
||||||
|
@ -46,11 +45,12 @@ CONFIG_POSIX_MQUEUE_SYSCTL=y
|
||||||
#
|
#
|
||||||
# RCU Subsystem
|
# RCU Subsystem
|
||||||
#
|
#
|
||||||
CONFIG_CLASSIC_RCU=y
|
CONFIG_TREE_RCU=y
|
||||||
# CONFIG_TREE_RCU is not set
|
# CONFIG_TREE_PREEMPT_RCU is not set
|
||||||
# CONFIG_PREEMPT_RCU is not set
|
# CONFIG_RCU_TRACE is not set
|
||||||
|
CONFIG_RCU_FANOUT=32
|
||||||
|
# CONFIG_RCU_FANOUT_EXACT is not set
|
||||||
# CONFIG_TREE_RCU_TRACE is not set
|
# CONFIG_TREE_RCU_TRACE is not set
|
||||||
# CONFIG_PREEMPT_RCU_TRACE is not set
|
|
||||||
CONFIG_IKCONFIG=y
|
CONFIG_IKCONFIG=y
|
||||||
CONFIG_IKCONFIG_PROC=y
|
CONFIG_IKCONFIG_PROC=y
|
||||||
CONFIG_LOG_BUF_SHIFT=14
|
CONFIG_LOG_BUF_SHIFT=14
|
||||||
|
@ -91,17 +91,15 @@ CONFIG_SHMEM=y
|
||||||
CONFIG_AIO=y
|
CONFIG_AIO=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Performance Counters
|
# Kernel Performance Events And Counters
|
||||||
#
|
#
|
||||||
CONFIG_VM_EVENT_COUNTERS=y
|
CONFIG_VM_EVENT_COUNTERS=y
|
||||||
CONFIG_SLUB_DEBUG=y
|
CONFIG_SLUB_DEBUG=y
|
||||||
# CONFIG_STRIP_ASM_SYMS is not set
|
|
||||||
CONFIG_COMPAT_BRK=y
|
CONFIG_COMPAT_BRK=y
|
||||||
# CONFIG_SLAB is not set
|
# CONFIG_SLAB is not set
|
||||||
CONFIG_SLUB=y
|
CONFIG_SLUB=y
|
||||||
# CONFIG_SLOB is not set
|
# CONFIG_SLOB is not set
|
||||||
# CONFIG_PROFILING is not set
|
# CONFIG_PROFILING is not set
|
||||||
# CONFIG_MARKERS is not set
|
|
||||||
CONFIG_HAVE_OPROFILE=y
|
CONFIG_HAVE_OPROFILE=y
|
||||||
# CONFIG_KPROBES is not set
|
# CONFIG_KPROBES is not set
|
||||||
CONFIG_HAVE_KPROBES=y
|
CONFIG_HAVE_KPROBES=y
|
||||||
|
@ -145,6 +143,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
#
|
#
|
||||||
# System Type
|
# System Type
|
||||||
#
|
#
|
||||||
|
CONFIG_MMU=y
|
||||||
# CONFIG_ARCH_AAEC2000 is not set
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
# CONFIG_ARCH_INTEGRATOR is not set
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
# CONFIG_ARCH_REALVIEW is not set
|
# CONFIG_ARCH_REALVIEW is not set
|
||||||
|
@ -159,6 +158,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
# CONFIG_ARCH_STMP3XXX is not set
|
# CONFIG_ARCH_STMP3XXX is not set
|
||||||
# CONFIG_ARCH_NETX is not set
|
# CONFIG_ARCH_NETX is not set
|
||||||
# CONFIG_ARCH_H720X is not set
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
# CONFIG_ARCH_NOMADIK is not set
|
||||||
# CONFIG_ARCH_IOP13XX is not set
|
# CONFIG_ARCH_IOP13XX is not set
|
||||||
# CONFIG_ARCH_IOP32X is not set
|
# CONFIG_ARCH_IOP32X is not set
|
||||||
# CONFIG_ARCH_IOP33X is not set
|
# CONFIG_ARCH_IOP33X is not set
|
||||||
|
@ -181,11 +181,13 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
# CONFIG_ARCH_SA1100 is not set
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
# CONFIG_ARCH_S3C2410 is not set
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
# CONFIG_ARCH_S3C64XX is not set
|
# CONFIG_ARCH_S3C64XX is not set
|
||||||
|
# CONFIG_ARCH_S5PC1XX is not set
|
||||||
# CONFIG_ARCH_SHARK is not set
|
# CONFIG_ARCH_SHARK is not set
|
||||||
# CONFIG_ARCH_LH7A40X is not set
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
# CONFIG_ARCH_U300 is not set
|
# CONFIG_ARCH_U300 is not set
|
||||||
CONFIG_ARCH_DAVINCI=y
|
CONFIG_ARCH_DAVINCI=y
|
||||||
# CONFIG_ARCH_OMAP is not set
|
# CONFIG_ARCH_OMAP is not set
|
||||||
|
# CONFIG_ARCH_BCMRING is not set
|
||||||
CONFIG_AINTC=y
|
CONFIG_AINTC=y
|
||||||
CONFIG_ARCH_DAVINCI_DMx=y
|
CONFIG_ARCH_DAVINCI_DMx=y
|
||||||
|
|
||||||
|
@ -208,6 +210,7 @@ CONFIG_ARCH_DAVINCI_DM365=y
|
||||||
#
|
#
|
||||||
CONFIG_MACH_DAVINCI_EVM=y
|
CONFIG_MACH_DAVINCI_EVM=y
|
||||||
CONFIG_MACH_SFFSDR=y
|
CONFIG_MACH_SFFSDR=y
|
||||||
|
CONFIG_MACH_NEUROS_OSD2=y
|
||||||
CONFIG_MACH_DAVINCI_DM355_EVM=y
|
CONFIG_MACH_DAVINCI_DM355_EVM=y
|
||||||
CONFIG_MACH_DM355_LEOPARD=y
|
CONFIG_MACH_DM355_LEOPARD=y
|
||||||
CONFIG_MACH_DAVINCI_DM6467_EVM=y
|
CONFIG_MACH_DAVINCI_DM6467_EVM=y
|
||||||
|
@ -224,7 +227,7 @@ CONFIG_CPU_32=y
|
||||||
CONFIG_CPU_ARM926T=y
|
CONFIG_CPU_ARM926T=y
|
||||||
CONFIG_CPU_32v5=y
|
CONFIG_CPU_32v5=y
|
||||||
CONFIG_CPU_ABRT_EV5TJ=y
|
CONFIG_CPU_ABRT_EV5TJ=y
|
||||||
CONFIG_CPU_PABRT_NOIFAR=y
|
CONFIG_CPU_PABRT_LEGACY=y
|
||||||
CONFIG_CPU_CACHE_VIVT=y
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
CONFIG_CPU_COPY_V4WB=y
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
CONFIG_CPU_TLB_V4WBI=y
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
@ -239,6 +242,7 @@ CONFIG_ARM_THUMB=y
|
||||||
# CONFIG_CPU_DCACHE_DISABLE is not set
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
||||||
# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
|
# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
|
||||||
|
CONFIG_ARM_L1_CACHE_SHIFT=5
|
||||||
CONFIG_COMMON_CLKDEV=y
|
CONFIG_COMMON_CLKDEV=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -259,6 +263,8 @@ CONFIG_VMSPLIT_3G=y
|
||||||
# CONFIG_VMSPLIT_2G is not set
|
# CONFIG_VMSPLIT_2G is not set
|
||||||
# CONFIG_VMSPLIT_1G is not set
|
# CONFIG_VMSPLIT_1G is not set
|
||||||
CONFIG_PAGE_OFFSET=0xC0000000
|
CONFIG_PAGE_OFFSET=0xC0000000
|
||||||
|
# CONFIG_PREEMPT_NONE is not set
|
||||||
|
# CONFIG_PREEMPT_VOLUNTARY is not set
|
||||||
CONFIG_PREEMPT=y
|
CONFIG_PREEMPT=y
|
||||||
CONFIG_HZ=100
|
CONFIG_HZ=100
|
||||||
CONFIG_AEABI=y
|
CONFIG_AEABI=y
|
||||||
|
@ -280,6 +286,7 @@ CONFIG_BOUNCE=y
|
||||||
CONFIG_VIRT_TO_BUS=y
|
CONFIG_VIRT_TO_BUS=y
|
||||||
CONFIG_HAVE_MLOCK=y
|
CONFIG_HAVE_MLOCK=y
|
||||||
CONFIG_HAVE_MLOCKED_PAGE_BIT=y
|
CONFIG_HAVE_MLOCKED_PAGE_BIT=y
|
||||||
|
# CONFIG_KSM is not set
|
||||||
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
|
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
|
||||||
CONFIG_LEDS=y
|
CONFIG_LEDS=y
|
||||||
# CONFIG_LEDS_CPU is not set
|
# CONFIG_LEDS_CPU is not set
|
||||||
|
@ -412,6 +419,7 @@ CONFIG_NETFILTER_ADVANCED=y
|
||||||
# CONFIG_IP6_NF_IPTABLES is not set
|
# CONFIG_IP6_NF_IPTABLES is not set
|
||||||
# CONFIG_IP_DCCP is not set
|
# CONFIG_IP_DCCP is not set
|
||||||
# CONFIG_IP_SCTP is not set
|
# CONFIG_IP_SCTP is not set
|
||||||
|
# CONFIG_RDS is not set
|
||||||
# CONFIG_TIPC is not set
|
# CONFIG_TIPC is not set
|
||||||
# CONFIG_ATM is not set
|
# CONFIG_ATM is not set
|
||||||
# CONFIG_BRIDGE is not set
|
# CONFIG_BRIDGE is not set
|
||||||
|
@ -452,6 +460,7 @@ CONFIG_NETFILTER_ADVANCED=y
|
||||||
# Generic Driver Options
|
# Generic Driver Options
|
||||||
#
|
#
|
||||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||||
|
# CONFIG_DEVTMPFS is not set
|
||||||
CONFIG_STANDALONE=y
|
CONFIG_STANDALONE=y
|
||||||
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
# CONFIG_FW_LOADER is not set
|
# CONFIG_FW_LOADER is not set
|
||||||
|
@ -461,9 +470,9 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
# CONFIG_CONNECTOR is not set
|
# CONFIG_CONNECTOR is not set
|
||||||
CONFIG_MTD=m
|
CONFIG_MTD=m
|
||||||
# CONFIG_MTD_DEBUG is not set
|
# CONFIG_MTD_DEBUG is not set
|
||||||
|
# CONFIG_MTD_TESTS is not set
|
||||||
# CONFIG_MTD_CONCAT is not set
|
# CONFIG_MTD_CONCAT is not set
|
||||||
CONFIG_MTD_PARTITIONS=y
|
CONFIG_MTD_PARTITIONS=y
|
||||||
# CONFIG_MTD_TESTS is not set
|
|
||||||
# CONFIG_MTD_REDBOOT_PARTS is not set
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
# CONFIG_MTD_AFS_PARTS is not set
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
# CONFIG_MTD_AR7_PARTS is not set
|
# CONFIG_MTD_AR7_PARTS is not set
|
||||||
|
@ -499,7 +508,7 @@ CONFIG_MTD_CFI_I1=y
|
||||||
CONFIG_MTD_CFI_I2=y
|
CONFIG_MTD_CFI_I2=y
|
||||||
# CONFIG_MTD_CFI_I4 is not set
|
# CONFIG_MTD_CFI_I4 is not set
|
||||||
# CONFIG_MTD_CFI_I8 is not set
|
# CONFIG_MTD_CFI_I8 is not set
|
||||||
# CONFIG_MTD_CFI_INTELEXT is not set
|
CONFIG_MTD_CFI_INTELEXT=m
|
||||||
CONFIG_MTD_CFI_AMDSTD=m
|
CONFIG_MTD_CFI_AMDSTD=m
|
||||||
# CONFIG_MTD_CFI_STAA is not set
|
# CONFIG_MTD_CFI_STAA is not set
|
||||||
CONFIG_MTD_CFI_UTIL=m
|
CONFIG_MTD_CFI_UTIL=m
|
||||||
|
@ -694,12 +703,10 @@ CONFIG_DM9000_DEBUGLEVEL=4
|
||||||
# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set
|
# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set
|
||||||
# CONFIG_B44 is not set
|
# CONFIG_B44 is not set
|
||||||
# CONFIG_KS8842 is not set
|
# CONFIG_KS8842 is not set
|
||||||
|
# CONFIG_KS8851_MLL is not set
|
||||||
# CONFIG_NETDEV_1000 is not set
|
# CONFIG_NETDEV_1000 is not set
|
||||||
# CONFIG_NETDEV_10000 is not set
|
# CONFIG_NETDEV_10000 is not set
|
||||||
|
CONFIG_WLAN=y
|
||||||
#
|
|
||||||
# Wireless LAN
|
|
||||||
#
|
|
||||||
# CONFIG_WLAN_PRE80211 is not set
|
# CONFIG_WLAN_PRE80211 is not set
|
||||||
# CONFIG_WLAN_80211 is not set
|
# CONFIG_WLAN_80211 is not set
|
||||||
|
|
||||||
|
@ -734,6 +741,7 @@ CONFIG_NETPOLL=y
|
||||||
CONFIG_NETPOLL_TRAP=y
|
CONFIG_NETPOLL_TRAP=y
|
||||||
CONFIG_NET_POLL_CONTROLLER=y
|
CONFIG_NET_POLL_CONTROLLER=y
|
||||||
# CONFIG_ISDN is not set
|
# CONFIG_ISDN is not set
|
||||||
|
# CONFIG_PHONE is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Input device support
|
# Input device support
|
||||||
|
@ -745,10 +753,7 @@ CONFIG_INPUT=y
|
||||||
#
|
#
|
||||||
# Userland interfaces
|
# Userland interfaces
|
||||||
#
|
#
|
||||||
CONFIG_INPUT_MOUSEDEV=m
|
# CONFIG_INPUT_MOUSEDEV is not set
|
||||||
CONFIG_INPUT_MOUSEDEV_PSAUX=y
|
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
|
||||||
# CONFIG_INPUT_JOYDEV is not set
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
CONFIG_INPUT_EVDEV=m
|
CONFIG_INPUT_EVDEV=m
|
||||||
CONFIG_INPUT_EVBUG=m
|
CONFIG_INPUT_EVBUG=m
|
||||||
|
@ -757,12 +762,16 @@ CONFIG_INPUT_EVBUG=m
|
||||||
# Input Device Drivers
|
# Input Device Drivers
|
||||||
#
|
#
|
||||||
CONFIG_INPUT_KEYBOARD=y
|
CONFIG_INPUT_KEYBOARD=y
|
||||||
|
# CONFIG_KEYBOARD_ADP5588 is not set
|
||||||
CONFIG_KEYBOARD_ATKBD=m
|
CONFIG_KEYBOARD_ATKBD=m
|
||||||
|
# CONFIG_QT2160 is not set
|
||||||
# CONFIG_KEYBOARD_LKKBD is not set
|
# CONFIG_KEYBOARD_LKKBD is not set
|
||||||
CONFIG_KEYBOARD_GPIO=y
|
CONFIG_KEYBOARD_GPIO=y
|
||||||
# CONFIG_KEYBOARD_MATRIX is not set
|
# CONFIG_KEYBOARD_MATRIX is not set
|
||||||
# CONFIG_KEYBOARD_LM8323 is not set
|
# CONFIG_KEYBOARD_LM8323 is not set
|
||||||
|
# CONFIG_KEYBOARD_MAX7359 is not set
|
||||||
# CONFIG_KEYBOARD_NEWTON is not set
|
# CONFIG_KEYBOARD_NEWTON is not set
|
||||||
|
# CONFIG_KEYBOARD_OPENCORES is not set
|
||||||
# CONFIG_KEYBOARD_STOWAWAY is not set
|
# CONFIG_KEYBOARD_STOWAWAY is not set
|
||||||
# CONFIG_KEYBOARD_SUNKBD is not set
|
# CONFIG_KEYBOARD_SUNKBD is not set
|
||||||
CONFIG_KEYBOARD_XTKBD=m
|
CONFIG_KEYBOARD_XTKBD=m
|
||||||
|
@ -777,6 +786,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
||||||
# CONFIG_TOUCHSCREEN_ELO is not set
|
# CONFIG_TOUCHSCREEN_ELO is not set
|
||||||
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
|
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MCS5000 is not set
|
||||||
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
||||||
# CONFIG_TOUCHSCREEN_INEXIO is not set
|
# CONFIG_TOUCHSCREEN_INEXIO is not set
|
||||||
# CONFIG_TOUCHSCREEN_MK712 is not set
|
# CONFIG_TOUCHSCREEN_MK712 is not set
|
||||||
|
@ -787,7 +797,17 @@ CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
|
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
|
||||||
# CONFIG_TOUCHSCREEN_TSC2007 is not set
|
# CONFIG_TOUCHSCREEN_TSC2007 is not set
|
||||||
# CONFIG_TOUCHSCREEN_W90X900 is not set
|
# CONFIG_TOUCHSCREEN_W90X900 is not set
|
||||||
# CONFIG_INPUT_MISC is not set
|
CONFIG_INPUT_MISC=y
|
||||||
|
# CONFIG_INPUT_ATI_REMOTE is not set
|
||||||
|
# CONFIG_INPUT_ATI_REMOTE2 is not set
|
||||||
|
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
|
||||||
|
# CONFIG_INPUT_POWERMATE is not set
|
||||||
|
# CONFIG_INPUT_YEALINK is not set
|
||||||
|
# CONFIG_INPUT_CM109 is not set
|
||||||
|
# CONFIG_INPUT_UINPUT is not set
|
||||||
|
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
|
||||||
|
CONFIG_INPUT_DM355EVM=m
|
||||||
|
CONFIG_INPUT_DM365EVM=m
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hardware I/O ports
|
# Hardware I/O ports
|
||||||
|
@ -828,13 +848,13 @@ CONFIG_UNIX98_PTYS=y
|
||||||
CONFIG_LEGACY_PTYS=y
|
CONFIG_LEGACY_PTYS=y
|
||||||
CONFIG_LEGACY_PTY_COUNT=256
|
CONFIG_LEGACY_PTY_COUNT=256
|
||||||
# CONFIG_IPMI_HANDLER is not set
|
# CONFIG_IPMI_HANDLER is not set
|
||||||
CONFIG_HW_RANDOM=m
|
# CONFIG_HW_RANDOM is not set
|
||||||
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
|
|
||||||
# CONFIG_R3964 is not set
|
# CONFIG_R3964 is not set
|
||||||
# CONFIG_RAW_DRIVER is not set
|
# CONFIG_RAW_DRIVER is not set
|
||||||
# CONFIG_TCG_TPM is not set
|
# CONFIG_TCG_TPM is not set
|
||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_I2C_BOARDINFO=y
|
CONFIG_I2C_BOARDINFO=y
|
||||||
|
CONFIG_I2C_COMPAT=y
|
||||||
CONFIG_I2C_CHARDEV=y
|
CONFIG_I2C_CHARDEV=y
|
||||||
CONFIG_I2C_HELPER_AUTO=y
|
CONFIG_I2C_HELPER_AUTO=y
|
||||||
|
|
||||||
|
@ -868,13 +888,17 @@ CONFIG_I2C_DAVINCI=y
|
||||||
# Miscellaneous I2C Chip support
|
# Miscellaneous I2C Chip support
|
||||||
#
|
#
|
||||||
# CONFIG_DS1682 is not set
|
# CONFIG_DS1682 is not set
|
||||||
# CONFIG_SENSORS_PCA9539 is not set
|
|
||||||
# CONFIG_SENSORS_TSL2550 is not set
|
# CONFIG_SENSORS_TSL2550 is not set
|
||||||
# CONFIG_I2C_DEBUG_CORE is not set
|
# CONFIG_I2C_DEBUG_CORE is not set
|
||||||
# CONFIG_I2C_DEBUG_ALGO is not set
|
# CONFIG_I2C_DEBUG_ALGO is not set
|
||||||
# CONFIG_I2C_DEBUG_BUS is not set
|
# CONFIG_I2C_DEBUG_BUS is not set
|
||||||
# CONFIG_I2C_DEBUG_CHIP is not set
|
# CONFIG_I2C_DEBUG_CHIP is not set
|
||||||
# CONFIG_SPI is not set
|
# CONFIG_SPI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PPS support
|
||||||
|
#
|
||||||
|
# CONFIG_PPS is not set
|
||||||
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
CONFIG_ARCH_REQUIRE_GPIOLIB=y
|
||||||
CONFIG_GPIOLIB=y
|
CONFIG_GPIOLIB=y
|
||||||
# CONFIG_DEBUG_GPIO is not set
|
# CONFIG_DEBUG_GPIO is not set
|
||||||
|
@ -889,7 +913,7 @@ CONFIG_GPIOLIB=y
|
||||||
#
|
#
|
||||||
# CONFIG_GPIO_MAX732X is not set
|
# CONFIG_GPIO_MAX732X is not set
|
||||||
# CONFIG_GPIO_PCA953X is not set
|
# CONFIG_GPIO_PCA953X is not set
|
||||||
CONFIG_GPIO_PCF857X=m
|
CONFIG_GPIO_PCF857X=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# PCI GPIO expanders:
|
# PCI GPIO expanders:
|
||||||
|
@ -898,10 +922,19 @@ CONFIG_GPIO_PCF857X=m
|
||||||
#
|
#
|
||||||
# SPI GPIO expanders:
|
# SPI GPIO expanders:
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# AC97 GPIO expanders:
|
||||||
|
#
|
||||||
# CONFIG_W1 is not set
|
# CONFIG_W1 is not set
|
||||||
# CONFIG_POWER_SUPPLY is not set
|
# CONFIG_POWER_SUPPLY is not set
|
||||||
CONFIG_HWMON=y
|
CONFIG_HWMON=y
|
||||||
# CONFIG_HWMON_VID is not set
|
# CONFIG_HWMON_VID is not set
|
||||||
|
# CONFIG_HWMON_DEBUG_CHIP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Native drivers
|
||||||
|
#
|
||||||
# CONFIG_SENSORS_AD7414 is not set
|
# CONFIG_SENSORS_AD7414 is not set
|
||||||
# CONFIG_SENSORS_AD7418 is not set
|
# CONFIG_SENSORS_AD7418 is not set
|
||||||
# CONFIG_SENSORS_ADM1021 is not set
|
# CONFIG_SENSORS_ADM1021 is not set
|
||||||
|
@ -950,6 +983,7 @@ CONFIG_HWMON=y
|
||||||
# CONFIG_SENSORS_ADS7828 is not set
|
# CONFIG_SENSORS_ADS7828 is not set
|
||||||
# CONFIG_SENSORS_THMC50 is not set
|
# CONFIG_SENSORS_THMC50 is not set
|
||||||
# CONFIG_SENSORS_TMP401 is not set
|
# CONFIG_SENSORS_TMP401 is not set
|
||||||
|
# CONFIG_SENSORS_TMP421 is not set
|
||||||
# CONFIG_SENSORS_VT1211 is not set
|
# CONFIG_SENSORS_VT1211 is not set
|
||||||
# CONFIG_SENSORS_W83781D is not set
|
# CONFIG_SENSORS_W83781D is not set
|
||||||
# CONFIG_SENSORS_W83791D is not set
|
# CONFIG_SENSORS_W83791D is not set
|
||||||
|
@ -959,9 +993,7 @@ CONFIG_HWMON=y
|
||||||
# CONFIG_SENSORS_W83L786NG is not set
|
# CONFIG_SENSORS_W83L786NG is not set
|
||||||
# CONFIG_SENSORS_W83627HF is not set
|
# CONFIG_SENSORS_W83627HF is not set
|
||||||
# CONFIG_SENSORS_W83627EHF is not set
|
# CONFIG_SENSORS_W83627EHF is not set
|
||||||
# CONFIG_HWMON_DEBUG_CHIP is not set
|
|
||||||
# CONFIG_THERMAL is not set
|
# CONFIG_THERMAL is not set
|
||||||
# CONFIG_THERMAL_HWMON is not set
|
|
||||||
CONFIG_WATCHDOG=y
|
CONFIG_WATCHDOG=y
|
||||||
# CONFIG_WATCHDOG_NOWAYOUT is not set
|
# CONFIG_WATCHDOG_NOWAYOUT is not set
|
||||||
|
|
||||||
|
@ -988,7 +1020,7 @@ CONFIG_SSB_POSSIBLE=y
|
||||||
# CONFIG_MFD_CORE is not set
|
# CONFIG_MFD_CORE is not set
|
||||||
# CONFIG_MFD_SM501 is not set
|
# CONFIG_MFD_SM501 is not set
|
||||||
# CONFIG_MFD_ASIC3 is not set
|
# CONFIG_MFD_ASIC3 is not set
|
||||||
# CONFIG_MFD_DM355EVM_MSP is not set
|
CONFIG_MFD_DM355EVM_MSP=y
|
||||||
# CONFIG_HTC_EGPIO is not set
|
# CONFIG_HTC_EGPIO is not set
|
||||||
# CONFIG_HTC_PASIC3 is not set
|
# CONFIG_HTC_PASIC3 is not set
|
||||||
# CONFIG_TPS65010 is not set
|
# CONFIG_TPS65010 is not set
|
||||||
|
@ -999,9 +1031,11 @@ CONFIG_SSB_POSSIBLE=y
|
||||||
# CONFIG_MFD_TC6393XB is not set
|
# CONFIG_MFD_TC6393XB is not set
|
||||||
# CONFIG_PMIC_DA903X is not set
|
# CONFIG_PMIC_DA903X is not set
|
||||||
# CONFIG_MFD_WM8400 is not set
|
# CONFIG_MFD_WM8400 is not set
|
||||||
|
# CONFIG_MFD_WM831X is not set
|
||||||
# CONFIG_MFD_WM8350_I2C is not set
|
# CONFIG_MFD_WM8350_I2C is not set
|
||||||
# CONFIG_MFD_PCF50633 is not set
|
# CONFIG_MFD_PCF50633 is not set
|
||||||
# CONFIG_AB3100_CORE is not set
|
# CONFIG_AB3100_CORE is not set
|
||||||
|
# CONFIG_REGULATOR is not set
|
||||||
# CONFIG_MEDIA_SUPPORT is not set
|
# CONFIG_MEDIA_SUPPORT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1013,9 +1047,9 @@ CONFIG_FB=y
|
||||||
CONFIG_FIRMWARE_EDID=y
|
CONFIG_FIRMWARE_EDID=y
|
||||||
# CONFIG_FB_DDC is not set
|
# CONFIG_FB_DDC is not set
|
||||||
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
|
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
|
||||||
# CONFIG_FB_CFB_FILLRECT is not set
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
# CONFIG_FB_CFB_COPYAREA is not set
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
# CONFIG_FB_CFB_IMAGEBLIT is not set
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
|
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
|
||||||
# CONFIG_FB_SYS_FILLRECT is not set
|
# CONFIG_FB_SYS_FILLRECT is not set
|
||||||
# CONFIG_FB_SYS_COPYAREA is not set
|
# CONFIG_FB_SYS_COPYAREA is not set
|
||||||
|
@ -1032,6 +1066,7 @@ CONFIG_FIRMWARE_EDID=y
|
||||||
# Frame buffer hardware drivers
|
# Frame buffer hardware drivers
|
||||||
#
|
#
|
||||||
# CONFIG_FB_S1D13XXX is not set
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
CONFIG_FB_DAVINCI=y
|
||||||
# CONFIG_FB_VIRTUAL is not set
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
# CONFIG_FB_METRONOME is not set
|
# CONFIG_FB_METRONOME is not set
|
||||||
# CONFIG_FB_MB862XX is not set
|
# CONFIG_FB_MB862XX is not set
|
||||||
|
@ -1101,7 +1136,6 @@ CONFIG_SND_SOC_TLV320AIC3X=m
|
||||||
# CONFIG_SOUND_PRIME is not set
|
# CONFIG_SOUND_PRIME is not set
|
||||||
CONFIG_HID_SUPPORT=y
|
CONFIG_HID_SUPPORT=y
|
||||||
CONFIG_HID=m
|
CONFIG_HID=m
|
||||||
# CONFIG_HID_DEBUG is not set
|
|
||||||
# CONFIG_HIDRAW is not set
|
# CONFIG_HIDRAW is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1130,6 +1164,7 @@ CONFIG_HID_CYPRESS=m
|
||||||
CONFIG_HID_EZKEY=m
|
CONFIG_HID_EZKEY=m
|
||||||
# CONFIG_HID_KYE is not set
|
# CONFIG_HID_KYE is not set
|
||||||
CONFIG_HID_GYRATION=m
|
CONFIG_HID_GYRATION=m
|
||||||
|
# CONFIG_HID_TWINHAN is not set
|
||||||
# CONFIG_HID_KENSINGTON is not set
|
# CONFIG_HID_KENSINGTON is not set
|
||||||
CONFIG_HID_LOGITECH=m
|
CONFIG_HID_LOGITECH=m
|
||||||
# CONFIG_LOGITECH_FF is not set
|
# CONFIG_LOGITECH_FF is not set
|
||||||
|
@ -1176,6 +1211,7 @@ CONFIG_USB_MON=m
|
||||||
# CONFIG_USB_OXU210HP_HCD is not set
|
# CONFIG_USB_OXU210HP_HCD is not set
|
||||||
# CONFIG_USB_ISP116X_HCD is not set
|
# CONFIG_USB_ISP116X_HCD is not set
|
||||||
# CONFIG_USB_ISP1760_HCD is not set
|
# CONFIG_USB_ISP1760_HCD is not set
|
||||||
|
# CONFIG_USB_ISP1362_HCD is not set
|
||||||
# CONFIG_USB_SL811_HCD is not set
|
# CONFIG_USB_SL811_HCD is not set
|
||||||
# CONFIG_USB_R8A66597_HCD is not set
|
# CONFIG_USB_R8A66597_HCD is not set
|
||||||
# CONFIG_USB_HWA_HCD is not set
|
# CONFIG_USB_HWA_HCD is not set
|
||||||
|
@ -1269,6 +1305,7 @@ CONFIG_USB_GADGET_SELECTED=y
|
||||||
# CONFIG_USB_GADGET_LH7A40X is not set
|
# CONFIG_USB_GADGET_LH7A40X is not set
|
||||||
# CONFIG_USB_GADGET_OMAP is not set
|
# CONFIG_USB_GADGET_OMAP is not set
|
||||||
# CONFIG_USB_GADGET_PXA25X is not set
|
# CONFIG_USB_GADGET_PXA25X is not set
|
||||||
|
# CONFIG_USB_GADGET_R8A66597 is not set
|
||||||
# CONFIG_USB_GADGET_PXA27X is not set
|
# CONFIG_USB_GADGET_PXA27X is not set
|
||||||
# CONFIG_USB_GADGET_S3C_HSOTG is not set
|
# CONFIG_USB_GADGET_S3C_HSOTG is not set
|
||||||
# CONFIG_USB_GADGET_IMX is not set
|
# CONFIG_USB_GADGET_IMX is not set
|
||||||
|
@ -1286,6 +1323,7 @@ CONFIG_USB_ZERO=m
|
||||||
# CONFIG_USB_AUDIO is not set
|
# CONFIG_USB_AUDIO is not set
|
||||||
CONFIG_USB_ETH=m
|
CONFIG_USB_ETH=m
|
||||||
CONFIG_USB_ETH_RNDIS=y
|
CONFIG_USB_ETH_RNDIS=y
|
||||||
|
# CONFIG_USB_ETH_EEM is not set
|
||||||
CONFIG_USB_GADGETFS=m
|
CONFIG_USB_GADGETFS=m
|
||||||
CONFIG_USB_FILE_STORAGE=m
|
CONFIG_USB_FILE_STORAGE=m
|
||||||
# CONFIG_USB_FILE_STORAGE_TEST is not set
|
# CONFIG_USB_FILE_STORAGE_TEST is not set
|
||||||
|
@ -1316,8 +1354,10 @@ CONFIG_MMC_BLOCK=m
|
||||||
# MMC/SD/SDIO Host Controller Drivers
|
# MMC/SD/SDIO Host Controller Drivers
|
||||||
#
|
#
|
||||||
# CONFIG_MMC_SDHCI is not set
|
# CONFIG_MMC_SDHCI is not set
|
||||||
|
# CONFIG_MMC_AT91 is not set
|
||||||
|
# CONFIG_MMC_ATMELMCI is not set
|
||||||
|
CONFIG_MMC_DAVINCI=m
|
||||||
# CONFIG_MEMSTICK is not set
|
# CONFIG_MEMSTICK is not set
|
||||||
# CONFIG_ACCESSIBILITY is not set
|
|
||||||
CONFIG_NEW_LEDS=y
|
CONFIG_NEW_LEDS=y
|
||||||
CONFIG_LEDS_CLASS=m
|
CONFIG_LEDS_CLASS=m
|
||||||
|
|
||||||
|
@ -1345,6 +1385,7 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=m
|
||||||
#
|
#
|
||||||
# iptables trigger is under Netfilter config (LED target)
|
# iptables trigger is under Netfilter config (LED target)
|
||||||
#
|
#
|
||||||
|
# CONFIG_ACCESSIBILITY is not set
|
||||||
CONFIG_RTC_LIB=y
|
CONFIG_RTC_LIB=y
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=m
|
||||||
|
|
||||||
|
@ -1370,6 +1411,7 @@ CONFIG_RTC_INTF_DEV=y
|
||||||
# CONFIG_RTC_DRV_PCF8563 is not set
|
# CONFIG_RTC_DRV_PCF8563 is not set
|
||||||
# CONFIG_RTC_DRV_PCF8583 is not set
|
# CONFIG_RTC_DRV_PCF8583 is not set
|
||||||
# CONFIG_RTC_DRV_M41T80 is not set
|
# CONFIG_RTC_DRV_M41T80 is not set
|
||||||
|
# CONFIG_RTC_DRV_DM355EVM is not set
|
||||||
# CONFIG_RTC_DRV_S35390A is not set
|
# CONFIG_RTC_DRV_S35390A is not set
|
||||||
# CONFIG_RTC_DRV_FM3130 is not set
|
# CONFIG_RTC_DRV_FM3130 is not set
|
||||||
# CONFIG_RTC_DRV_RX8581 is not set
|
# CONFIG_RTC_DRV_RX8581 is not set
|
||||||
|
@ -1399,8 +1441,11 @@ CONFIG_RTC_INTF_DEV=y
|
||||||
#
|
#
|
||||||
# CONFIG_DMADEVICES is not set
|
# CONFIG_DMADEVICES is not set
|
||||||
# CONFIG_AUXDISPLAY is not set
|
# CONFIG_AUXDISPLAY is not set
|
||||||
# CONFIG_REGULATOR is not set
|
|
||||||
# CONFIG_UIO is not set
|
# CONFIG_UIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TI VLYNQ
|
||||||
|
#
|
||||||
# CONFIG_STAGING is not set
|
# CONFIG_STAGING is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1429,6 +1474,7 @@ CONFIG_XFS_FS=m
|
||||||
# CONFIG_GFS2_FS is not set
|
# CONFIG_GFS2_FS is not set
|
||||||
# CONFIG_OCFS2_FS is not set
|
# CONFIG_OCFS2_FS is not set
|
||||||
# CONFIG_BTRFS_FS is not set
|
# CONFIG_BTRFS_FS is not set
|
||||||
|
# CONFIG_NILFS2_FS is not set
|
||||||
CONFIG_FILE_LOCKING=y
|
CONFIG_FILE_LOCKING=y
|
||||||
CONFIG_FSNOTIFY=y
|
CONFIG_FSNOTIFY=y
|
||||||
CONFIG_DNOTIFY=y
|
CONFIG_DNOTIFY=y
|
||||||
|
@ -1500,7 +1546,6 @@ CONFIG_MINIX_FS=m
|
||||||
# CONFIG_ROMFS_FS is not set
|
# CONFIG_ROMFS_FS is not set
|
||||||
# CONFIG_SYSV_FS is not set
|
# CONFIG_SYSV_FS is not set
|
||||||
# CONFIG_UFS_FS is not set
|
# CONFIG_UFS_FS is not set
|
||||||
# CONFIG_NILFS2_FS is not set
|
|
||||||
CONFIG_NETWORK_FILESYSTEMS=y
|
CONFIG_NETWORK_FILESYSTEMS=y
|
||||||
CONFIG_NFS_FS=y
|
CONFIG_NFS_FS=y
|
||||||
CONFIG_NFS_V3=y
|
CONFIG_NFS_V3=y
|
||||||
|
@ -1596,6 +1641,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y
|
||||||
CONFIG_ENABLE_MUST_CHECK=y
|
CONFIG_ENABLE_MUST_CHECK=y
|
||||||
CONFIG_FRAME_WARN=1024
|
CONFIG_FRAME_WARN=1024
|
||||||
# CONFIG_MAGIC_SYSRQ is not set
|
# CONFIG_MAGIC_SYSRQ is not set
|
||||||
|
# CONFIG_STRIP_ASM_SYMS is not set
|
||||||
# CONFIG_UNUSED_SYMBOLS is not set
|
# CONFIG_UNUSED_SYMBOLS is not set
|
||||||
CONFIG_DEBUG_FS=y
|
CONFIG_DEBUG_FS=y
|
||||||
# CONFIG_HEADERS_CHECK is not set
|
# CONFIG_HEADERS_CHECK is not set
|
||||||
|
@ -1634,11 +1680,14 @@ CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
# CONFIG_DEBUG_LIST is not set
|
# CONFIG_DEBUG_LIST is not set
|
||||||
# CONFIG_DEBUG_SG is not set
|
# CONFIG_DEBUG_SG is not set
|
||||||
# CONFIG_DEBUG_NOTIFIERS is not set
|
# CONFIG_DEBUG_NOTIFIERS is not set
|
||||||
|
# CONFIG_DEBUG_CREDENTIALS is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
# CONFIG_BOOT_PRINTK_DELAY is not set
|
# CONFIG_BOOT_PRINTK_DELAY is not set
|
||||||
# CONFIG_RCU_TORTURE_TEST is not set
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
|
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
|
||||||
# CONFIG_BACKTRACE_SELF_TEST is not set
|
# CONFIG_BACKTRACE_SELF_TEST is not set
|
||||||
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
|
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
|
||||||
|
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||||
# CONFIG_FAULT_INJECTION is not set
|
# CONFIG_FAULT_INJECTION is not set
|
||||||
# CONFIG_LATENCYTOP is not set
|
# CONFIG_LATENCYTOP is not set
|
||||||
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
|
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
|
||||||
|
@ -1663,7 +1712,7 @@ CONFIG_BRANCH_PROFILE_NONE=y
|
||||||
# CONFIG_SAMPLES is not set
|
# CONFIG_SAMPLES is not set
|
||||||
CONFIG_HAVE_ARCH_KGDB=y
|
CONFIG_HAVE_ARCH_KGDB=y
|
||||||
# CONFIG_KGDB is not set
|
# CONFIG_KGDB is not set
|
||||||
CONFIG_ARM_UNWIND=y
|
# CONFIG_ARM_UNWIND is not set
|
||||||
CONFIG_DEBUG_USER=y
|
CONFIG_DEBUG_USER=y
|
||||||
CONFIG_DEBUG_ERRORS=y
|
CONFIG_DEBUG_ERRORS=y
|
||||||
# CONFIG_DEBUG_STACK_USAGE is not set
|
# CONFIG_DEBUG_STACK_USAGE is not set
|
||||||
|
@ -1681,7 +1730,6 @@ CONFIG_CRYPTO=y
|
||||||
#
|
#
|
||||||
# Crypto core or helper
|
# Crypto core or helper
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_FIPS is not set
|
|
||||||
# CONFIG_CRYPTO_MANAGER is not set
|
# CONFIG_CRYPTO_MANAGER is not set
|
||||||
# CONFIG_CRYPTO_MANAGER2 is not set
|
# CONFIG_CRYPTO_MANAGER2 is not set
|
||||||
# CONFIG_CRYPTO_GF128MUL is not set
|
# CONFIG_CRYPTO_GF128MUL is not set
|
||||||
|
@ -1713,11 +1761,13 @@ CONFIG_CRYPTO=y
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_HMAC is not set
|
# CONFIG_CRYPTO_HMAC is not set
|
||||||
# CONFIG_CRYPTO_XCBC is not set
|
# CONFIG_CRYPTO_XCBC is not set
|
||||||
|
# CONFIG_CRYPTO_VMAC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Digest
|
# Digest
|
||||||
#
|
#
|
||||||
# CONFIG_CRYPTO_CRC32C is not set
|
# CONFIG_CRYPTO_CRC32C is not set
|
||||||
|
# CONFIG_CRYPTO_GHASH is not set
|
||||||
# CONFIG_CRYPTO_MD4 is not set
|
# CONFIG_CRYPTO_MD4 is not set
|
||||||
# CONFIG_CRYPTO_MD5 is not set
|
# CONFIG_CRYPTO_MD5 is not set
|
||||||
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
||||||
|
|
|
@ -963,10 +963,32 @@ CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
#
|
#
|
||||||
# CONFIG_FB_S1D13XXX is not set
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
# CONFIG_FB_VIRTUAL is not set
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
CONFIG_FB_OMAP=y
|
# CONFIG_FB_METRONOME is not set
|
||||||
# CONFIG_FB_OMAP_LCDC_EXTERNAL is not set
|
# CONFIG_FB_MB862XX is not set
|
||||||
|
# CONFIG_FB_BROADSHEET is not set
|
||||||
|
# CONFIG_FB_OMAP_LCD_VGA is not set
|
||||||
# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
|
# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
|
||||||
CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE=2
|
CONFIG_OMAP2_VRAM=y
|
||||||
|
CONFIG_OMAP2_VRFB=y
|
||||||
|
CONFIG_OMAP2_DSS=y
|
||||||
|
CONFIG_OMAP2_VRAM_SIZE=4
|
||||||
|
CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y
|
||||||
|
# CONFIG_OMAP2_DSS_RFBI is not set
|
||||||
|
CONFIG_OMAP2_DSS_VENC=y
|
||||||
|
# CONFIG_OMAP2_DSS_SDI is not set
|
||||||
|
# CONFIG_OMAP2_DSS_DSI is not set
|
||||||
|
# CONFIG_OMAP2_DSS_FAKE_VSYNC is not set
|
||||||
|
CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0
|
||||||
|
CONFIG_FB_OMAP2=y
|
||||||
|
CONFIG_FB_OMAP2_DEBUG_SUPPORT=y
|
||||||
|
# CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE is not set
|
||||||
|
CONFIG_FB_OMAP2_NUM_FBS=3
|
||||||
|
|
||||||
|
#
|
||||||
|
# OMAP2/3 Display Device Drivers
|
||||||
|
#
|
||||||
|
CONFIG_PANEL_GENERIC=y
|
||||||
|
CONFIG_PANEL_SHARP_LS037V7DW01=y
|
||||||
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -865,6 +865,57 @@ static void __init at91_add_device_rtc(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------
|
||||||
|
* Touchscreen
|
||||||
|
* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC) || defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC_MODULE)
|
||||||
|
static u64 tsadcc_dmamask = DMA_BIT_MASK(32);
|
||||||
|
static struct at91_tsadcc_data tsadcc_data;
|
||||||
|
|
||||||
|
static struct resource tsadcc_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91SAM9G45_BASE_TSC,
|
||||||
|
.end = AT91SAM9G45_BASE_TSC + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91SAM9G45_ID_TSC,
|
||||||
|
.end = AT91SAM9G45_ID_TSC,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91sam9g45_tsadcc_device = {
|
||||||
|
.name = "atmel_tsadcc",
|
||||||
|
.id = -1,
|
||||||
|
.dev = {
|
||||||
|
.dma_mask = &tsadcc_dmamask,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
.platform_data = &tsadcc_data,
|
||||||
|
},
|
||||||
|
.resource = tsadcc_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(tsadcc_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data)
|
||||||
|
{
|
||||||
|
if (!data)
|
||||||
|
return;
|
||||||
|
|
||||||
|
at91_set_gpio_input(AT91_PIN_PD20, 0); /* AD0_XR */
|
||||||
|
at91_set_gpio_input(AT91_PIN_PD21, 0); /* AD1_XL */
|
||||||
|
at91_set_gpio_input(AT91_PIN_PD22, 0); /* AD2_YT */
|
||||||
|
at91_set_gpio_input(AT91_PIN_PD23, 0); /* AD3_TB */
|
||||||
|
|
||||||
|
tsadcc_data = *data;
|
||||||
|
platform_device_register(&at91sam9g45_tsadcc_device);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------
|
/* --------------------------------------------------------------------
|
||||||
* RTT
|
* RTT
|
||||||
* -------------------------------------------------------------------- */
|
* -------------------------------------------------------------------- */
|
||||||
|
|
|
@ -622,6 +622,7 @@ static void __init at91_add_device_tc(void) { }
|
||||||
|
|
||||||
#if defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC) || defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC_MODULE)
|
#if defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC) || defined(CONFIG_TOUCHSCREEN_ATMEL_TSADCC_MODULE)
|
||||||
static u64 tsadcc_dmamask = DMA_BIT_MASK(32);
|
static u64 tsadcc_dmamask = DMA_BIT_MASK(32);
|
||||||
|
static struct at91_tsadcc_data tsadcc_data;
|
||||||
|
|
||||||
static struct resource tsadcc_resources[] = {
|
static struct resource tsadcc_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
|
@ -642,22 +643,27 @@ static struct platform_device at91sam9rl_tsadcc_device = {
|
||||||
.dev = {
|
.dev = {
|
||||||
.dma_mask = &tsadcc_dmamask,
|
.dma_mask = &tsadcc_dmamask,
|
||||||
.coherent_dma_mask = DMA_BIT_MASK(32),
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
.platform_data = &tsadcc_data,
|
||||||
},
|
},
|
||||||
.resource = tsadcc_resources,
|
.resource = tsadcc_resources,
|
||||||
.num_resources = ARRAY_SIZE(tsadcc_resources),
|
.num_resources = ARRAY_SIZE(tsadcc_resources),
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init at91_add_device_tsadcc(void)
|
void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data)
|
||||||
{
|
{
|
||||||
|
if (!data)
|
||||||
|
return;
|
||||||
|
|
||||||
at91_set_A_periph(AT91_PIN_PA17, 0); /* AD0_XR */
|
at91_set_A_periph(AT91_PIN_PA17, 0); /* AD0_XR */
|
||||||
at91_set_A_periph(AT91_PIN_PA18, 0); /* AD1_XL */
|
at91_set_A_periph(AT91_PIN_PA18, 0); /* AD1_XL */
|
||||||
at91_set_A_periph(AT91_PIN_PA19, 0); /* AD2_YT */
|
at91_set_A_periph(AT91_PIN_PA19, 0); /* AD2_YT */
|
||||||
at91_set_A_periph(AT91_PIN_PA20, 0); /* AD3_TB */
|
at91_set_A_periph(AT91_PIN_PA20, 0); /* AD3_TB */
|
||||||
|
|
||||||
|
tsadcc_data = *data;
|
||||||
platform_device_register(&at91sam9rl_tsadcc_device);
|
platform_device_register(&at91sam9rl_tsadcc_device);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void __init at91_add_device_tsadcc(void) {}
|
void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,16 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Touchscreen
|
||||||
|
*/
|
||||||
|
static struct at91_tsadcc_data ek_tsadcc_data = {
|
||||||
|
.adc_clock = 300000,
|
||||||
|
.pendet_debounce = 0x0d,
|
||||||
|
.ts_sample_hold_time = 0x0a,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPIO Buttons
|
* GPIO Buttons
|
||||||
*/
|
*/
|
||||||
|
@ -379,6 +389,8 @@ static void __init ek_board_init(void)
|
||||||
at91_add_device_i2c(0, NULL, 0);
|
at91_add_device_i2c(0, NULL, 0);
|
||||||
/* LCD Controller */
|
/* LCD Controller */
|
||||||
at91_add_device_lcdc(&ek_lcdc_data);
|
at91_add_device_lcdc(&ek_lcdc_data);
|
||||||
|
/* Touch Screen */
|
||||||
|
at91_add_device_tsadcc(&ek_tsadcc_data);
|
||||||
/* Push Buttons */
|
/* Push Buttons */
|
||||||
ek_add_device_buttons();
|
ek_add_device_buttons();
|
||||||
/* AC97 */
|
/* AC97 */
|
||||||
|
|
|
@ -242,6 +242,16 @@ static struct gpio_led ek_leds[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Touchscreen
|
||||||
|
*/
|
||||||
|
static struct at91_tsadcc_data ek_tsadcc_data = {
|
||||||
|
.adc_clock = 1000000,
|
||||||
|
.pendet_debounce = 0x0f,
|
||||||
|
.ts_sample_hold_time = 0x03,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPIO Buttons
|
* GPIO Buttons
|
||||||
*/
|
*/
|
||||||
|
@ -310,7 +320,7 @@ static void __init ek_board_init(void)
|
||||||
/* AC97 */
|
/* AC97 */
|
||||||
at91_add_device_ac97(&ek_ac97_data);
|
at91_add_device_ac97(&ek_ac97_data);
|
||||||
/* Touch Screen Controller */
|
/* Touch Screen Controller */
|
||||||
at91_add_device_tsadcc();
|
at91_add_device_tsadcc(&ek_tsadcc_data);
|
||||||
/* LEDs */
|
/* LEDs */
|
||||||
at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
|
at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
|
||||||
/* Push Buttons */
|
/* Push Buttons */
|
||||||
|
|
|
@ -187,7 +187,12 @@ extern void __init at91_add_device_ac97(struct ac97c_platform_data *data);
|
||||||
extern void __init at91_add_device_isi(void);
|
extern void __init at91_add_device_isi(void);
|
||||||
|
|
||||||
/* Touchscreen Controller */
|
/* Touchscreen Controller */
|
||||||
extern void __init at91_add_device_tsadcc(void);
|
struct at91_tsadcc_data {
|
||||||
|
unsigned int adc_clock;
|
||||||
|
u8 pendet_debounce;
|
||||||
|
u8 ts_sample_hold_time;
|
||||||
|
};
|
||||||
|
extern void __init at91_add_device_tsadcc(struct at91_tsadcc_data *data);
|
||||||
|
|
||||||
/* CAN */
|
/* CAN */
|
||||||
struct at91_can_data {
|
struct at91_can_data {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
/**
|
/**
|
||||||
* @file reg.h
|
* @file reg.h
|
||||||
*
|
*
|
||||||
* @brief Generic register defintions used in CSP
|
* @brief Generic register definitions used in CSP
|
||||||
*/
|
*/
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ typedef struct {
|
||||||
* @brief Get next available transaction width
|
* @brief Get next available transaction width
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @return On sucess : Next avail able transaction width
|
* @return On success : Next available transaction width
|
||||||
* On failure : dmacHw_TRANSACTION_WIDTH_8
|
* On failure : dmacHw_TRANSACTION_WIDTH_8
|
||||||
*
|
*
|
||||||
* @note
|
* @note
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
/**
|
/**
|
||||||
* @file mm_addr.h
|
* @file mm_addr.h
|
||||||
*
|
*
|
||||||
* @brief Memory Map address defintions
|
* @brief Memory Map address definitions
|
||||||
*
|
*
|
||||||
* @note
|
* @note
|
||||||
* None
|
* None
|
||||||
|
|
|
@ -651,7 +651,7 @@ int dma_map_add_region(DMA_MemMap_t *memMap, /* Stores state information about t
|
||||||
/**
|
/**
|
||||||
* Creates a descriptor ring from a memory mapping.
|
* Creates a descriptor ring from a memory mapping.
|
||||||
*
|
*
|
||||||
* @return 0 on sucess, error code otherwise.
|
* @return 0 on success, error code otherwise.
|
||||||
*/
|
*/
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,13 @@ config ARCH_DAVINCI_DA830
|
||||||
bool "DA830/OMAP-L137 based system"
|
bool "DA830/OMAP-L137 based system"
|
||||||
select CP_INTC
|
select CP_INTC
|
||||||
select ARCH_DAVINCI_DA8XX
|
select ARCH_DAVINCI_DA8XX
|
||||||
|
select CPU_DCACHE_WRITETHROUGH # needed on silicon revs 1.0, 1.1
|
||||||
|
|
||||||
config ARCH_DAVINCI_DA850
|
config ARCH_DAVINCI_DA850
|
||||||
bool "DA850/OMAP-L138 based system"
|
bool "DA850/OMAP-L138 based system"
|
||||||
select CP_INTC
|
select CP_INTC
|
||||||
select ARCH_DAVINCI_DA8XX
|
select ARCH_DAVINCI_DA8XX
|
||||||
|
select ARCH_HAS_CPUFREQ
|
||||||
|
|
||||||
config ARCH_DAVINCI_DA8XX
|
config ARCH_DAVINCI_DA8XX
|
||||||
bool
|
bool
|
||||||
|
@ -63,6 +65,13 @@ config MACH_SFFSDR
|
||||||
Say Y here to select the Lyrtech Small Form Factor
|
Say Y here to select the Lyrtech Small Form Factor
|
||||||
Software Defined Radio (SFFSDR) board.
|
Software Defined Radio (SFFSDR) board.
|
||||||
|
|
||||||
|
config MACH_NEUROS_OSD2
|
||||||
|
bool "Neuros OSD2 Open Television Set Top Box"
|
||||||
|
depends on ARCH_DAVINCI_DM644x
|
||||||
|
help
|
||||||
|
Configure this option to specify the whether the board used
|
||||||
|
for development is a Neuros OSD2 Open Set Top Box.
|
||||||
|
|
||||||
config MACH_DAVINCI_DM355_EVM
|
config MACH_DAVINCI_DM355_EVM
|
||||||
bool "TI DM355 EVM"
|
bool "TI DM355 EVM"
|
||||||
default ARCH_DAVINCI_DM355
|
default ARCH_DAVINCI_DM355
|
||||||
|
@ -98,16 +107,66 @@ config MACH_DAVINCI_DA830_EVM
|
||||||
bool "TI DA830/OMAP-L137 Reference Platform"
|
bool "TI DA830/OMAP-L137 Reference Platform"
|
||||||
default ARCH_DAVINCI_DA830
|
default ARCH_DAVINCI_DA830
|
||||||
depends on ARCH_DAVINCI_DA830
|
depends on ARCH_DAVINCI_DA830
|
||||||
|
select GPIO_PCF857X
|
||||||
help
|
help
|
||||||
Say Y here to select the TI DA830/OMAP-L137 Evaluation Module.
|
Say Y here to select the TI DA830/OMAP-L137 Evaluation Module.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Select DA830/OMAP-L137 UI board peripheral"
|
||||||
|
depends on MACH_DAVINCI_DA830_EVM
|
||||||
|
help
|
||||||
|
The presence of UI card on the DA830/OMAP-L137 EVM is detected
|
||||||
|
automatically based on successful probe of the I2C based GPIO
|
||||||
|
expander on that board. This option selected in this menu has
|
||||||
|
an effect only in case of a successful UI card detection.
|
||||||
|
|
||||||
|
config DA830_UI_LCD
|
||||||
|
bool "LCD"
|
||||||
|
help
|
||||||
|
Say Y here to use the LCD as a framebuffer or simple character
|
||||||
|
display.
|
||||||
|
|
||||||
|
config DA830_UI_NAND
|
||||||
|
bool "NAND flash"
|
||||||
|
help
|
||||||
|
Say Y here to use the NAND flash. Do not forget to setup
|
||||||
|
the switch correctly.
|
||||||
|
endchoice
|
||||||
|
|
||||||
config MACH_DAVINCI_DA850_EVM
|
config MACH_DAVINCI_DA850_EVM
|
||||||
bool "TI DA850/OMAP-L138 Reference Platform"
|
bool "TI DA850/OMAP-L138 Reference Platform"
|
||||||
default ARCH_DAVINCI_DA850
|
default ARCH_DAVINCI_DA850
|
||||||
depends on ARCH_DAVINCI_DA850
|
depends on ARCH_DAVINCI_DA850
|
||||||
|
select GPIO_PCA953X
|
||||||
help
|
help
|
||||||
Say Y here to select the TI DA850/OMAP-L138 Evaluation Module.
|
Say Y here to select the TI DA850/OMAP-L138 Evaluation Module.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Select peripherals connected to expander on UI board"
|
||||||
|
depends on MACH_DAVINCI_DA850_EVM
|
||||||
|
help
|
||||||
|
The presence of User Interface (UI) card on the DA850/OMAP-L138
|
||||||
|
EVM is detected automatically based on successful probe of the I2C
|
||||||
|
based GPIO expander on that card. This option selected in this
|
||||||
|
menu has an effect only in case of a successful UI card detection.
|
||||||
|
|
||||||
|
config DA850_UI_NONE
|
||||||
|
bool "No peripheral is enabled"
|
||||||
|
help
|
||||||
|
Say Y if you do not want to enable any of the peripherals connected
|
||||||
|
to TCA6416 expander on DA850/OMAP-L138 EVM UI card
|
||||||
|
|
||||||
|
config DA850_UI_RMII
|
||||||
|
bool "RMII Ethernet PHY"
|
||||||
|
help
|
||||||
|
Say Y if you want to use the RMII PHY on the DA850/OMAP-L138 EVM.
|
||||||
|
This PHY is found on the UI daughter card that is supplied with
|
||||||
|
the EVM.
|
||||||
|
NOTE: Please take care while choosing this option, MII PHY will
|
||||||
|
not be functional if RMII mode is selected.
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
config DAVINCI_MUX
|
config DAVINCI_MUX
|
||||||
bool "DAVINCI multiplexing support"
|
bool "DAVINCI multiplexing support"
|
||||||
depends on ARCH_DAVINCI
|
depends on ARCH_DAVINCI
|
||||||
|
|
|
@ -23,9 +23,14 @@ obj-$(CONFIG_CP_INTC) += cp_intc.o
|
||||||
# Board specific
|
# Board specific
|
||||||
obj-$(CONFIG_MACH_DAVINCI_EVM) += board-dm644x-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_EVM) += board-dm644x-evm.o
|
||||||
obj-$(CONFIG_MACH_SFFSDR) += board-sffsdr.o
|
obj-$(CONFIG_MACH_SFFSDR) += board-sffsdr.o
|
||||||
|
obj-$(CONFIG_MACH_NEUROS_OSD2) += board-neuros-osd2.o
|
||||||
obj-$(CONFIG_MACH_DAVINCI_DM355_EVM) += board-dm355-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_DM355_EVM) += board-dm355-evm.o
|
||||||
obj-$(CONFIG_MACH_DM355_LEOPARD) += board-dm355-leopard.o
|
obj-$(CONFIG_MACH_DM355_LEOPARD) += board-dm355-leopard.o
|
||||||
obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o
|
||||||
obj-$(CONFIG_MACH_DAVINCI_DM365_EVM) += board-dm365-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_DM365_EVM) += board-dm365-evm.o
|
||||||
obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += board-da830-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += board-da830-evm.o
|
||||||
obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o
|
obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o
|
||||||
|
|
||||||
|
# Power Management
|
||||||
|
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
||||||
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
||||||
|
|
|
@ -10,51 +10,194 @@
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
|
#include <linux/i2c/pcf857x.h>
|
||||||
#include <linux/i2c/at24.h>
|
#include <linux/i2c/at24.h>
|
||||||
|
#include <linux/mtd/mtd.h>
|
||||||
|
#include <linux/mtd/partitions.h>
|
||||||
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
|
||||||
#include <mach/common.h>
|
|
||||||
#include <mach/irqs.h>
|
|
||||||
#include <mach/cp_intc.h>
|
#include <mach/cp_intc.h>
|
||||||
|
#include <mach/mux.h>
|
||||||
|
#include <mach/nand.h>
|
||||||
#include <mach/da8xx.h>
|
#include <mach/da8xx.h>
|
||||||
#include <mach/asp.h>
|
#include <mach/usb.h>
|
||||||
|
|
||||||
#define DA830_EVM_PHY_MASK 0x0
|
#define DA830_EVM_PHY_MASK 0x0
|
||||||
#define DA830_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
|
#define DA830_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
|
||||||
|
|
||||||
static struct at24_platform_data da830_evm_i2c_eeprom_info = {
|
#define DA830_EMIF25_ASYNC_DATA_CE3_BASE 0x62000000
|
||||||
.byte_len = SZ_256K / 8,
|
#define DA830_EMIF25_CONTROL_BASE 0x68000000
|
||||||
.page_size = 64,
|
|
||||||
.flags = AT24_FLAG_ADDR16,
|
/*
|
||||||
.setup = davinci_get_mac_addr,
|
* USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4].
|
||||||
.context = (void *)0x7f00,
|
*/
|
||||||
|
#define ON_BD_USB_DRV GPIO_TO_PIN(1, 15)
|
||||||
|
#define ON_BD_USB_OVC GPIO_TO_PIN(2, 4)
|
||||||
|
|
||||||
|
static const short da830_evm_usb11_pins[] = {
|
||||||
|
DA830_GPIO1_15, DA830_GPIO2_4,
|
||||||
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_board_info __initdata da830_evm_i2c_devices[] = {
|
static da8xx_ocic_handler_t da830_evm_usb_ocic_handler;
|
||||||
{
|
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
static int da830_evm_usb_set_power(unsigned port, int on)
|
||||||
.platform_data = &da830_evm_i2c_eeprom_info,
|
{
|
||||||
},
|
gpio_set_value(ON_BD_USB_DRV, on);
|
||||||
{
|
return 0;
|
||||||
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
}
|
||||||
|
|
||||||
|
static int da830_evm_usb_get_power(unsigned port)
|
||||||
|
{
|
||||||
|
return gpio_get_value(ON_BD_USB_DRV);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da830_evm_usb_get_oci(unsigned port)
|
||||||
|
{
|
||||||
|
return !gpio_get_value(ON_BD_USB_OVC);
|
||||||
|
}
|
||||||
|
|
||||||
|
static irqreturn_t da830_evm_usb_ocic_irq(int, void *);
|
||||||
|
|
||||||
|
static int da830_evm_usb_ocic_notify(da8xx_ocic_handler_t handler)
|
||||||
|
{
|
||||||
|
int irq = gpio_to_irq(ON_BD_USB_OVC);
|
||||||
|
int error = 0;
|
||||||
|
|
||||||
|
if (handler != NULL) {
|
||||||
|
da830_evm_usb_ocic_handler = handler;
|
||||||
|
|
||||||
|
error = request_irq(irq, da830_evm_usb_ocic_irq, IRQF_DISABLED |
|
||||||
|
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
|
||||||
|
"OHCI over-current indicator", NULL);
|
||||||
|
if (error)
|
||||||
|
printk(KERN_ERR "%s: could not request IRQ to watch "
|
||||||
|
"over-current indicator changes\n", __func__);
|
||||||
|
} else
|
||||||
|
free_irq(irq, NULL);
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct da8xx_ohci_root_hub da830_evm_usb11_pdata = {
|
||||||
|
.set_power = da830_evm_usb_set_power,
|
||||||
|
.get_power = da830_evm_usb_get_power,
|
||||||
|
.get_oci = da830_evm_usb_get_oci,
|
||||||
|
.ocic_notify = da830_evm_usb_ocic_notify,
|
||||||
|
|
||||||
|
/* TPS2065 switch @ 5V */
|
||||||
|
.potpgt = (3 + 1) / 2, /* 3 ms max */
|
||||||
|
};
|
||||||
|
|
||||||
|
static irqreturn_t da830_evm_usb_ocic_irq(int irq, void *dev_id)
|
||||||
|
{
|
||||||
|
da830_evm_usb_ocic_handler(&da830_evm_usb11_pdata, 1);
|
||||||
|
return IRQ_HANDLED;
|
||||||
|
}
|
||||||
|
|
||||||
|
static __init void da830_evm_usb_init(void)
|
||||||
|
{
|
||||||
|
u32 cfgchip2;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set up USB clock/mode in the CFGCHIP2 register.
|
||||||
|
* FYI: CFGCHIP2 is 0x0000ef00 initially.
|
||||||
|
*/
|
||||||
|
cfgchip2 = __raw_readl(DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP2_REG));
|
||||||
|
|
||||||
|
/* USB2.0 PHY reference clock is 24 MHz */
|
||||||
|
cfgchip2 &= ~CFGCHIP2_REFFREQ;
|
||||||
|
cfgchip2 |= CFGCHIP2_REFFREQ_24MHZ;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Select internal reference clock for USB 2.0 PHY
|
||||||
|
* and use it as a clock source for USB 1.1 PHY
|
||||||
|
* (this is the default setting anyway).
|
||||||
|
*/
|
||||||
|
cfgchip2 &= ~CFGCHIP2_USB1PHYCLKMUX;
|
||||||
|
cfgchip2 |= CFGCHIP2_USB2PHYCLKMUX;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We have to override VBUS/ID signals when MUSB is configured into the
|
||||||
|
* host-only mode -- ID pin will float if no cable is connected, so the
|
||||||
|
* controller won't be able to drive VBUS thinking that it's a B-device.
|
||||||
|
* Otherwise, we want to use the OTG mode and enable VBUS comparators.
|
||||||
|
*/
|
||||||
|
cfgchip2 &= ~CFGCHIP2_OTGMODE;
|
||||||
|
#ifdef CONFIG_USB_MUSB_HOST
|
||||||
|
cfgchip2 |= CFGCHIP2_FORCE_HOST;
|
||||||
|
#else
|
||||||
|
cfgchip2 |= CFGCHIP2_SESENDEN | CFGCHIP2_VBDTCTEN;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
__raw_writel(cfgchip2, DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP2_REG));
|
||||||
|
|
||||||
|
/* USB_REFCLKIN is not used. */
|
||||||
|
ret = davinci_cfg_reg(DA830_USB0_DRVVBUS);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("%s: USB 2.0 PinMux setup failed: %d\n",
|
||||||
|
__func__, ret);
|
||||||
|
else {
|
||||||
|
/*
|
||||||
|
* TPS2065 switch @ 5V supplies 1 A (sustains 1.5 A),
|
||||||
|
* with the power on to power good time of 3 ms.
|
||||||
|
*/
|
||||||
|
ret = da8xx_register_usb20(1000, 3);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("%s: USB 2.0 registration failed: %d\n",
|
||||||
|
__func__, ret);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
static struct davinci_i2c_platform_data da830_evm_i2c_0_pdata = {
|
ret = da8xx_pinmux_setup(da830_evm_usb11_pins);
|
||||||
.bus_freq = 100, /* kHz */
|
if (ret) {
|
||||||
.bus_delay = 0, /* usec */
|
pr_warning("%s: USB 1.1 PinMux setup failed: %d\n",
|
||||||
};
|
__func__, ret);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_request(ON_BD_USB_DRV, "ON_BD_USB_DRV");
|
||||||
|
if (ret) {
|
||||||
|
printk(KERN_ERR "%s: failed to request GPIO for USB 1.1 port "
|
||||||
|
"power control: %d\n", __func__, ret);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gpio_direction_output(ON_BD_USB_DRV, 0);
|
||||||
|
|
||||||
|
ret = gpio_request(ON_BD_USB_OVC, "ON_BD_USB_OVC");
|
||||||
|
if (ret) {
|
||||||
|
printk(KERN_ERR "%s: failed to request GPIO for USB 1.1 port "
|
||||||
|
"over-current indicator: %d\n", __func__, ret);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gpio_direction_input(ON_BD_USB_OVC);
|
||||||
|
|
||||||
|
ret = da8xx_register_usb11(&da830_evm_usb11_pdata);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("%s: USB 1.1 registration failed: %d\n",
|
||||||
|
__func__, ret);
|
||||||
|
}
|
||||||
|
|
||||||
static struct davinci_uart_config da830_evm_uart_config __initdata = {
|
static struct davinci_uart_config da830_evm_uart_config __initdata = {
|
||||||
.enabled_uarts = 0x7,
|
.enabled_uarts = 0x7,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const short da830_evm_mcasp1_pins[] = {
|
||||||
|
DA830_AHCLKX1, DA830_ACLKX1, DA830_AFSX1, DA830_AHCLKR1, DA830_AFSR1,
|
||||||
|
DA830_AMUTE1, DA830_AXR1_0, DA830_AXR1_1, DA830_AXR1_2, DA830_AXR1_5,
|
||||||
|
DA830_ACLKR1, DA830_AXR1_6, DA830_AXR1_7, DA830_AXR1_8, DA830_AXR1_10,
|
||||||
|
DA830_AXR1_11,
|
||||||
|
-1
|
||||||
|
};
|
||||||
|
|
||||||
static u8 da830_iis_serializer_direction[] = {
|
static u8 da830_iis_serializer_direction[] = {
|
||||||
RX_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
RX_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
||||||
INACTIVE_MODE, TX_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
INACTIVE_MODE, TX_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
||||||
|
@ -74,6 +217,271 @@ static struct snd_platform_data da830_evm_snd_data = {
|
||||||
.rxnumevt = 1,
|
.rxnumevt = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GPIO2[1] is used as MMC_SD_WP and GPIO2[2] as MMC_SD_INS.
|
||||||
|
*/
|
||||||
|
static const short da830_evm_mmc_sd_pins[] = {
|
||||||
|
DA830_MMCSD_DAT_0, DA830_MMCSD_DAT_1, DA830_MMCSD_DAT_2,
|
||||||
|
DA830_MMCSD_DAT_3, DA830_MMCSD_DAT_4, DA830_MMCSD_DAT_5,
|
||||||
|
DA830_MMCSD_DAT_6, DA830_MMCSD_DAT_7, DA830_MMCSD_CLK,
|
||||||
|
DA830_MMCSD_CMD, DA830_GPIO2_1, DA830_GPIO2_2,
|
||||||
|
-1
|
||||||
|
};
|
||||||
|
|
||||||
|
#define DA830_MMCSD_WP_PIN GPIO_TO_PIN(2, 1)
|
||||||
|
|
||||||
|
static int da830_evm_mmc_get_ro(int index)
|
||||||
|
{
|
||||||
|
return gpio_get_value(DA830_MMCSD_WP_PIN);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct davinci_mmc_config da830_evm_mmc_config = {
|
||||||
|
.get_ro = da830_evm_mmc_get_ro,
|
||||||
|
.wires = 4,
|
||||||
|
.max_freq = 50000000,
|
||||||
|
.caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED,
|
||||||
|
.version = MMC_CTLR_VERSION_2,
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void da830_evm_init_mmc(void)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = da8xx_pinmux_setup(da830_evm_mmc_sd_pins);
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("da830_evm_init: mmc/sd mux setup failed: %d\n",
|
||||||
|
ret);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_request(DA830_MMCSD_WP_PIN, "MMC WP");
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("da830_evm_init: can not open GPIO %d\n",
|
||||||
|
DA830_MMCSD_WP_PIN);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gpio_direction_input(DA830_MMCSD_WP_PIN);
|
||||||
|
|
||||||
|
ret = da8xx_register_mmcsd0(&da830_evm_mmc_config);
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("da830_evm_init: mmc/sd registration failed: %d\n",
|
||||||
|
ret);
|
||||||
|
gpio_free(DA830_MMCSD_WP_PIN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* UI board NAND/NOR flashes only use 8-bit data bus.
|
||||||
|
*/
|
||||||
|
static const short da830_evm_emif25_pins[] = {
|
||||||
|
DA830_EMA_D_0, DA830_EMA_D_1, DA830_EMA_D_2, DA830_EMA_D_3,
|
||||||
|
DA830_EMA_D_4, DA830_EMA_D_5, DA830_EMA_D_6, DA830_EMA_D_7,
|
||||||
|
DA830_EMA_A_0, DA830_EMA_A_1, DA830_EMA_A_2, DA830_EMA_A_3,
|
||||||
|
DA830_EMA_A_4, DA830_EMA_A_5, DA830_EMA_A_6, DA830_EMA_A_7,
|
||||||
|
DA830_EMA_A_8, DA830_EMA_A_9, DA830_EMA_A_10, DA830_EMA_A_11,
|
||||||
|
DA830_EMA_A_12, DA830_EMA_BA_0, DA830_EMA_BA_1, DA830_NEMA_WE,
|
||||||
|
DA830_NEMA_CS_2, DA830_NEMA_CS_3, DA830_NEMA_OE, DA830_EMA_WAIT_0,
|
||||||
|
-1
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(CONFIG_MMC_DAVINCI) || defined(CONFIG_MMC_DAVINCI_MODULE)
|
||||||
|
#define HAS_MMC 1
|
||||||
|
#else
|
||||||
|
#define HAS_MMC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DA830_UI_NAND
|
||||||
|
static struct mtd_partition da830_evm_nand_partitions[] = {
|
||||||
|
/* bootloader (U-Boot, etc) in first sector */
|
||||||
|
[0] = {
|
||||||
|
.name = "bootloader",
|
||||||
|
.offset = 0,
|
||||||
|
.size = SZ_128K,
|
||||||
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
||||||
|
},
|
||||||
|
/* bootloader params in the next sector */
|
||||||
|
[1] = {
|
||||||
|
.name = "params",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = SZ_128K,
|
||||||
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
||||||
|
},
|
||||||
|
/* kernel */
|
||||||
|
[2] = {
|
||||||
|
.name = "kernel",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = SZ_2M,
|
||||||
|
.mask_flags = 0,
|
||||||
|
},
|
||||||
|
/* file system */
|
||||||
|
[3] = {
|
||||||
|
.name = "filesystem",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = MTDPART_SIZ_FULL,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/* flash bbt decriptors */
|
||||||
|
static uint8_t da830_evm_nand_bbt_pattern[] = { 'B', 'b', 't', '0' };
|
||||||
|
static uint8_t da830_evm_nand_mirror_pattern[] = { '1', 't', 'b', 'B' };
|
||||||
|
|
||||||
|
static struct nand_bbt_descr da830_evm_nand_bbt_main_descr = {
|
||||||
|
.options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE |
|
||||||
|
NAND_BBT_WRITE | NAND_BBT_2BIT |
|
||||||
|
NAND_BBT_VERSION | NAND_BBT_PERCHIP,
|
||||||
|
.offs = 2,
|
||||||
|
.len = 4,
|
||||||
|
.veroffs = 16,
|
||||||
|
.maxblocks = 4,
|
||||||
|
.pattern = da830_evm_nand_bbt_pattern
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct nand_bbt_descr da830_evm_nand_bbt_mirror_descr = {
|
||||||
|
.options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE |
|
||||||
|
NAND_BBT_WRITE | NAND_BBT_2BIT |
|
||||||
|
NAND_BBT_VERSION | NAND_BBT_PERCHIP,
|
||||||
|
.offs = 2,
|
||||||
|
.len = 4,
|
||||||
|
.veroffs = 16,
|
||||||
|
.maxblocks = 4,
|
||||||
|
.pattern = da830_evm_nand_mirror_pattern
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_nand_pdata da830_evm_nand_pdata = {
|
||||||
|
.parts = da830_evm_nand_partitions,
|
||||||
|
.nr_parts = ARRAY_SIZE(da830_evm_nand_partitions),
|
||||||
|
.ecc_mode = NAND_ECC_HW,
|
||||||
|
.ecc_bits = 4,
|
||||||
|
.options = NAND_USE_FLASH_BBT,
|
||||||
|
.bbt_td = &da830_evm_nand_bbt_main_descr,
|
||||||
|
.bbt_md = &da830_evm_nand_bbt_mirror_descr,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource da830_evm_nand_resources[] = {
|
||||||
|
[0] = { /* First memory resource is NAND I/O window */
|
||||||
|
.start = DA830_EMIF25_ASYNC_DATA_CE3_BASE,
|
||||||
|
.end = DA830_EMIF25_ASYNC_DATA_CE3_BASE + PAGE_SIZE - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = { /* Second memory resource is AEMIF control registers */
|
||||||
|
.start = DA830_EMIF25_CONTROL_BASE,
|
||||||
|
.end = DA830_EMIF25_CONTROL_BASE + SZ_32K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device da830_evm_nand_device = {
|
||||||
|
.name = "davinci_nand",
|
||||||
|
.id = 1,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &da830_evm_nand_pdata,
|
||||||
|
},
|
||||||
|
.num_resources = ARRAY_SIZE(da830_evm_nand_resources),
|
||||||
|
.resource = da830_evm_nand_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void da830_evm_init_nand(int mux_mode)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
if (HAS_MMC) {
|
||||||
|
pr_warning("WARNING: both MMC/SD and NAND are "
|
||||||
|
"enabled, but they share AEMIF pins.\n"
|
||||||
|
"\tDisable MMC/SD for NAND support.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = da8xx_pinmux_setup(da830_evm_emif25_pins);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da830_evm_init: emif25 mux setup failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
ret = platform_device_register(&da830_evm_nand_device);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da830_evm_init: NAND device not registered.\n");
|
||||||
|
|
||||||
|
gpio_direction_output(mux_mode, 1);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline void da830_evm_init_nand(int mux_mode) { }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DA830_UI_LCD
|
||||||
|
static inline void da830_evm_init_lcdc(int mux_mode)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = da8xx_pinmux_setup(da830_lcdcntl_pins);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da830_evm_init: lcdcntl mux setup failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
ret = da8xx_register_lcdc(&sharp_lcd035q3dg01_pdata);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da830_evm_init: lcd setup failed: %d\n", ret);
|
||||||
|
|
||||||
|
gpio_direction_output(mux_mode, 0);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline void da830_evm_init_lcdc(int mux_mode) { }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static struct at24_platform_data da830_evm_i2c_eeprom_info = {
|
||||||
|
.byte_len = SZ_256K / 8,
|
||||||
|
.page_size = 64,
|
||||||
|
.flags = AT24_FLAG_ADDR16,
|
||||||
|
.setup = davinci_get_mac_addr,
|
||||||
|
.context = (void *)0x7f00,
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init da830_evm_ui_expander_setup(struct i2c_client *client,
|
||||||
|
int gpio, unsigned ngpio, void *context)
|
||||||
|
{
|
||||||
|
gpio_request(gpio + 6, "UI MUX_MODE");
|
||||||
|
|
||||||
|
/* Drive mux mode low to match the default without UI card */
|
||||||
|
gpio_direction_output(gpio + 6, 0);
|
||||||
|
|
||||||
|
da830_evm_init_lcdc(gpio + 6);
|
||||||
|
|
||||||
|
da830_evm_init_nand(gpio + 6);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da830_evm_ui_expander_teardown(struct i2c_client *client, int gpio,
|
||||||
|
unsigned ngpio, void *context)
|
||||||
|
{
|
||||||
|
gpio_free(gpio + 6);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct pcf857x_platform_data __initdata da830_evm_ui_expander_info = {
|
||||||
|
.gpio_base = DAVINCI_N_GPIO,
|
||||||
|
.setup = da830_evm_ui_expander_setup,
|
||||||
|
.teardown = da830_evm_ui_expander_teardown,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct i2c_board_info __initdata da830_evm_i2c_devices[] = {
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
|
.platform_data = &da830_evm_i2c_eeprom_info,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("pcf8574", 0x3f),
|
||||||
|
.platform_data = &da830_evm_ui_expander_info,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_i2c_platform_data da830_evm_i2c_0_pdata = {
|
||||||
|
.bus_freq = 100, /* kHz */
|
||||||
|
.bus_delay = 0, /* usec */
|
||||||
|
};
|
||||||
|
|
||||||
static __init void da830_evm_init(void)
|
static __init void da830_evm_init(void)
|
||||||
{
|
{
|
||||||
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
||||||
|
@ -94,6 +502,8 @@ static __init void da830_evm_init(void)
|
||||||
pr_warning("da830_evm_init: i2c0 registration failed: %d\n",
|
pr_warning("da830_evm_init: i2c0 registration failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
|
da830_evm_usb_init();
|
||||||
|
|
||||||
soc_info->emac_pdata->phy_mask = DA830_EVM_PHY_MASK;
|
soc_info->emac_pdata->phy_mask = DA830_EVM_PHY_MASK;
|
||||||
soc_info->emac_pdata->mdio_max_freq = DA830_EVM_MDIO_FREQUENCY;
|
soc_info->emac_pdata->mdio_max_freq = DA830_EVM_MDIO_FREQUENCY;
|
||||||
soc_info->emac_pdata->rmii_en = 1;
|
soc_info->emac_pdata->rmii_en = 1;
|
||||||
|
@ -117,12 +527,18 @@ static __init void da830_evm_init(void)
|
||||||
i2c_register_board_info(1, da830_evm_i2c_devices,
|
i2c_register_board_info(1, da830_evm_i2c_devices,
|
||||||
ARRAY_SIZE(da830_evm_i2c_devices));
|
ARRAY_SIZE(da830_evm_i2c_devices));
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da830_mcasp1_pins);
|
ret = da8xx_pinmux_setup(da830_evm_mcasp1_pins);
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da830_evm_init: mcasp1 mux setup failed: %d\n",
|
pr_warning("da830_evm_init: mcasp1 mux setup failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
da8xx_init_mcasp(1, &da830_evm_snd_data);
|
da8xx_register_mcasp(1, &da830_evm_snd_data);
|
||||||
|
|
||||||
|
da830_evm_init_mmc();
|
||||||
|
|
||||||
|
ret = da8xx_register_rtc();
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da830_evm_init: rtc setup failed: %d\n", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_8250_CONSOLE
|
#ifdef CONFIG_SERIAL_8250_CONSOLE
|
||||||
|
@ -146,7 +562,7 @@ static void __init da830_evm_map_io(void)
|
||||||
da830_init();
|
da830_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP L137 EVM")
|
MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137 EVM")
|
||||||
.phys_io = IO_PHYS,
|
.phys_io = IO_PHYS,
|
||||||
.io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc,
|
.io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc,
|
||||||
.boot_params = (DA8XX_DDR_BASE + 0x100),
|
.boot_params = (DA8XX_DDR_BASE + 0x100),
|
||||||
|
|
|
@ -12,36 +12,38 @@
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/i2c/at24.h>
|
#include <linux/i2c/at24.h>
|
||||||
|
#include <linux/i2c/pca953x.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
|
#include <linux/regulator/machine.h>
|
||||||
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
|
||||||
#include <mach/common.h>
|
|
||||||
#include <mach/irqs.h>
|
|
||||||
#include <mach/cp_intc.h>
|
#include <mach/cp_intc.h>
|
||||||
#include <mach/da8xx.h>
|
#include <mach/da8xx.h>
|
||||||
#include <mach/nand.h>
|
#include <mach/nand.h>
|
||||||
|
#include <mach/mux.h>
|
||||||
|
|
||||||
#define DA850_EVM_PHY_MASK 0x1
|
#define DA850_EVM_PHY_MASK 0x1
|
||||||
#define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
|
#define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
|
||||||
|
|
||||||
|
#define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8)
|
||||||
#define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15)
|
#define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15)
|
||||||
#define DA850_LCD_PWR_PIN GPIO_TO_PIN(8, 10)
|
|
||||||
|
|
||||||
#define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0)
|
#define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0)
|
||||||
#define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1)
|
#define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1)
|
||||||
|
|
||||||
|
#define DA850_MII_MDIO_CLKEN_PIN GPIO_TO_PIN(2, 6)
|
||||||
|
|
||||||
static struct mtd_partition da850_evm_norflash_partition[] = {
|
static struct mtd_partition da850_evm_norflash_partition[] = {
|
||||||
{
|
{
|
||||||
.name = "NOR filesystem",
|
.name = "NOR filesystem",
|
||||||
|
@ -143,10 +145,149 @@ static struct platform_device da850_evm_nandflash_device = {
|
||||||
.resource = da850_evm_nandflash_resource,
|
.resource = da850_evm_nandflash_resource,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct platform_device *da850_evm_devices[] __initdata = {
|
||||||
|
&da850_evm_nandflash_device,
|
||||||
|
&da850_evm_norflash_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define DA8XX_AEMIF_CE2CFG_OFFSET 0x10
|
||||||
|
#define DA8XX_AEMIF_ASIZE_16BIT 0x1
|
||||||
|
|
||||||
|
static void __init da850_evm_init_nor(void)
|
||||||
|
{
|
||||||
|
void __iomem *aemif_addr;
|
||||||
|
|
||||||
|
aemif_addr = ioremap(DA8XX_AEMIF_CTL_BASE, SZ_32K);
|
||||||
|
|
||||||
|
/* Configure data bus width of CS2 to 16 bit */
|
||||||
|
writel(readl(aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET) |
|
||||||
|
DA8XX_AEMIF_ASIZE_16BIT,
|
||||||
|
aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET);
|
||||||
|
|
||||||
|
iounmap(aemif_addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static u32 ui_card_detected;
|
||||||
|
|
||||||
|
#if defined(CONFIG_MMC_DAVINCI) || \
|
||||||
|
defined(CONFIG_MMC_DAVINCI_MODULE)
|
||||||
|
#define HAS_MMC 1
|
||||||
|
#else
|
||||||
|
#define HAS_MMC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static __init void da850_evm_setup_nor_nand(void)
|
||||||
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
|
if (ui_card_detected & !HAS_MMC) {
|
||||||
|
ret = da8xx_pinmux_setup(da850_nand_pins);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: nand mux setup failed: "
|
||||||
|
"%d\n", ret);
|
||||||
|
|
||||||
|
ret = da8xx_pinmux_setup(da850_nor_pins);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: nor mux setup failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
da850_evm_init_nor();
|
||||||
|
|
||||||
|
platform_add_devices(da850_evm_devices,
|
||||||
|
ARRAY_SIZE(da850_evm_devices));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_DA850_UI_RMII
|
||||||
|
static inline void da850_evm_setup_emac_rmii(int rmii_sel)
|
||||||
|
{
|
||||||
|
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
||||||
|
|
||||||
|
soc_info->emac_pdata->rmii_en = 1;
|
||||||
|
gpio_set_value(rmii_sel, 0);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline void da850_evm_setup_emac_rmii(int rmii_sel) { }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static int da850_evm_ui_expander_setup(struct i2c_client *client, unsigned gpio,
|
||||||
|
unsigned ngpio, void *c)
|
||||||
|
{
|
||||||
|
int sel_a, sel_b, sel_c, ret;
|
||||||
|
|
||||||
|
sel_a = gpio + 7;
|
||||||
|
sel_b = gpio + 6;
|
||||||
|
sel_c = gpio + 5;
|
||||||
|
|
||||||
|
ret = gpio_request(sel_a, "sel_a");
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("Cannot open UI expander pin %d\n", sel_a);
|
||||||
|
goto exp_setup_sela_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_request(sel_b, "sel_b");
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("Cannot open UI expander pin %d\n", sel_b);
|
||||||
|
goto exp_setup_selb_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_request(sel_c, "sel_c");
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("Cannot open UI expander pin %d\n", sel_c);
|
||||||
|
goto exp_setup_selc_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* deselect all functionalities */
|
||||||
|
gpio_direction_output(sel_a, 1);
|
||||||
|
gpio_direction_output(sel_b, 1);
|
||||||
|
gpio_direction_output(sel_c, 1);
|
||||||
|
|
||||||
|
ui_card_detected = 1;
|
||||||
|
pr_info("DA850/OMAP-L138 EVM UI card detected\n");
|
||||||
|
|
||||||
|
da850_evm_setup_nor_nand();
|
||||||
|
|
||||||
|
da850_evm_setup_emac_rmii(sel_a);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
exp_setup_selc_fail:
|
||||||
|
gpio_free(sel_b);
|
||||||
|
exp_setup_selb_fail:
|
||||||
|
gpio_free(sel_a);
|
||||||
|
exp_setup_sela_fail:
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_evm_ui_expander_teardown(struct i2c_client *client,
|
||||||
|
unsigned gpio, unsigned ngpio, void *c)
|
||||||
|
{
|
||||||
|
/* deselect all functionalities */
|
||||||
|
gpio_set_value(gpio + 5, 1);
|
||||||
|
gpio_set_value(gpio + 6, 1);
|
||||||
|
gpio_set_value(gpio + 7, 1);
|
||||||
|
|
||||||
|
gpio_free(gpio + 5);
|
||||||
|
gpio_free(gpio + 6);
|
||||||
|
gpio_free(gpio + 7);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct pca953x_platform_data da850_evm_ui_expander_info = {
|
||||||
|
.gpio_base = DAVINCI_N_GPIO,
|
||||||
|
.setup = da850_evm_ui_expander_setup,
|
||||||
|
.teardown = da850_evm_ui_expander_teardown,
|
||||||
|
};
|
||||||
|
|
||||||
static struct i2c_board_info __initdata da850_evm_i2c_devices[] = {
|
static struct i2c_board_info __initdata da850_evm_i2c_devices[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("tca6416", 0x20),
|
||||||
|
.platform_data = &da850_evm_ui_expander_info,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
|
static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
|
||||||
|
@ -158,11 +299,6 @@ static struct davinci_uart_config da850_evm_uart_config __initdata = {
|
||||||
.enabled_uarts = 0x7,
|
.enabled_uarts = 0x7,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device *da850_evm_devices[] __initdata = {
|
|
||||||
&da850_evm_nandflash_device,
|
|
||||||
&da850_evm_norflash_device,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* davinci da850 evm audio machine driver */
|
/* davinci da850 evm audio machine driver */
|
||||||
static u8 da850_iis_serializer_direction[] = {
|
static u8 da850_iis_serializer_direction[] = {
|
||||||
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
|
||||||
|
@ -198,6 +334,8 @@ static struct davinci_mmc_config da850_mmc_config = {
|
||||||
.get_ro = da850_evm_mmc_get_ro,
|
.get_ro = da850_evm_mmc_get_ro,
|
||||||
.get_cd = da850_evm_mmc_get_cd,
|
.get_cd = da850_evm_mmc_get_cd,
|
||||||
.wires = 4,
|
.wires = 4,
|
||||||
|
.max_freq = 50000000,
|
||||||
|
.caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED,
|
||||||
.version = MMC_CTLR_VERSION_2,
|
.version = MMC_CTLR_VERSION_2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -233,57 +371,228 @@ static int da850_lcd_hw_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DA8XX_AEMIF_CE2CFG_OFFSET 0x10
|
/* TPS65070 voltage regulator support */
|
||||||
#define DA8XX_AEMIF_ASIZE_16BIT 0x1
|
|
||||||
|
|
||||||
static void __init da850_evm_init_nor(void)
|
/* 3.3V */
|
||||||
|
struct regulator_consumer_supply tps65070_dcdc1_consumers[] = {
|
||||||
|
{
|
||||||
|
.supply = "usb0_vdda33",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "usb1_vdda33",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 3.3V or 1.8V */
|
||||||
|
struct regulator_consumer_supply tps65070_dcdc2_consumers[] = {
|
||||||
|
{
|
||||||
|
.supply = "dvdd3318_a",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "dvdd3318_b",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "dvdd3318_c",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 1.2V */
|
||||||
|
struct regulator_consumer_supply tps65070_dcdc3_consumers[] = {
|
||||||
|
{
|
||||||
|
.supply = "cvdd",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 1.8V LDO */
|
||||||
|
struct regulator_consumer_supply tps65070_ldo1_consumers[] = {
|
||||||
|
{
|
||||||
|
.supply = "sata_vddr",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "usb0_vdda18",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "usb1_vdda18",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "ddr_dvdd18",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 1.2V LDO */
|
||||||
|
struct regulator_consumer_supply tps65070_ldo2_consumers[] = {
|
||||||
|
{
|
||||||
|
.supply = "sata_vdd",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "pll0_vdda",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "pll1_vdda",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "usbs_cvdd",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.supply = "vddarnwa1",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
struct regulator_init_data tps65070_regulator_data[] = {
|
||||||
|
/* dcdc1 */
|
||||||
|
{
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 3150000,
|
||||||
|
.max_uV = 3450000,
|
||||||
|
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
|
||||||
|
REGULATOR_CHANGE_STATUS),
|
||||||
|
.boot_on = 1,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc1_consumers),
|
||||||
|
.consumer_supplies = tps65070_dcdc1_consumers,
|
||||||
|
},
|
||||||
|
|
||||||
|
/* dcdc2 */
|
||||||
|
{
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 1710000,
|
||||||
|
.max_uV = 3450000,
|
||||||
|
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
|
||||||
|
REGULATOR_CHANGE_STATUS),
|
||||||
|
.boot_on = 1,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc2_consumers),
|
||||||
|
.consumer_supplies = tps65070_dcdc2_consumers,
|
||||||
|
},
|
||||||
|
|
||||||
|
/* dcdc3 */
|
||||||
|
{
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 950000,
|
||||||
|
.max_uV = 1320000,
|
||||||
|
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
|
||||||
|
REGULATOR_CHANGE_STATUS),
|
||||||
|
.boot_on = 1,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc3_consumers),
|
||||||
|
.consumer_supplies = tps65070_dcdc3_consumers,
|
||||||
|
},
|
||||||
|
|
||||||
|
/* ldo1 */
|
||||||
|
{
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 1710000,
|
||||||
|
.max_uV = 1890000,
|
||||||
|
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
|
||||||
|
REGULATOR_CHANGE_STATUS),
|
||||||
|
.boot_on = 1,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_ldo1_consumers),
|
||||||
|
.consumer_supplies = tps65070_ldo1_consumers,
|
||||||
|
},
|
||||||
|
|
||||||
|
/* ldo2 */
|
||||||
|
{
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 1140000,
|
||||||
|
.max_uV = 1320000,
|
||||||
|
.valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE |
|
||||||
|
REGULATOR_CHANGE_STATUS),
|
||||||
|
.boot_on = 1,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_ldo2_consumers),
|
||||||
|
.consumer_supplies = tps65070_ldo2_consumers,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct i2c_board_info __initdata da850evm_tps65070_info[] = {
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("tps6507x", 0x48),
|
||||||
|
.platform_data = &tps65070_regulator_data[0],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init pmic_tps65070_init(void)
|
||||||
{
|
{
|
||||||
void __iomem *aemif_addr;
|
return i2c_register_board_info(1, da850evm_tps65070_info,
|
||||||
|
ARRAY_SIZE(da850evm_tps65070_info));
|
||||||
aemif_addr = ioremap(DA8XX_AEMIF_CTL_BASE, SZ_32K);
|
|
||||||
|
|
||||||
/* Configure data bus width of CS2 to 16 bit */
|
|
||||||
writel(readl(aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET) |
|
|
||||||
DA8XX_AEMIF_ASIZE_16BIT,
|
|
||||||
aemif_addr + DA8XX_AEMIF_CE2CFG_OFFSET);
|
|
||||||
|
|
||||||
iounmap(aemif_addr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_MTD_PHYSMAP) || \
|
static const short da850_evm_lcdc_pins[] = {
|
||||||
defined(CONFIG_MTD_PHYSMAP_MODULE)
|
DA850_GPIO2_8, DA850_GPIO2_15,
|
||||||
#define HAS_NOR 1
|
-1
|
||||||
#else
|
};
|
||||||
#define HAS_NOR 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_MMC_DAVINCI) || \
|
static int __init da850_evm_config_emac(void)
|
||||||
defined(CONFIG_MMC_DAVINCI_MODULE)
|
{
|
||||||
#define HAS_MMC 1
|
void __iomem *cfg_chip3_base;
|
||||||
#else
|
int ret;
|
||||||
#define HAS_MMC 0
|
u32 val;
|
||||||
#endif
|
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
||||||
|
u8 rmii_en = soc_info->emac_pdata->rmii_en;
|
||||||
|
|
||||||
|
if (!machine_is_davinci_da850_evm())
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
cfg_chip3_base = DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP3_REG);
|
||||||
|
|
||||||
|
val = __raw_readl(cfg_chip3_base);
|
||||||
|
|
||||||
|
if (rmii_en) {
|
||||||
|
val |= BIT(8);
|
||||||
|
ret = da8xx_pinmux_setup(da850_rmii_pins);
|
||||||
|
pr_info("EMAC: RMII PHY configured, MII PHY will not be"
|
||||||
|
" functional\n");
|
||||||
|
} else {
|
||||||
|
val &= ~BIT(8);
|
||||||
|
ret = da8xx_pinmux_setup(da850_cpgmac_pins);
|
||||||
|
pr_info("EMAC: MII PHY configured, RMII PHY will not be"
|
||||||
|
" functional\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: cpgmac/rmii mux setup failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
/* configure the CFGCHIP3 register for RMII or MII */
|
||||||
|
__raw_writel(val, cfg_chip3_base);
|
||||||
|
|
||||||
|
ret = davinci_cfg_reg(DA850_GPIO2_6);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init:GPIO(2,6) mux setup "
|
||||||
|
"failed\n");
|
||||||
|
|
||||||
|
ret = gpio_request(DA850_MII_MDIO_CLKEN_PIN, "mdio_clk_en");
|
||||||
|
if (ret) {
|
||||||
|
pr_warning("Cannot open GPIO %d\n",
|
||||||
|
DA850_MII_MDIO_CLKEN_PIN);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Enable/Disable MII MDIO clock */
|
||||||
|
gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en);
|
||||||
|
|
||||||
|
soc_info->emac_pdata->phy_mask = DA850_EVM_PHY_MASK;
|
||||||
|
soc_info->emac_pdata->mdio_max_freq = DA850_EVM_MDIO_FREQUENCY;
|
||||||
|
|
||||||
|
ret = da8xx_register_emac();
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: emac registration failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
device_initcall(da850_evm_config_emac);
|
||||||
|
|
||||||
static __init void da850_evm_init(void)
|
static __init void da850_evm_init(void)
|
||||||
{
|
{
|
||||||
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da850_nand_pins);
|
ret = pmic_tps65070_init();
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: nand mux setup failed: %d\n",
|
pr_warning("da850_evm_init: TPS65070 PMIC init failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da850_nor_pins);
|
|
||||||
if (ret)
|
|
||||||
pr_warning("da850_evm_init: nor mux setup failed: %d\n",
|
|
||||||
ret);
|
|
||||||
|
|
||||||
da850_evm_init_nor();
|
|
||||||
|
|
||||||
platform_add_devices(da850_evm_devices,
|
|
||||||
ARRAY_SIZE(da850_evm_devices));
|
|
||||||
|
|
||||||
ret = da8xx_register_edma();
|
ret = da8xx_register_edma();
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: edma registration failed: %d\n",
|
pr_warning("da850_evm_init: edma registration failed: %d\n",
|
||||||
|
@ -299,19 +608,6 @@ static __init void da850_evm_init(void)
|
||||||
pr_warning("da850_evm_init: i2c0 registration failed: %d\n",
|
pr_warning("da850_evm_init: i2c0 registration failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
soc_info->emac_pdata->phy_mask = DA850_EVM_PHY_MASK;
|
|
||||||
soc_info->emac_pdata->mdio_max_freq = DA850_EVM_MDIO_FREQUENCY;
|
|
||||||
soc_info->emac_pdata->rmii_en = 0;
|
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da850_cpgmac_pins);
|
|
||||||
if (ret)
|
|
||||||
pr_warning("da850_evm_init: cpgmac mux setup failed: %d\n",
|
|
||||||
ret);
|
|
||||||
|
|
||||||
ret = da8xx_register_emac();
|
|
||||||
if (ret)
|
|
||||||
pr_warning("da850_evm_init: emac registration failed: %d\n",
|
|
||||||
ret);
|
|
||||||
|
|
||||||
ret = da8xx_register_watchdog();
|
ret = da8xx_register_watchdog();
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -319,11 +615,6 @@ static __init void da850_evm_init(void)
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
if (HAS_MMC) {
|
if (HAS_MMC) {
|
||||||
if (HAS_NOR)
|
|
||||||
pr_warning("WARNING: both NOR Flash and MMC/SD are "
|
|
||||||
"enabled, but they share AEMIF pins.\n"
|
|
||||||
"\tDisable one of them.\n");
|
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da850_mmcsd0_pins);
|
ret = da8xx_pinmux_setup(da850_mmcsd0_pins);
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: mmcsd0 mux setup failed:"
|
pr_warning("da850_evm_init: mmcsd0 mux setup failed:"
|
||||||
|
@ -365,22 +656,42 @@ static __init void da850_evm_init(void)
|
||||||
pr_warning("da850_evm_init: mcasp mux setup failed: %d\n",
|
pr_warning("da850_evm_init: mcasp mux setup failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
da8xx_init_mcasp(0, &da850_evm_snd_data);
|
da8xx_register_mcasp(0, &da850_evm_snd_data);
|
||||||
|
|
||||||
ret = da8xx_pinmux_setup(da850_lcdcntl_pins);
|
ret = da8xx_pinmux_setup(da850_lcdcntl_pins);
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: lcdcntl mux setup failed: %d\n",
|
pr_warning("da850_evm_init: lcdcntl mux setup failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
|
/* Handle board specific muxing for LCD here */
|
||||||
|
ret = da8xx_pinmux_setup(da850_evm_lcdc_pins);
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: evm specific lcd mux setup "
|
||||||
|
"failed: %d\n", ret);
|
||||||
|
|
||||||
ret = da850_lcd_hw_init();
|
ret = da850_lcd_hw_init();
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: lcd initialization failed: %d\n",
|
pr_warning("da850_evm_init: lcd initialization failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
ret = da8xx_register_lcdc();
|
ret = da8xx_register_lcdc(&sharp_lk043t1dg01_pdata);
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warning("da850_evm_init: lcdc registration failed: %d\n",
|
pr_warning("da850_evm_init: lcdc registration failed: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
|
ret = da8xx_register_rtc();
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: rtc setup failed: %d\n", ret);
|
||||||
|
|
||||||
|
ret = da850_register_cpufreq();
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: cpufreq registration failed: %d\n",
|
||||||
|
ret);
|
||||||
|
|
||||||
|
ret = da8xx_register_cpuidle();
|
||||||
|
if (ret)
|
||||||
|
pr_warning("da850_evm_init: cpuidle registration failed: %d\n",
|
||||||
|
ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_8250_CONSOLE
|
#ifdef CONFIG_SERIAL_8250_CONSOLE
|
||||||
|
|
|
@ -9,15 +9,13 @@
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/err.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/io.h>
|
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
|
@ -25,20 +23,15 @@
|
||||||
#include <linux/spi/spi.h>
|
#include <linux/spi/spi.h>
|
||||||
#include <linux/spi/eeprom.h>
|
#include <linux/spi/eeprom.h>
|
||||||
|
|
||||||
#include <asm/setup.h>
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <asm/mach/flash.h>
|
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
|
||||||
#include <mach/dm355.h>
|
#include <mach/dm355.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/common.h>
|
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/nand.h>
|
#include <mach/nand.h>
|
||||||
#include <mach/mmc.h>
|
#include <mach/mmc.h>
|
||||||
|
#include <mach/usb.h>
|
||||||
|
|
||||||
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e10000
|
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e10000
|
||||||
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
|
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
|
||||||
|
@ -86,8 +79,9 @@ static struct davinci_nand_pdata davinci_nand_data = {
|
||||||
.mask_chipsel = BIT(14),
|
.mask_chipsel = BIT(14),
|
||||||
.parts = davinci_nand_partitions,
|
.parts = davinci_nand_partitions,
|
||||||
.nr_parts = ARRAY_SIZE(davinci_nand_partitions),
|
.nr_parts = ARRAY_SIZE(davinci_nand_partitions),
|
||||||
.ecc_mode = NAND_ECC_HW_SYNDROME,
|
.ecc_mode = NAND_ECC_HW,
|
||||||
.options = NAND_USE_FLASH_BBT,
|
.options = NAND_USE_FLASH_BBT,
|
||||||
|
.ecc_bits = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource davinci_nand_resources[] = {
|
static struct resource davinci_nand_resources[] = {
|
||||||
|
@ -344,7 +338,7 @@ static __init void dm355_evm_init(void)
|
||||||
gpio_request(2, "usb_id_toggle");
|
gpio_request(2, "usb_id_toggle");
|
||||||
gpio_direction_output(2, USB_ID_VALUE);
|
gpio_direction_output(2, USB_ID_VALUE);
|
||||||
/* irlml6401 switches over 1A in under 8 msec */
|
/* irlml6401 switches over 1A in under 8 msec */
|
||||||
setup_usb(500, 8);
|
davinci_setup_usb(1000, 8);
|
||||||
|
|
||||||
davinci_setup_mmc(0, &dm355evm_mmc_config);
|
davinci_setup_mmc(0, &dm355evm_mmc_config);
|
||||||
davinci_setup_mmc(1, &dm355evm_mmc_config);
|
davinci_setup_mmc(1, &dm355evm_mmc_config);
|
||||||
|
|
|
@ -8,34 +8,27 @@
|
||||||
* warranty of any kind, whether express or implied.
|
* warranty of any kind, whether express or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/err.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/io.h>
|
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/spi/spi.h>
|
#include <linux/spi/spi.h>
|
||||||
#include <linux/spi/eeprom.h>
|
#include <linux/spi/eeprom.h>
|
||||||
|
|
||||||
#include <asm/setup.h>
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <asm/mach/flash.h>
|
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
|
||||||
#include <mach/dm355.h>
|
#include <mach/dm355.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/common.h>
|
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/nand.h>
|
#include <mach/nand.h>
|
||||||
#include <mach/mmc.h>
|
#include <mach/mmc.h>
|
||||||
|
#include <mach/usb.h>
|
||||||
|
|
||||||
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e10000
|
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e10000
|
||||||
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
|
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
|
||||||
|
@ -270,7 +263,7 @@ static __init void dm355_leopard_init(void)
|
||||||
gpio_request(2, "usb_id_toggle");
|
gpio_request(2, "usb_id_toggle");
|
||||||
gpio_direction_output(2, USB_ID_VALUE);
|
gpio_direction_output(2, USB_ID_VALUE);
|
||||||
/* irlml6401 switches over 1A in under 8 msec */
|
/* irlml6401 switches over 1A in under 8 msec */
|
||||||
setup_usb(500, 8);
|
davinci_setup_usb(1000, 8);
|
||||||
|
|
||||||
davinci_setup_mmc(0, &dm355leopard_mmc_config);
|
davinci_setup_mmc(0, &dm355leopard_mmc_config);
|
||||||
davinci_setup_mmc(1, &dm355leopard_mmc_config);
|
davinci_setup_mmc(1, &dm355leopard_mmc_config);
|
||||||
|
|
|
@ -13,9 +13,8 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/err.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
|
@ -24,20 +23,19 @@
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <asm/setup.h>
|
#include <linux/input.h>
|
||||||
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <mach/mux.h>
|
#include <mach/mux.h>
|
||||||
#include <mach/hardware.h>
|
|
||||||
#include <mach/dm365.h>
|
#include <mach/dm365.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/mmc.h>
|
#include <mach/mmc.h>
|
||||||
#include <mach/nand.h>
|
#include <mach/nand.h>
|
||||||
|
#include <mach/keyscan.h>
|
||||||
|
|
||||||
static inline int have_imager(void)
|
static inline int have_imager(void)
|
||||||
{
|
{
|
||||||
|
@ -144,6 +142,7 @@ static struct davinci_nand_pdata davinci_nand_data = {
|
||||||
.nr_parts = ARRAY_SIZE(davinci_nand_partitions),
|
.nr_parts = ARRAY_SIZE(davinci_nand_partitions),
|
||||||
.ecc_mode = NAND_ECC_HW,
|
.ecc_mode = NAND_ECC_HW,
|
||||||
.options = NAND_USE_FLASH_BBT,
|
.options = NAND_USE_FLASH_BBT,
|
||||||
|
.ecc_bits = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource davinci_nand_resources[] = {
|
static struct resource davinci_nand_resources[] = {
|
||||||
|
@ -176,11 +175,16 @@ static struct at24_platform_data eeprom_info = {
|
||||||
.context = (void *)0x7f00,
|
.context = (void *)0x7f00,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct snd_platform_data dm365_evm_snd_data;
|
||||||
|
|
||||||
static struct i2c_board_info i2c_info[] = {
|
static struct i2c_board_info i2c_info[] = {
|
||||||
{
|
{
|
||||||
I2C_BOARD_INFO("24c256", 0x50),
|
I2C_BOARD_INFO("24c256", 0x50),
|
||||||
.platform_data = &eeprom_info,
|
.platform_data = &eeprom_info,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct davinci_i2c_platform_data i2c_pdata = {
|
static struct davinci_i2c_platform_data i2c_pdata = {
|
||||||
|
@ -188,6 +192,38 @@ static struct davinci_i2c_platform_data i2c_pdata = {
|
||||||
.bus_delay = 0 /* usec */,
|
.bus_delay = 0 /* usec */,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_KEYBOARD_DAVINCI
|
||||||
|
static unsigned short dm365evm_keymap[] = {
|
||||||
|
KEY_KP2,
|
||||||
|
KEY_LEFT,
|
||||||
|
KEY_EXIT,
|
||||||
|
KEY_DOWN,
|
||||||
|
KEY_ENTER,
|
||||||
|
KEY_UP,
|
||||||
|
KEY_KP1,
|
||||||
|
KEY_RIGHT,
|
||||||
|
KEY_MENU,
|
||||||
|
KEY_RECORD,
|
||||||
|
KEY_REWIND,
|
||||||
|
KEY_KPMINUS,
|
||||||
|
KEY_STOP,
|
||||||
|
KEY_FASTFORWARD,
|
||||||
|
KEY_KPPLUS,
|
||||||
|
KEY_PLAYPAUSE,
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_ks_platform_data dm365evm_ks_data = {
|
||||||
|
.keymap = dm365evm_keymap,
|
||||||
|
.keymapsize = ARRAY_SIZE(dm365evm_keymap),
|
||||||
|
.rep = 1,
|
||||||
|
/* Scan period = strobe + interval */
|
||||||
|
.strobe = 0x5,
|
||||||
|
.interval = 0x2,
|
||||||
|
.matrix_type = DAVINCI_KEYSCAN_MATRIX_4X4,
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static int cpld_mmc_get_cd(int module)
|
static int cpld_mmc_get_cd(int module)
|
||||||
{
|
{
|
||||||
if (!cpld)
|
if (!cpld)
|
||||||
|
@ -472,6 +508,13 @@ static __init void dm365_evm_init(void)
|
||||||
|
|
||||||
/* maybe setup mmc1/etc ... _after_ mmc0 */
|
/* maybe setup mmc1/etc ... _after_ mmc0 */
|
||||||
evm_init_cpld();
|
evm_init_cpld();
|
||||||
|
|
||||||
|
dm365_init_asp(&dm365_evm_snd_data);
|
||||||
|
dm365_init_rtc();
|
||||||
|
|
||||||
|
#ifdef CONFIG_KEYBOARD_DAVINCI
|
||||||
|
dm365_init_ks(&dm365evm_ks_data);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init void dm365_evm_irq_init(void)
|
static __init void dm365_evm_irq_init(void)
|
||||||
|
|
|
@ -9,45 +9,34 @@
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/leds.h>
|
|
||||||
#include <linux/memory.h>
|
|
||||||
|
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/i2c/pcf857x.h>
|
#include <linux/i2c/pcf857x.h>
|
||||||
#include <linux/i2c/at24.h>
|
#include <linux/i2c/at24.h>
|
||||||
#include <linux/etherdevice.h>
|
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
#include <linux/io.h>
|
|
||||||
#include <linux/phy.h>
|
#include <linux/phy.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
|
|
||||||
#include <media/tvp514x.h>
|
#include <media/tvp514x.h>
|
||||||
|
|
||||||
#include <asm/setup.h>
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
|
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <asm/mach/flash.h>
|
|
||||||
|
|
||||||
#include <mach/dm644x.h>
|
#include <mach/dm644x.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/mux.h>
|
#include <mach/mux.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/nand.h>
|
#include <mach/nand.h>
|
||||||
#include <mach/mmc.h>
|
#include <mach/mmc.h>
|
||||||
#include <mach/emac.h>
|
#include <mach/usb.h>
|
||||||
|
|
||||||
#define DM644X_EVM_PHY_MASK (0x2)
|
#define DM644X_EVM_PHY_MASK (0x2)
|
||||||
#define DM644X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */
|
#define DM644X_EVM_MDIO_FREQUENCY (2200000) /* PHY bus frequency */
|
||||||
|
@ -477,7 +466,7 @@ evm_u35_setup(struct i2c_client *client, int gpio, unsigned ngpio, void *c)
|
||||||
/* irlml6401 switches over 1A, in under 8 msec;
|
/* irlml6401 switches over 1A, in under 8 msec;
|
||||||
* now it can be managed by nDRV_VBUS ...
|
* now it can be managed by nDRV_VBUS ...
|
||||||
*/
|
*/
|
||||||
setup_usb(500, 8);
|
davinci_setup_usb(1000, 8);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,38 +17,28 @@
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/major.h>
|
|
||||||
#include <linux/root_dev.h>
|
|
||||||
#include <linux/dma-mapping.h>
|
|
||||||
#include <linux/serial.h>
|
|
||||||
#include <linux/serial_8250.h>
|
|
||||||
#include <linux/leds.h>
|
#include <linux/leds.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/io.h>
|
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/i2c/at24.h>
|
#include <linux/i2c/at24.h>
|
||||||
#include <linux/i2c/pcf857x.h>
|
#include <linux/i2c/pcf857x.h>
|
||||||
#include <linux/etherdevice.h>
|
|
||||||
|
|
||||||
#include <media/tvp514x.h>
|
#include <media/tvp514x.h>
|
||||||
|
|
||||||
#include <asm/setup.h>
|
#include <linux/mtd/mtd.h>
|
||||||
|
#include <linux/mtd/nand.h>
|
||||||
|
#include <linux/mtd/partitions.h>
|
||||||
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <asm/mach/flash.h>
|
|
||||||
|
|
||||||
#include <mach/dm646x.h>
|
#include <mach/dm646x.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/mmc.h>
|
#include <mach/nand.h>
|
||||||
#include <mach/emac.h>
|
|
||||||
|
|
||||||
#if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
|
#if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
|
||||||
defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
|
defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
|
||||||
|
@ -57,6 +47,11 @@
|
||||||
#define HAS_ATA 0
|
#define HAS_ATA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x20008000
|
||||||
|
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x42000000
|
||||||
|
|
||||||
|
#define NAND_BLOCK_SIZE SZ_128K
|
||||||
|
|
||||||
/* CPLD Register 0 bits to control ATA */
|
/* CPLD Register 0 bits to control ATA */
|
||||||
#define DM646X_EVM_ATA_RST BIT(0)
|
#define DM646X_EVM_ATA_RST BIT(0)
|
||||||
#define DM646X_EVM_ATA_PWD BIT(1)
|
#define DM646X_EVM_ATA_PWD BIT(1)
|
||||||
|
@ -92,6 +87,63 @@ static struct davinci_uart_config uart_config __initdata = {
|
||||||
.enabled_uarts = (1 << 0),
|
.enabled_uarts = (1 << 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Note: We are setting first partition as 'bootloader' constituting UBL, U-Boot
|
||||||
|
* and U-Boot environment this avoids dependency on any particular combination
|
||||||
|
* of UBL, U-Boot or flashing tools etc.
|
||||||
|
*/
|
||||||
|
static struct mtd_partition davinci_nand_partitions[] = {
|
||||||
|
{
|
||||||
|
/* UBL, U-Boot with environment */
|
||||||
|
.name = "bootloader",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = 16 * NAND_BLOCK_SIZE,
|
||||||
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
||||||
|
}, {
|
||||||
|
.name = "kernel",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = SZ_4M,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}, {
|
||||||
|
.name = "filesystem",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = MTDPART_SIZ_FULL,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_nand_pdata davinci_nand_data = {
|
||||||
|
.mask_cle = 0x80000,
|
||||||
|
.mask_ale = 0x40000,
|
||||||
|
.parts = davinci_nand_partitions,
|
||||||
|
.nr_parts = ARRAY_SIZE(davinci_nand_partitions),
|
||||||
|
.ecc_mode = NAND_ECC_HW,
|
||||||
|
.options = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource davinci_nand_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE,
|
||||||
|
.end = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE + SZ_32M - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
}, {
|
||||||
|
.start = DAVINCI_ASYNC_EMIF_CONTROL_BASE,
|
||||||
|
.end = DAVINCI_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device davinci_nand_device = {
|
||||||
|
.name = "davinci_nand",
|
||||||
|
.id = 0,
|
||||||
|
|
||||||
|
.num_resources = ARRAY_SIZE(davinci_nand_resources),
|
||||||
|
.resource = davinci_nand_resources,
|
||||||
|
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &davinci_nand_data,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
/* CPLD Register 0 Client: used for I/O Control */
|
/* CPLD Register 0 Client: used for I/O Control */
|
||||||
static int cpld_reg0_probe(struct i2c_client *client,
|
static int cpld_reg0_probe(struct i2c_client *client,
|
||||||
const struct i2c_device_id *id)
|
const struct i2c_device_id *id)
|
||||||
|
@ -142,7 +194,7 @@ static struct gpio_led evm_leds[] = {
|
||||||
{ .name = "DS4", .active_low = 1, },
|
{ .name = "DS4", .active_low = 1, },
|
||||||
};
|
};
|
||||||
|
|
||||||
static __initconst struct gpio_led_platform_data evm_led_data = {
|
static const struct gpio_led_platform_data evm_led_data = {
|
||||||
.num_leds = ARRAY_SIZE(evm_leds),
|
.num_leds = ARRAY_SIZE(evm_leds),
|
||||||
.leds = evm_leds,
|
.leds = evm_leds,
|
||||||
};
|
};
|
||||||
|
@ -647,6 +699,8 @@ static __init void evm_init(void)
|
||||||
dm646x_init_mcasp0(&dm646x_evm_snd_data[0]);
|
dm646x_init_mcasp0(&dm646x_evm_snd_data[0]);
|
||||||
dm646x_init_mcasp1(&dm646x_evm_snd_data[1]);
|
dm646x_init_mcasp1(&dm646x_evm_snd_data[1]);
|
||||||
|
|
||||||
|
platform_device_register(&davinci_nand_device);
|
||||||
|
|
||||||
if (HAS_ATA)
|
if (HAS_ATA)
|
||||||
dm646x_init_ide();
|
dm646x_init_ide();
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,323 @@
|
||||||
|
/*
|
||||||
|
* Neuros Technologies OSD2 board support
|
||||||
|
*
|
||||||
|
* Modified from original 644X-EVM board support.
|
||||||
|
* 2008 (c) Neuros Technology, LLC.
|
||||||
|
* 2009 (c) Jorge Luis Zapata Muga <jorgeluis.zapata@gmail.com>
|
||||||
|
* 2009 (c) Andrey A. Porodko <Andrey.Porodko@gmail.com>
|
||||||
|
*
|
||||||
|
* The Neuros OSD 2.0 is the hardware component of the Neuros Open
|
||||||
|
* Internet Television Platform. Hardware is very close to TI
|
||||||
|
* DM644X-EVM board. It has:
|
||||||
|
* DM6446M02 module with 256MB NAND, 256MB RAM, TLV320AIC32 AIC,
|
||||||
|
* USB, Ethernet, SD/MMC, UART, THS8200, TVP7000 for video.
|
||||||
|
* Additionaly realtime clock, IR remote control receiver,
|
||||||
|
* IR Blaster based on MSP430 (firmware although is different
|
||||||
|
* from used in DM644X-EVM), internal ATA-6 3.5” HDD drive
|
||||||
|
* with PATA interface, two muxed red-green leds.
|
||||||
|
*
|
||||||
|
* For more information please refer to
|
||||||
|
* http://wiki.neurostechnology.com/index.php/OSD_2.0_HD
|
||||||
|
*
|
||||||
|
* This file is licensed under the terms of the GNU General Public
|
||||||
|
* License version 2. This program is licensed "as is" without any
|
||||||
|
* warranty of any kind, whether express or implied.
|
||||||
|
*/
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
|
#include <linux/mtd/partitions.h>
|
||||||
|
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
|
||||||
|
#include <mach/dm644x.h>
|
||||||
|
#include <mach/i2c.h>
|
||||||
|
#include <mach/serial.h>
|
||||||
|
#include <mach/mux.h>
|
||||||
|
#include <mach/nand.h>
|
||||||
|
#include <mach/mmc.h>
|
||||||
|
#include <mach/usb.h>
|
||||||
|
|
||||||
|
#define NEUROS_OSD2_PHY_MASK 0x2
|
||||||
|
#define NEUROS_OSD2_MDIO_FREQUENCY 2200000 /* PHY bus frequency */
|
||||||
|
|
||||||
|
#define DAVINCI_CFC_ATA_BASE 0x01C66000
|
||||||
|
|
||||||
|
#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x01e00000
|
||||||
|
#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x02000000
|
||||||
|
|
||||||
|
#define LXT971_PHY_ID 0x001378e2
|
||||||
|
#define LXT971_PHY_MASK 0xfffffff0
|
||||||
|
|
||||||
|
#define NTOSD2_AUDIOSOC_I2C_ADDR 0x18
|
||||||
|
#define NTOSD2_MSP430_I2C_ADDR 0x59
|
||||||
|
#define NTOSD2_MSP430_IRQ 2
|
||||||
|
|
||||||
|
/* Neuros OSD2 has a Samsung 256 MByte NAND flash (Dev ID of 0xAA,
|
||||||
|
* 2048 blocks in the device, 64 pages per block, 2048 bytes per
|
||||||
|
* page.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define NAND_BLOCK_SIZE SZ_128K
|
||||||
|
|
||||||
|
struct mtd_partition davinci_ntosd2_nandflash_partition[] = {
|
||||||
|
{
|
||||||
|
/* UBL (a few copies) plus U-Boot */
|
||||||
|
.name = "bootloader",
|
||||||
|
.offset = 0,
|
||||||
|
.size = 15 * NAND_BLOCK_SIZE,
|
||||||
|
.mask_flags = MTD_WRITEABLE, /* force read-only */
|
||||||
|
}, {
|
||||||
|
/* U-Boot environment */
|
||||||
|
.name = "params",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = 1 * NAND_BLOCK_SIZE,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}, {
|
||||||
|
/* Kernel */
|
||||||
|
.name = "kernel",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = SZ_4M,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}, {
|
||||||
|
/* File System */
|
||||||
|
.name = "filesystem",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = MTDPART_SIZ_FULL,
|
||||||
|
.mask_flags = 0,
|
||||||
|
}
|
||||||
|
/* A few blocks at end hold a flash Bad Block Table. */
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_nand_pdata davinci_ntosd2_nandflash_data = {
|
||||||
|
.parts = davinci_ntosd2_nandflash_partition,
|
||||||
|
.nr_parts = ARRAY_SIZE(davinci_ntosd2_nandflash_partition),
|
||||||
|
.ecc_mode = NAND_ECC_HW,
|
||||||
|
.options = NAND_USE_FLASH_BBT,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource davinci_ntosd2_nandflash_resource[] = {
|
||||||
|
{
|
||||||
|
.start = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE,
|
||||||
|
.end = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE + SZ_16M - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
}, {
|
||||||
|
.start = DAVINCI_ASYNC_EMIF_CONTROL_BASE,
|
||||||
|
.end = DAVINCI_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device davinci_ntosd2_nandflash_device = {
|
||||||
|
.name = "davinci_nand",
|
||||||
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &davinci_ntosd2_nandflash_data,
|
||||||
|
},
|
||||||
|
.num_resources = ARRAY_SIZE(davinci_ntosd2_nandflash_resource),
|
||||||
|
.resource = davinci_ntosd2_nandflash_resource,
|
||||||
|
};
|
||||||
|
|
||||||
|
static u64 davinci_fb_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
|
||||||
|
static struct platform_device davinci_fb_device = {
|
||||||
|
.name = "davincifb",
|
||||||
|
.id = -1,
|
||||||
|
.dev = {
|
||||||
|
.dma_mask = &davinci_fb_dma_mask,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
},
|
||||||
|
.num_resources = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource ide_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DAVINCI_CFC_ATA_BASE,
|
||||||
|
.end = DAVINCI_CFC_ATA_BASE + 0x7ff,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_IDE,
|
||||||
|
.end = IRQ_IDE,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static u64 ide_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
|
||||||
|
static struct platform_device ide_dev = {
|
||||||
|
.name = "palm_bk3710",
|
||||||
|
.id = -1,
|
||||||
|
.resource = ide_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(ide_resources),
|
||||||
|
.dev = {
|
||||||
|
.dma_mask = &ide_dma_mask,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct snd_platform_data dm644x_ntosd2_snd_data;
|
||||||
|
|
||||||
|
static struct gpio_led ntosd2_leds[] = {
|
||||||
|
{ .name = "led1_green", .gpio = GPIO(10), },
|
||||||
|
{ .name = "led1_red", .gpio = GPIO(11), },
|
||||||
|
{ .name = "led2_green", .gpio = GPIO(12), },
|
||||||
|
{ .name = "led2_red", .gpio = GPIO(13), },
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct gpio_led_platform_data ntosd2_leds_data = {
|
||||||
|
.num_leds = ARRAY_SIZE(ntosd2_leds),
|
||||||
|
.leds = ntosd2_leds,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device ntosd2_leds_dev = {
|
||||||
|
.name = "leds-gpio",
|
||||||
|
.id = -1,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &ntosd2_leds_data,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
static struct platform_device *davinci_ntosd2_devices[] __initdata = {
|
||||||
|
&davinci_fb_device,
|
||||||
|
&ntosd2_leds_dev,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct davinci_uart_config uart_config __initdata = {
|
||||||
|
.enabled_uarts = (1 << 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init davinci_ntosd2_map_io(void)
|
||||||
|
{
|
||||||
|
dm644x_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
I2C initialization
|
||||||
|
*/
|
||||||
|
static struct davinci_i2c_platform_data ntosd2_i2c_pdata = {
|
||||||
|
.bus_freq = 20 /* kHz */,
|
||||||
|
.bus_delay = 100 /* usec */,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct i2c_board_info __initdata ntosd2_i2c_info[] = {
|
||||||
|
};
|
||||||
|
|
||||||
|
static int ntosd2_init_i2c(void)
|
||||||
|
{
|
||||||
|
int status;
|
||||||
|
|
||||||
|
davinci_init_i2c(&ntosd2_i2c_pdata);
|
||||||
|
status = gpio_request(NTOSD2_MSP430_IRQ, ntosd2_i2c_info[0].type);
|
||||||
|
if (status == 0) {
|
||||||
|
status = gpio_direction_input(NTOSD2_MSP430_IRQ);
|
||||||
|
if (status == 0) {
|
||||||
|
status = gpio_to_irq(NTOSD2_MSP430_IRQ);
|
||||||
|
if (status > 0) {
|
||||||
|
ntosd2_i2c_info[0].irq = status;
|
||||||
|
i2c_register_board_info(1,
|
||||||
|
ntosd2_i2c_info,
|
||||||
|
ARRAY_SIZE(ntosd2_i2c_info));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct davinci_mmc_config davinci_ntosd2_mmc_config = {
|
||||||
|
.wires = 4,
|
||||||
|
.version = MMC_CTLR_VERSION_1
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
|
||||||
|
defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
|
||||||
|
#define HAS_ATA 1
|
||||||
|
#else
|
||||||
|
#define HAS_ATA 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_MTD_NAND_DAVINCI) || \
|
||||||
|
defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
|
||||||
|
#define HAS_NAND 1
|
||||||
|
#else
|
||||||
|
#define HAS_NAND 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static __init void davinci_ntosd2_init(void)
|
||||||
|
{
|
||||||
|
struct clk *aemif_clk;
|
||||||
|
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
||||||
|
int status;
|
||||||
|
|
||||||
|
aemif_clk = clk_get(NULL, "aemif");
|
||||||
|
clk_enable(aemif_clk);
|
||||||
|
|
||||||
|
if (HAS_ATA) {
|
||||||
|
if (HAS_NAND)
|
||||||
|
pr_warning("WARNING: both IDE and Flash are "
|
||||||
|
"enabled, but they share AEMIF pins.\n"
|
||||||
|
"\tDisable IDE for NAND/NOR support.\n");
|
||||||
|
davinci_cfg_reg(DM644X_HPIEN_DISABLE);
|
||||||
|
davinci_cfg_reg(DM644X_ATAEN);
|
||||||
|
davinci_cfg_reg(DM644X_HDIREN);
|
||||||
|
platform_device_register(&ide_dev);
|
||||||
|
} else if (HAS_NAND) {
|
||||||
|
davinci_cfg_reg(DM644X_HPIEN_DISABLE);
|
||||||
|
davinci_cfg_reg(DM644X_ATAEN_DISABLE);
|
||||||
|
|
||||||
|
/* only one device will be jumpered and detected */
|
||||||
|
if (HAS_NAND)
|
||||||
|
platform_device_register(
|
||||||
|
&davinci_ntosd2_nandflash_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
platform_add_devices(davinci_ntosd2_devices,
|
||||||
|
ARRAY_SIZE(davinci_ntosd2_devices));
|
||||||
|
|
||||||
|
/* Initialize I2C interface specific for this board */
|
||||||
|
status = ntosd2_init_i2c();
|
||||||
|
if (status < 0)
|
||||||
|
pr_warning("davinci_ntosd2_init: msp430 irq setup failed:"
|
||||||
|
" %d\n", status);
|
||||||
|
|
||||||
|
davinci_serial_init(&uart_config);
|
||||||
|
dm644x_init_asp(&dm644x_ntosd2_snd_data);
|
||||||
|
|
||||||
|
soc_info->emac_pdata->phy_mask = NEUROS_OSD2_PHY_MASK;
|
||||||
|
soc_info->emac_pdata->mdio_max_freq = NEUROS_OSD2_MDIO_FREQUENCY;
|
||||||
|
|
||||||
|
davinci_setup_usb(1000, 8);
|
||||||
|
/*
|
||||||
|
* Mux the pins to be GPIOs, VLYNQEN is already done at startup.
|
||||||
|
* The AEAWx are five new AEAW pins that can be muxed by separately.
|
||||||
|
* They are a bitmask for GPIO management. According TI
|
||||||
|
* documentation (http://www.ti.com/lit/gpn/tms320dm6446) to employ
|
||||||
|
* gpio(10,11,12,13) for leds any combination of bits works except
|
||||||
|
* four last. So we are to reset all five.
|
||||||
|
*/
|
||||||
|
davinci_cfg_reg(DM644X_AEAW0);
|
||||||
|
davinci_cfg_reg(DM644X_AEAW1);
|
||||||
|
davinci_cfg_reg(DM644X_AEAW2);
|
||||||
|
davinci_cfg_reg(DM644X_AEAW3);
|
||||||
|
davinci_cfg_reg(DM644X_AEAW4);
|
||||||
|
|
||||||
|
davinci_setup_mmc(0, &davinci_ntosd2_mmc_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
static __init void davinci_ntosd2_irq_init(void)
|
||||||
|
{
|
||||||
|
davinci_irq_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(NEUROS_OSD2, "Neuros OSD2")
|
||||||
|
/* Maintainer: Neuros Technologies <neuros@groups.google.com> */
|
||||||
|
.phys_io = IO_PHYS,
|
||||||
|
.io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc,
|
||||||
|
.boot_params = (DAVINCI_DDR_BASE + 0x100),
|
||||||
|
.map_io = davinci_ntosd2_map_io,
|
||||||
|
.init_irq = davinci_ntosd2_irq_init,
|
||||||
|
.timer = &davinci_timer,
|
||||||
|
.init_machine = davinci_ntosd2_init,
|
||||||
|
MACHINE_END
|
|
@ -23,35 +23,24 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/dma-mapping.h>
|
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/gpio.h>
|
|
||||||
|
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/i2c/at24.h>
|
#include <linux/i2c/at24.h>
|
||||||
#include <linux/etherdevice.h>
|
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
#include <linux/mtd/nand.h>
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/physmap.h>
|
|
||||||
#include <linux/io.h>
|
|
||||||
|
|
||||||
#include <asm/setup.h>
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
|
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
|
||||||
#include <asm/mach/flash.h>
|
#include <asm/mach/flash.h>
|
||||||
|
|
||||||
#include <mach/dm644x.h>
|
#include <mach/dm644x.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/psc.h>
|
|
||||||
#include <mach/mux.h>
|
#include <mach/mux.h>
|
||||||
|
#include <mach/usb.h>
|
||||||
|
|
||||||
#define SFFSDR_PHY_MASK (0x2)
|
#define SFFSDR_PHY_MASK (0x2)
|
||||||
#define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */
|
#define SFFSDR_MDIO_FREQUENCY (2200000) /* PHY bus frequency */
|
||||||
|
@ -107,11 +96,6 @@ static struct platform_device davinci_sffsdr_nandflash_device = {
|
||||||
.resource = davinci_sffsdr_nandflash_resource,
|
.resource = davinci_sffsdr_nandflash_resource,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct emac_platform_data sffsdr_emac_pdata = {
|
|
||||||
.phy_mask = SFFSDR_PHY_MASK,
|
|
||||||
.mdio_max_freq = SFFSDR_MDIO_FREQUENCY,
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct at24_platform_data eeprom_info = {
|
static struct at24_platform_data eeprom_info = {
|
||||||
.byte_len = (64*1024) / 8,
|
.byte_len = (64*1024) / 8,
|
||||||
.page_size = 32,
|
.page_size = 32,
|
||||||
|
@ -164,7 +148,7 @@ static __init void davinci_sffsdr_init(void)
|
||||||
davinci_serial_init(&uart_config);
|
davinci_serial_init(&uart_config);
|
||||||
soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK;
|
soc_info->emac_pdata->phy_mask = SFFSDR_PHY_MASK;
|
||||||
soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY;
|
soc_info->emac_pdata->mdio_max_freq = SFFSDR_MDIO_FREQUENCY;
|
||||||
setup_usb(0, 0); /* We support only peripheral mode. */
|
davinci_setup_usb(0, 0); /* We support only peripheral mode. */
|
||||||
|
|
||||||
/* mux VLYNQ pins */
|
/* mux VLYNQ pins */
|
||||||
davinci_cfg_reg(DM644X_VLYNQEN);
|
davinci_cfg_reg(DM644X_VLYNQEN);
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/platform_device.h>
|
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
#include <linux/delay.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
|
|
||||||
|
@ -42,8 +42,7 @@ static void __clk_enable(struct clk *clk)
|
||||||
if (clk->parent)
|
if (clk->parent)
|
||||||
__clk_enable(clk->parent);
|
__clk_enable(clk->parent);
|
||||||
if (clk->usecount++ == 0 && (clk->flags & CLK_PSC))
|
if (clk->usecount++ == 0 && (clk->flags & CLK_PSC))
|
||||||
davinci_psc_config(psc_domain(clk), clk->psc_ctlr,
|
davinci_psc_config(psc_domain(clk), clk->gpsc, clk->lpsc, 1);
|
||||||
clk->lpsc, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __clk_disable(struct clk *clk)
|
static void __clk_disable(struct clk *clk)
|
||||||
|
@ -51,8 +50,7 @@ static void __clk_disable(struct clk *clk)
|
||||||
if (WARN_ON(clk->usecount == 0))
|
if (WARN_ON(clk->usecount == 0))
|
||||||
return;
|
return;
|
||||||
if (--clk->usecount == 0 && !(clk->flags & CLK_PLL))
|
if (--clk->usecount == 0 && !(clk->flags & CLK_PLL))
|
||||||
davinci_psc_config(psc_domain(clk), clk->psc_ctlr,
|
davinci_psc_config(psc_domain(clk), clk->gpsc, clk->lpsc, 0);
|
||||||
clk->lpsc, 0);
|
|
||||||
if (clk->parent)
|
if (clk->parent)
|
||||||
__clk_disable(clk->parent);
|
__clk_disable(clk->parent);
|
||||||
}
|
}
|
||||||
|
@ -99,19 +97,73 @@ long clk_round_rate(struct clk *clk, unsigned long rate)
|
||||||
if (clk == NULL || IS_ERR(clk))
|
if (clk == NULL || IS_ERR(clk))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (clk->round_rate)
|
||||||
|
return clk->round_rate(clk, rate);
|
||||||
|
|
||||||
return clk->rate;
|
return clk->rate;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(clk_round_rate);
|
EXPORT_SYMBOL(clk_round_rate);
|
||||||
|
|
||||||
|
/* Propagate rate to children */
|
||||||
|
static void propagate_rate(struct clk *root)
|
||||||
|
{
|
||||||
|
struct clk *clk;
|
||||||
|
|
||||||
|
list_for_each_entry(clk, &root->children, childnode) {
|
||||||
|
if (clk->recalc)
|
||||||
|
clk->rate = clk->recalc(clk);
|
||||||
|
propagate_rate(clk);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int clk_set_rate(struct clk *clk, unsigned long rate)
|
int clk_set_rate(struct clk *clk, unsigned long rate)
|
||||||
{
|
{
|
||||||
|
unsigned long flags;
|
||||||
|
int ret = -EINVAL;
|
||||||
|
|
||||||
|
if (clk == NULL || IS_ERR(clk))
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
spin_lock_irqsave(&clockfw_lock, flags);
|
||||||
|
if (clk->set_rate)
|
||||||
|
ret = clk->set_rate(clk, rate);
|
||||||
|
if (ret == 0) {
|
||||||
|
if (clk->recalc)
|
||||||
|
clk->rate = clk->recalc(clk);
|
||||||
|
propagate_rate(clk);
|
||||||
|
}
|
||||||
|
spin_unlock_irqrestore(&clockfw_lock, flags);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_set_rate);
|
||||||
|
|
||||||
|
int clk_set_parent(struct clk *clk, struct clk *parent)
|
||||||
|
{
|
||||||
|
unsigned long flags;
|
||||||
|
|
||||||
if (clk == NULL || IS_ERR(clk))
|
if (clk == NULL || IS_ERR(clk))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* changing the clk rate is not supported */
|
/* Cannot change parent on enabled clock */
|
||||||
return -EINVAL;
|
if (WARN_ON(clk->usecount))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
mutex_lock(&clocks_mutex);
|
||||||
|
clk->parent = parent;
|
||||||
|
list_del_init(&clk->childnode);
|
||||||
|
list_add(&clk->childnode, &clk->parent->children);
|
||||||
|
mutex_unlock(&clocks_mutex);
|
||||||
|
|
||||||
|
spin_lock_irqsave(&clockfw_lock, flags);
|
||||||
|
if (clk->recalc)
|
||||||
|
clk->rate = clk->recalc(clk);
|
||||||
|
propagate_rate(clk);
|
||||||
|
spin_unlock_irqrestore(&clockfw_lock, flags);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(clk_set_rate);
|
EXPORT_SYMBOL(clk_set_parent);
|
||||||
|
|
||||||
int clk_register(struct clk *clk)
|
int clk_register(struct clk *clk)
|
||||||
{
|
{
|
||||||
|
@ -123,16 +175,24 @@ int clk_register(struct clk *clk)
|
||||||
clk->name, clk->parent->name))
|
clk->name, clk->parent->name))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
INIT_LIST_HEAD(&clk->children);
|
||||||
|
|
||||||
mutex_lock(&clocks_mutex);
|
mutex_lock(&clocks_mutex);
|
||||||
list_add_tail(&clk->node, &clocks);
|
list_add_tail(&clk->node, &clocks);
|
||||||
|
if (clk->parent)
|
||||||
|
list_add_tail(&clk->childnode, &clk->parent->children);
|
||||||
mutex_unlock(&clocks_mutex);
|
mutex_unlock(&clocks_mutex);
|
||||||
|
|
||||||
/* If rate is already set, use it */
|
/* If rate is already set, use it */
|
||||||
if (clk->rate)
|
if (clk->rate)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* Else, see if there is a way to calculate it */
|
||||||
|
if (clk->recalc)
|
||||||
|
clk->rate = clk->recalc(clk);
|
||||||
|
|
||||||
/* Otherwise, default to parent rate */
|
/* Otherwise, default to parent rate */
|
||||||
if (clk->parent)
|
else if (clk->parent)
|
||||||
clk->rate = clk->parent->rate;
|
clk->rate = clk->parent->rate;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -146,6 +206,7 @@ void clk_unregister(struct clk *clk)
|
||||||
|
|
||||||
mutex_lock(&clocks_mutex);
|
mutex_lock(&clocks_mutex);
|
||||||
list_del(&clk->node);
|
list_del(&clk->node);
|
||||||
|
list_del(&clk->childnode);
|
||||||
mutex_unlock(&clocks_mutex);
|
mutex_unlock(&clocks_mutex);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(clk_unregister);
|
EXPORT_SYMBOL(clk_unregister);
|
||||||
|
@ -166,11 +227,11 @@ static int __init clk_disable_unused(void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* ignore if in Disabled or SwRstDisable states */
|
/* ignore if in Disabled or SwRstDisable states */
|
||||||
if (!davinci_psc_is_clk_active(ck->psc_ctlr, ck->lpsc))
|
if (!davinci_psc_is_clk_active(ck->gpsc, ck->lpsc))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pr_info("Clocks: disable unused %s\n", ck->name);
|
pr_info("Clocks: disable unused %s\n", ck->name);
|
||||||
davinci_psc_config(psc_domain(ck), ck->psc_ctlr, ck->lpsc, 0);
|
davinci_psc_config(psc_domain(ck), ck->gpsc, ck->lpsc, 0);
|
||||||
}
|
}
|
||||||
spin_unlock_irq(&clockfw_lock);
|
spin_unlock_irq(&clockfw_lock);
|
||||||
|
|
||||||
|
@ -179,50 +240,62 @@ static int __init clk_disable_unused(void)
|
||||||
late_initcall(clk_disable_unused);
|
late_initcall(clk_disable_unused);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void clk_sysclk_recalc(struct clk *clk)
|
static unsigned long clk_sysclk_recalc(struct clk *clk)
|
||||||
{
|
{
|
||||||
u32 v, plldiv;
|
u32 v, plldiv;
|
||||||
struct pll_data *pll;
|
struct pll_data *pll;
|
||||||
|
unsigned long rate = clk->rate;
|
||||||
|
|
||||||
/* If this is the PLL base clock, no more calculations needed */
|
/* If this is the PLL base clock, no more calculations needed */
|
||||||
if (clk->pll_data)
|
if (clk->pll_data)
|
||||||
return;
|
return rate;
|
||||||
|
|
||||||
if (WARN_ON(!clk->parent))
|
if (WARN_ON(!clk->parent))
|
||||||
return;
|
return rate;
|
||||||
|
|
||||||
clk->rate = clk->parent->rate;
|
rate = clk->parent->rate;
|
||||||
|
|
||||||
/* Otherwise, the parent must be a PLL */
|
/* Otherwise, the parent must be a PLL */
|
||||||
if (WARN_ON(!clk->parent->pll_data))
|
if (WARN_ON(!clk->parent->pll_data))
|
||||||
return;
|
return rate;
|
||||||
|
|
||||||
pll = clk->parent->pll_data;
|
pll = clk->parent->pll_data;
|
||||||
|
|
||||||
/* If pre-PLL, source clock is before the multiplier and divider(s) */
|
/* If pre-PLL, source clock is before the multiplier and divider(s) */
|
||||||
if (clk->flags & PRE_PLL)
|
if (clk->flags & PRE_PLL)
|
||||||
clk->rate = pll->input_rate;
|
rate = pll->input_rate;
|
||||||
|
|
||||||
if (!clk->div_reg)
|
if (!clk->div_reg)
|
||||||
return;
|
return rate;
|
||||||
|
|
||||||
v = __raw_readl(pll->base + clk->div_reg);
|
v = __raw_readl(pll->base + clk->div_reg);
|
||||||
if (v & PLLDIV_EN) {
|
if (v & PLLDIV_EN) {
|
||||||
plldiv = (v & PLLDIV_RATIO_MASK) + 1;
|
plldiv = (v & PLLDIV_RATIO_MASK) + 1;
|
||||||
if (plldiv)
|
if (plldiv)
|
||||||
clk->rate /= plldiv;
|
rate /= plldiv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init clk_pll_init(struct clk *clk)
|
static unsigned long clk_leafclk_recalc(struct clk *clk)
|
||||||
|
{
|
||||||
|
if (WARN_ON(!clk->parent))
|
||||||
|
return clk->rate;
|
||||||
|
|
||||||
|
return clk->parent->rate;
|
||||||
|
}
|
||||||
|
|
||||||
|
static unsigned long clk_pllclk_recalc(struct clk *clk)
|
||||||
{
|
{
|
||||||
u32 ctrl, mult = 1, prediv = 1, postdiv = 1;
|
u32 ctrl, mult = 1, prediv = 1, postdiv = 1;
|
||||||
u8 bypass;
|
u8 bypass;
|
||||||
struct pll_data *pll = clk->pll_data;
|
struct pll_data *pll = clk->pll_data;
|
||||||
|
unsigned long rate = clk->rate;
|
||||||
|
|
||||||
pll->base = IO_ADDRESS(pll->phys_base);
|
pll->base = IO_ADDRESS(pll->phys_base);
|
||||||
ctrl = __raw_readl(pll->base + PLLCTL);
|
ctrl = __raw_readl(pll->base + PLLCTL);
|
||||||
clk->rate = pll->input_rate = clk->parent->rate;
|
rate = pll->input_rate = clk->parent->rate;
|
||||||
|
|
||||||
if (ctrl & PLLCTL_PLLEN) {
|
if (ctrl & PLLCTL_PLLEN) {
|
||||||
bypass = 0;
|
bypass = 0;
|
||||||
|
@ -255,9 +328,9 @@ static void __init clk_pll_init(struct clk *clk)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bypass) {
|
if (!bypass) {
|
||||||
clk->rate /= prediv;
|
rate /= prediv;
|
||||||
clk->rate *= mult;
|
rate *= mult;
|
||||||
clk->rate /= postdiv;
|
rate /= postdiv;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_debug("PLL%d: input = %lu MHz [ ",
|
pr_debug("PLL%d: input = %lu MHz [ ",
|
||||||
|
@ -270,9 +343,91 @@ static void __init clk_pll_init(struct clk *clk)
|
||||||
pr_debug("* %d ", mult);
|
pr_debug("* %d ", mult);
|
||||||
if (postdiv > 1)
|
if (postdiv > 1)
|
||||||
pr_debug("/ %d ", postdiv);
|
pr_debug("/ %d ", postdiv);
|
||||||
pr_debug("] --> %lu MHz output.\n", clk->rate / 1000000);
|
pr_debug("] --> %lu MHz output.\n", rate / 1000000);
|
||||||
|
|
||||||
|
return rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* davinci_set_pllrate - set the output rate of a given PLL.
|
||||||
|
*
|
||||||
|
* Note: Currently tested to work with OMAP-L138 only.
|
||||||
|
*
|
||||||
|
* @pll: pll whose rate needs to be changed.
|
||||||
|
* @prediv: The pre divider value. Passing 0 disables the pre-divider.
|
||||||
|
* @pllm: The multiplier value. Passing 0 leads to multiply-by-one.
|
||||||
|
* @postdiv: The post divider value. Passing 0 disables the post-divider.
|
||||||
|
*/
|
||||||
|
int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv,
|
||||||
|
unsigned int mult, unsigned int postdiv)
|
||||||
|
{
|
||||||
|
u32 ctrl;
|
||||||
|
unsigned int locktime;
|
||||||
|
|
||||||
|
if (pll->base == NULL)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* PLL lock time required per OMAP-L138 datasheet is
|
||||||
|
* (2000 * prediv)/sqrt(pllm) OSCIN cycles. We approximate sqrt(pllm)
|
||||||
|
* as 4 and OSCIN cycle as 25 MHz.
|
||||||
|
*/
|
||||||
|
if (prediv) {
|
||||||
|
locktime = ((2000 * prediv) / 100);
|
||||||
|
prediv = (prediv - 1) | PLLDIV_EN;
|
||||||
|
} else {
|
||||||
|
locktime = 20;
|
||||||
|
}
|
||||||
|
if (postdiv)
|
||||||
|
postdiv = (postdiv - 1) | PLLDIV_EN;
|
||||||
|
if (mult)
|
||||||
|
mult = mult - 1;
|
||||||
|
|
||||||
|
ctrl = __raw_readl(pll->base + PLLCTL);
|
||||||
|
|
||||||
|
/* Switch the PLL to bypass mode */
|
||||||
|
ctrl &= ~(PLLCTL_PLLENSRC | PLLCTL_PLLEN);
|
||||||
|
__raw_writel(ctrl, pll->base + PLLCTL);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Wait for 4 OSCIN/CLKIN cycles to ensure that the PLLC has switched
|
||||||
|
* to bypass mode. Delay of 1us ensures we are good for all > 4MHz
|
||||||
|
* OSCIN/CLKIN inputs. Typically the input is ~25MHz.
|
||||||
|
*/
|
||||||
|
udelay(1);
|
||||||
|
|
||||||
|
/* Reset and enable PLL */
|
||||||
|
ctrl &= ~(PLLCTL_PLLRST | PLLCTL_PLLDIS);
|
||||||
|
__raw_writel(ctrl, pll->base + PLLCTL);
|
||||||
|
|
||||||
|
if (pll->flags & PLL_HAS_PREDIV)
|
||||||
|
__raw_writel(prediv, pll->base + PREDIV);
|
||||||
|
|
||||||
|
__raw_writel(mult, pll->base + PLLM);
|
||||||
|
|
||||||
|
if (pll->flags & PLL_HAS_POSTDIV)
|
||||||
|
__raw_writel(postdiv, pll->base + POSTDIV);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Wait for PLL to reset properly, OMAP-L138 datasheet says
|
||||||
|
* 'min' time = 125ns
|
||||||
|
*/
|
||||||
|
udelay(1);
|
||||||
|
|
||||||
|
/* Bring PLL out of reset */
|
||||||
|
ctrl |= PLLCTL_PLLRST;
|
||||||
|
__raw_writel(ctrl, pll->base + PLLCTL);
|
||||||
|
|
||||||
|
udelay(locktime);
|
||||||
|
|
||||||
|
/* Remove PLL from bypass mode */
|
||||||
|
ctrl |= PLLCTL_PLLEN;
|
||||||
|
__raw_writel(ctrl, pll->base + PLLCTL);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(davinci_set_pllrate);
|
||||||
|
|
||||||
int __init davinci_clk_init(struct davinci_clk *clocks)
|
int __init davinci_clk_init(struct davinci_clk *clocks)
|
||||||
{
|
{
|
||||||
struct davinci_clk *c;
|
struct davinci_clk *c;
|
||||||
|
@ -281,12 +436,23 @@ int __init davinci_clk_init(struct davinci_clk *clocks)
|
||||||
for (c = clocks; c->lk.clk; c++) {
|
for (c = clocks; c->lk.clk; c++) {
|
||||||
clk = c->lk.clk;
|
clk = c->lk.clk;
|
||||||
|
|
||||||
if (clk->pll_data)
|
if (!clk->recalc) {
|
||||||
clk_pll_init(clk);
|
|
||||||
|
|
||||||
/* Calculate rates for PLL-derived clocks */
|
/* Check if clock is a PLL */
|
||||||
else if (clk->flags & CLK_PLL)
|
if (clk->pll_data)
|
||||||
clk_sysclk_recalc(clk);
|
clk->recalc = clk_pllclk_recalc;
|
||||||
|
|
||||||
|
/* Else, if it is a PLL-derived clock */
|
||||||
|
else if (clk->flags & CLK_PLL)
|
||||||
|
clk->recalc = clk_sysclk_recalc;
|
||||||
|
|
||||||
|
/* Otherwise, it is a leaf clock (PSC clock) */
|
||||||
|
else if (clk->parent)
|
||||||
|
clk->recalc = clk_leafclk_recalc;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (clk->recalc)
|
||||||
|
clk->rate = clk->recalc(clk);
|
||||||
|
|
||||||
if (clk->lpsc)
|
if (clk->lpsc)
|
||||||
clk->flags |= CLK_PSC;
|
clk->flags |= CLK_PSC;
|
||||||
|
@ -352,9 +518,8 @@ dump_clock(struct seq_file *s, unsigned nest, struct clk *parent)
|
||||||
/* REVISIT show device associations too */
|
/* REVISIT show device associations too */
|
||||||
|
|
||||||
/* cost is now small, but not linear... */
|
/* cost is now small, but not linear... */
|
||||||
list_for_each_entry(clk, &clocks, node) {
|
list_for_each_entry(clk, &parent->children, childnode) {
|
||||||
if (clk->parent == parent)
|
dump_clock(s, nest + NEST_DELTA, clk);
|
||||||
dump_clock(s, nest + NEST_DELTA, clk);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
/* PLL/Reset register offsets */
|
/* PLL/Reset register offsets */
|
||||||
#define PLLCTL 0x100
|
#define PLLCTL 0x100
|
||||||
#define PLLCTL_PLLEN BIT(0)
|
#define PLLCTL_PLLEN BIT(0)
|
||||||
|
#define PLLCTL_PLLPWRDN BIT(1)
|
||||||
|
#define PLLCTL_PLLRST BIT(3)
|
||||||
|
#define PLLCTL_PLLDIS BIT(4)
|
||||||
|
#define PLLCTL_PLLENSRC BIT(5)
|
||||||
#define PLLCTL_CLKMODE BIT(8)
|
#define PLLCTL_CLKMODE BIT(8)
|
||||||
|
|
||||||
#define PLLM 0x110
|
#define PLLM 0x110
|
||||||
|
@ -65,15 +69,20 @@ struct clk {
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned long rate;
|
unsigned long rate;
|
||||||
u8 usecount;
|
u8 usecount;
|
||||||
u8 flags;
|
|
||||||
u8 lpsc;
|
u8 lpsc;
|
||||||
u8 psc_ctlr;
|
u8 gpsc;
|
||||||
|
u32 flags;
|
||||||
struct clk *parent;
|
struct clk *parent;
|
||||||
|
struct list_head children; /* list of children */
|
||||||
|
struct list_head childnode; /* parent's child list node */
|
||||||
struct pll_data *pll_data;
|
struct pll_data *pll_data;
|
||||||
u32 div_reg;
|
u32 div_reg;
|
||||||
|
unsigned long (*recalc) (struct clk *);
|
||||||
|
int (*set_rate) (struct clk *clk, unsigned long rate);
|
||||||
|
int (*round_rate) (struct clk *clk, unsigned long rate);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Clock flags */
|
/* Clock flags: SoC-specific flags start at BIT(16) */
|
||||||
#define ALWAYS_ENABLED BIT(1)
|
#define ALWAYS_ENABLED BIT(1)
|
||||||
#define CLK_PSC BIT(2)
|
#define CLK_PSC BIT(2)
|
||||||
#define PSC_DSP BIT(3) /* PSC uses DSP domain, not ARM */
|
#define PSC_DSP BIT(3) /* PSC uses DSP domain, not ARM */
|
||||||
|
@ -94,6 +103,8 @@ struct davinci_clk {
|
||||||
}
|
}
|
||||||
|
|
||||||
int davinci_clk_init(struct davinci_clk *clocks);
|
int davinci_clk_init(struct davinci_clk *clocks);
|
||||||
|
int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv,
|
||||||
|
unsigned int mult, unsigned int postdiv);
|
||||||
|
|
||||||
extern struct platform_device davinci_wdt_device;
|
extern struct platform_device davinci_wdt_device;
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,8 @@ void __init davinci_common_init(struct davinci_soc_info *soc_info)
|
||||||
dip = davinci_get_id(davinci_soc_info.jtag_id);
|
dip = davinci_get_id(davinci_soc_info.jtag_id);
|
||||||
if (!dip) {
|
if (!dip) {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
pr_err("Unknown DaVinci JTAG ID 0x%x\n",
|
||||||
|
davinci_soc_info.jtag_id);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,5 +106,5 @@ void __init davinci_common_init(struct davinci_soc_info *soc_info)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
pr_err("davinci_common_init: SoC Initialization failed\n");
|
panic("davinci_common_init: SoC Initialization failed\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/sched.h>
|
|
||||||
#include <linux/interrupt.h>
|
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,226 @@
|
||||||
|
/*
|
||||||
|
* CPU frequency scaling for DaVinci
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
|
||||||
|
*
|
||||||
|
* Based on linux/arch/arm/plat-omap/cpu-omap.c. Original Copyright follows:
|
||||||
|
*
|
||||||
|
* Copyright (C) 2005 Nokia Corporation
|
||||||
|
* Written by Tony Lindgren <tony@atomide.com>
|
||||||
|
*
|
||||||
|
* Based on cpu-sa1110.c, Copyright (C) 2001 Russell King
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2008 Texas Instruments, Inc.
|
||||||
|
* Updated to support OMAP3
|
||||||
|
* Rajendra Nayak <rnayak@ti.com>
|
||||||
|
*
|
||||||
|
* This program 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.
|
||||||
|
*/
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/cpufreq.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/err.h>
|
||||||
|
#include <linux/clk.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <mach/hardware.h>
|
||||||
|
#include <mach/cpufreq.h>
|
||||||
|
#include <mach/common.h>
|
||||||
|
|
||||||
|
#include "clock.h"
|
||||||
|
|
||||||
|
struct davinci_cpufreq {
|
||||||
|
struct device *dev;
|
||||||
|
struct clk *armclk;
|
||||||
|
};
|
||||||
|
static struct davinci_cpufreq cpufreq;
|
||||||
|
|
||||||
|
static int davinci_verify_speed(struct cpufreq_policy *policy)
|
||||||
|
{
|
||||||
|
struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
|
||||||
|
struct cpufreq_frequency_table *freq_table = pdata->freq_table;
|
||||||
|
struct clk *armclk = cpufreq.armclk;
|
||||||
|
|
||||||
|
if (freq_table)
|
||||||
|
return cpufreq_frequency_table_verify(policy, freq_table);
|
||||||
|
|
||||||
|
if (policy->cpu)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
|
||||||
|
policy->cpuinfo.max_freq);
|
||||||
|
|
||||||
|
policy->min = clk_round_rate(armclk, policy->min * 1000) / 1000;
|
||||||
|
policy->max = clk_round_rate(armclk, policy->max * 1000) / 1000;
|
||||||
|
cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
|
||||||
|
policy->cpuinfo.max_freq);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static unsigned int davinci_getspeed(unsigned int cpu)
|
||||||
|
{
|
||||||
|
if (cpu)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return clk_get_rate(cpufreq.armclk) / 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int davinci_target(struct cpufreq_policy *policy,
|
||||||
|
unsigned int target_freq, unsigned int relation)
|
||||||
|
{
|
||||||
|
int ret = 0;
|
||||||
|
unsigned int idx;
|
||||||
|
struct cpufreq_freqs freqs;
|
||||||
|
struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
|
||||||
|
struct clk *armclk = cpufreq.armclk;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Ensure desired rate is within allowed range. Some govenors
|
||||||
|
* (ondemand) will just pass target_freq=0 to get the minimum.
|
||||||
|
*/
|
||||||
|
if (target_freq < policy->cpuinfo.min_freq)
|
||||||
|
target_freq = policy->cpuinfo.min_freq;
|
||||||
|
if (target_freq > policy->cpuinfo.max_freq)
|
||||||
|
target_freq = policy->cpuinfo.max_freq;
|
||||||
|
|
||||||
|
freqs.old = davinci_getspeed(0);
|
||||||
|
freqs.new = clk_round_rate(armclk, target_freq * 1000) / 1000;
|
||||||
|
freqs.cpu = 0;
|
||||||
|
|
||||||
|
if (freqs.old == freqs.new)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER,
|
||||||
|
dev_driver_string(cpufreq.dev),
|
||||||
|
"transition: %u --> %u\n", freqs.old, freqs.new);
|
||||||
|
|
||||||
|
ret = cpufreq_frequency_table_target(policy, pdata->freq_table,
|
||||||
|
freqs.new, relation, &idx);
|
||||||
|
if (ret)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
|
||||||
|
|
||||||
|
/* if moving to higher frequency, up the voltage beforehand */
|
||||||
|
if (pdata->set_voltage && freqs.new > freqs.old)
|
||||||
|
pdata->set_voltage(idx);
|
||||||
|
|
||||||
|
ret = clk_set_rate(armclk, idx);
|
||||||
|
|
||||||
|
/* if moving to lower freq, lower the voltage after lowering freq */
|
||||||
|
if (pdata->set_voltage && freqs.new < freqs.old)
|
||||||
|
pdata->set_voltage(idx);
|
||||||
|
|
||||||
|
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int __init davinci_cpu_init(struct cpufreq_policy *policy)
|
||||||
|
{
|
||||||
|
int result = 0;
|
||||||
|
struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
|
||||||
|
struct cpufreq_frequency_table *freq_table = pdata->freq_table;
|
||||||
|
|
||||||
|
if (policy->cpu != 0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
/* Finish platform specific initialization */
|
||||||
|
if (pdata->init) {
|
||||||
|
result = pdata->init();
|
||||||
|
if (result)
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
policy->cur = policy->min = policy->max = davinci_getspeed(0);
|
||||||
|
|
||||||
|
if (freq_table) {
|
||||||
|
result = cpufreq_frequency_table_cpuinfo(policy, freq_table);
|
||||||
|
if (!result)
|
||||||
|
cpufreq_frequency_table_get_attr(freq_table,
|
||||||
|
policy->cpu);
|
||||||
|
} else {
|
||||||
|
policy->cpuinfo.min_freq = policy->min;
|
||||||
|
policy->cpuinfo.max_freq = policy->max;
|
||||||
|
}
|
||||||
|
|
||||||
|
policy->min = policy->cpuinfo.min_freq;
|
||||||
|
policy->max = policy->cpuinfo.max_freq;
|
||||||
|
policy->cur = davinci_getspeed(0);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Time measurement across the target() function yields ~1500-1800us
|
||||||
|
* time taken with no drivers on notification list.
|
||||||
|
* Setting the latency to 2000 us to accomodate addition of drivers
|
||||||
|
* to pre/post change notification list.
|
||||||
|
*/
|
||||||
|
policy->cpuinfo.transition_latency = 2000 * 1000;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int davinci_cpu_exit(struct cpufreq_policy *policy)
|
||||||
|
{
|
||||||
|
cpufreq_frequency_table_put_attr(policy->cpu);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct freq_attr *davinci_cpufreq_attr[] = {
|
||||||
|
&cpufreq_freq_attr_scaling_available_freqs,
|
||||||
|
NULL,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct cpufreq_driver davinci_driver = {
|
||||||
|
.flags = CPUFREQ_STICKY,
|
||||||
|
.verify = davinci_verify_speed,
|
||||||
|
.target = davinci_target,
|
||||||
|
.get = davinci_getspeed,
|
||||||
|
.init = davinci_cpu_init,
|
||||||
|
.exit = davinci_cpu_exit,
|
||||||
|
.name = "davinci",
|
||||||
|
.attr = davinci_cpufreq_attr,
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init davinci_cpufreq_probe(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
struct davinci_cpufreq_config *pdata = pdev->dev.platform_data;
|
||||||
|
|
||||||
|
if (!pdata)
|
||||||
|
return -EINVAL;
|
||||||
|
if (!pdata->freq_table)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
cpufreq.dev = &pdev->dev;
|
||||||
|
|
||||||
|
cpufreq.armclk = clk_get(NULL, "arm");
|
||||||
|
if (IS_ERR(cpufreq.armclk)) {
|
||||||
|
dev_err(cpufreq.dev, "Unable to get ARM clock\n");
|
||||||
|
return PTR_ERR(cpufreq.armclk);
|
||||||
|
}
|
||||||
|
|
||||||
|
return cpufreq_register_driver(&davinci_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int __exit davinci_cpufreq_remove(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
clk_put(cpufreq.armclk);
|
||||||
|
|
||||||
|
return cpufreq_unregister_driver(&davinci_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct platform_driver davinci_cpufreq_driver = {
|
||||||
|
.driver = {
|
||||||
|
.name = "cpufreq-davinci",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
},
|
||||||
|
.remove = __exit_p(davinci_cpufreq_remove),
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init davinci_cpufreq_init(void)
|
||||||
|
{
|
||||||
|
return platform_driver_probe(&davinci_cpufreq_driver,
|
||||||
|
davinci_cpufreq_probe);
|
||||||
|
}
|
||||||
|
late_initcall(davinci_cpufreq_init);
|
||||||
|
|
|
@ -0,0 +1,197 @@
|
||||||
|
/*
|
||||||
|
* CPU idle for DaVinci SoCs
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 Texas Instruments Incorporated. http://www.ti.com/
|
||||||
|
*
|
||||||
|
* Derived from Marvell Kirkwood CPU idle code
|
||||||
|
* (arch/arm/mach-kirkwood/cpuidle.c)
|
||||||
|
*
|
||||||
|
* This program 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/cpuidle.h>
|
||||||
|
#include <linux/io.h>
|
||||||
|
#include <asm/proc-fns.h>
|
||||||
|
|
||||||
|
#include <mach/cpuidle.h>
|
||||||
|
|
||||||
|
#define DAVINCI_CPUIDLE_MAX_STATES 2
|
||||||
|
|
||||||
|
struct davinci_ops {
|
||||||
|
void (*enter) (u32 flags);
|
||||||
|
void (*exit) (u32 flags);
|
||||||
|
u32 flags;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* fields in davinci_ops.flags */
|
||||||
|
#define DAVINCI_CPUIDLE_FLAGS_DDR2_PWDN BIT(0)
|
||||||
|
|
||||||
|
static struct cpuidle_driver davinci_idle_driver = {
|
||||||
|
.name = "cpuidle-davinci",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
};
|
||||||
|
|
||||||
|
static DEFINE_PER_CPU(struct cpuidle_device, davinci_cpuidle_device);
|
||||||
|
static void __iomem *ddr2_reg_base;
|
||||||
|
|
||||||
|
#define DDR2_SDRCR_OFFSET 0xc
|
||||||
|
#define DDR2_SRPD_BIT BIT(23)
|
||||||
|
#define DDR2_LPMODEN_BIT BIT(31)
|
||||||
|
|
||||||
|
static void davinci_save_ddr_power(int enter, bool pdown)
|
||||||
|
{
|
||||||
|
u32 val;
|
||||||
|
|
||||||
|
val = __raw_readl(ddr2_reg_base + DDR2_SDRCR_OFFSET);
|
||||||
|
|
||||||
|
if (enter) {
|
||||||
|
if (pdown)
|
||||||
|
val |= DDR2_SRPD_BIT;
|
||||||
|
else
|
||||||
|
val &= ~DDR2_SRPD_BIT;
|
||||||
|
val |= DDR2_LPMODEN_BIT;
|
||||||
|
} else {
|
||||||
|
val &= ~(DDR2_SRPD_BIT | DDR2_LPMODEN_BIT);
|
||||||
|
}
|
||||||
|
|
||||||
|
__raw_writel(val, ddr2_reg_base + DDR2_SDRCR_OFFSET);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void davinci_c2state_enter(u32 flags)
|
||||||
|
{
|
||||||
|
davinci_save_ddr_power(1, !!(flags & DAVINCI_CPUIDLE_FLAGS_DDR2_PWDN));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void davinci_c2state_exit(u32 flags)
|
||||||
|
{
|
||||||
|
davinci_save_ddr_power(0, !!(flags & DAVINCI_CPUIDLE_FLAGS_DDR2_PWDN));
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct davinci_ops davinci_states[DAVINCI_CPUIDLE_MAX_STATES] = {
|
||||||
|
[1] = {
|
||||||
|
.enter = davinci_c2state_enter,
|
||||||
|
.exit = davinci_c2state_exit,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Actual code that puts the SoC in different idle states */
|
||||||
|
static int davinci_enter_idle(struct cpuidle_device *dev,
|
||||||
|
struct cpuidle_state *state)
|
||||||
|
{
|
||||||
|
struct davinci_ops *ops = cpuidle_get_statedata(state);
|
||||||
|
struct timeval before, after;
|
||||||
|
int idle_time;
|
||||||
|
|
||||||
|
local_irq_disable();
|
||||||
|
do_gettimeofday(&before);
|
||||||
|
|
||||||
|
if (ops && ops->enter)
|
||||||
|
ops->enter(ops->flags);
|
||||||
|
/* Wait for interrupt state */
|
||||||
|
cpu_do_idle();
|
||||||
|
if (ops && ops->exit)
|
||||||
|
ops->exit(ops->flags);
|
||||||
|
|
||||||
|
do_gettimeofday(&after);
|
||||||
|
local_irq_enable();
|
||||||
|
idle_time = (after.tv_sec - before.tv_sec) * USEC_PER_SEC +
|
||||||
|
(after.tv_usec - before.tv_usec);
|
||||||
|
return idle_time;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int __init davinci_cpuidle_probe(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
struct cpuidle_device *device;
|
||||||
|
struct davinci_cpuidle_config *pdata = pdev->dev.platform_data;
|
||||||
|
struct resource *ddr2_regs;
|
||||||
|
resource_size_t len;
|
||||||
|
|
||||||
|
device = &per_cpu(davinci_cpuidle_device, smp_processor_id());
|
||||||
|
|
||||||
|
if (!pdata) {
|
||||||
|
dev_err(&pdev->dev, "cannot get platform data\n");
|
||||||
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
ddr2_regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
|
if (!ddr2_regs) {
|
||||||
|
dev_err(&pdev->dev, "cannot get DDR2 controller register base");
|
||||||
|
return -ENODEV;
|
||||||
|
}
|
||||||
|
|
||||||
|
len = resource_size(ddr2_regs);
|
||||||
|
|
||||||
|
ddr2_regs = request_mem_region(ddr2_regs->start, len, ddr2_regs->name);
|
||||||
|
if (!ddr2_regs)
|
||||||
|
return -EBUSY;
|
||||||
|
|
||||||
|
ddr2_reg_base = ioremap(ddr2_regs->start, len);
|
||||||
|
if (!ddr2_reg_base) {
|
||||||
|
ret = -ENOMEM;
|
||||||
|
goto ioremap_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = cpuidle_register_driver(&davinci_idle_driver);
|
||||||
|
if (ret) {
|
||||||
|
dev_err(&pdev->dev, "failed to register driver\n");
|
||||||
|
goto driver_register_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wait for interrupt state */
|
||||||
|
device->states[0].enter = davinci_enter_idle;
|
||||||
|
device->states[0].exit_latency = 1;
|
||||||
|
device->states[0].target_residency = 10000;
|
||||||
|
device->states[0].flags = CPUIDLE_FLAG_TIME_VALID;
|
||||||
|
strcpy(device->states[0].name, "WFI");
|
||||||
|
strcpy(device->states[0].desc, "Wait for interrupt");
|
||||||
|
|
||||||
|
/* Wait for interrupt and DDR self refresh state */
|
||||||
|
device->states[1].enter = davinci_enter_idle;
|
||||||
|
device->states[1].exit_latency = 10;
|
||||||
|
device->states[1].target_residency = 10000;
|
||||||
|
device->states[1].flags = CPUIDLE_FLAG_TIME_VALID;
|
||||||
|
strcpy(device->states[1].name, "DDR SR");
|
||||||
|
strcpy(device->states[1].desc, "WFI and DDR Self Refresh");
|
||||||
|
if (pdata->ddr2_pdown)
|
||||||
|
davinci_states[1].flags |= DAVINCI_CPUIDLE_FLAGS_DDR2_PWDN;
|
||||||
|
cpuidle_set_statedata(&device->states[1], &davinci_states[1]);
|
||||||
|
|
||||||
|
device->state_count = DAVINCI_CPUIDLE_MAX_STATES;
|
||||||
|
|
||||||
|
ret = cpuidle_register_device(device);
|
||||||
|
if (ret) {
|
||||||
|
dev_err(&pdev->dev, "failed to register device\n");
|
||||||
|
goto device_register_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
device_register_fail:
|
||||||
|
cpuidle_unregister_driver(&davinci_idle_driver);
|
||||||
|
driver_register_fail:
|
||||||
|
iounmap(ddr2_reg_base);
|
||||||
|
ioremap_fail:
|
||||||
|
release_mem_region(ddr2_regs->start, len);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct platform_driver davinci_cpuidle_driver = {
|
||||||
|
.driver = {
|
||||||
|
.name = "cpuidle-davinci",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init davinci_cpuidle_init(void)
|
||||||
|
{
|
||||||
|
return platform_driver_probe(&davinci_cpuidle_driver,
|
||||||
|
davinci_cpuidle_probe);
|
||||||
|
}
|
||||||
|
device_initcall(davinci_cpuidle_init);
|
||||||
|
|
|
@ -8,22 +8,17 @@
|
||||||
* is licensed "as is" without any warranty of any kind, whether express
|
* is licensed "as is" without any warranty of any kind, whether express
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/platform_device.h>
|
|
||||||
|
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/psc.h>
|
#include <mach/psc.h>
|
||||||
#include <mach/mux.h>
|
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/time.h>
|
#include <mach/time.h>
|
||||||
#include <mach/da8xx.h>
|
#include <mach/da8xx.h>
|
||||||
#include <mach/asp.h>
|
|
||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
|
@ -193,14 +188,14 @@ static struct clk uart1_clk = {
|
||||||
.name = "uart1",
|
.name = "uart1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_UART1,
|
.lpsc = DA8XX_LPSC1_UART1,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk uart2_clk = {
|
static struct clk uart2_clk = {
|
||||||
.name = "uart2",
|
.name = "uart2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_UART2,
|
.lpsc = DA8XX_LPSC1_UART2,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk spi0_clk = {
|
static struct clk spi0_clk = {
|
||||||
|
@ -213,98 +208,98 @@ static struct clk spi1_clk = {
|
||||||
.name = "spi1",
|
.name = "spi1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_SPI1,
|
.lpsc = DA8XX_LPSC1_SPI1,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk ecap0_clk = {
|
static struct clk ecap0_clk = {
|
||||||
.name = "ecap0",
|
.name = "ecap0",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_ECAP,
|
.lpsc = DA8XX_LPSC1_ECAP,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk ecap1_clk = {
|
static struct clk ecap1_clk = {
|
||||||
.name = "ecap1",
|
.name = "ecap1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_ECAP,
|
.lpsc = DA8XX_LPSC1_ECAP,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk ecap2_clk = {
|
static struct clk ecap2_clk = {
|
||||||
.name = "ecap2",
|
.name = "ecap2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_ECAP,
|
.lpsc = DA8XX_LPSC1_ECAP,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk pwm0_clk = {
|
static struct clk pwm0_clk = {
|
||||||
.name = "pwm0",
|
.name = "pwm0",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_PWM,
|
.lpsc = DA8XX_LPSC1_PWM,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk pwm1_clk = {
|
static struct clk pwm1_clk = {
|
||||||
.name = "pwm1",
|
.name = "pwm1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_PWM,
|
.lpsc = DA8XX_LPSC1_PWM,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk pwm2_clk = {
|
static struct clk pwm2_clk = {
|
||||||
.name = "pwm2",
|
.name = "pwm2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_PWM,
|
.lpsc = DA8XX_LPSC1_PWM,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk eqep0_clk = {
|
static struct clk eqep0_clk = {
|
||||||
.name = "eqep0",
|
.name = "eqep0",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA830_LPSC1_EQEP,
|
.lpsc = DA830_LPSC1_EQEP,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk eqep1_clk = {
|
static struct clk eqep1_clk = {
|
||||||
.name = "eqep1",
|
.name = "eqep1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA830_LPSC1_EQEP,
|
.lpsc = DA830_LPSC1_EQEP,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk lcdc_clk = {
|
static struct clk lcdc_clk = {
|
||||||
.name = "lcdc",
|
.name = "lcdc",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_LCDC,
|
.lpsc = DA8XX_LPSC1_LCDC,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk mcasp0_clk = {
|
static struct clk mcasp0_clk = {
|
||||||
.name = "mcasp0",
|
.name = "mcasp0",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_McASP0,
|
.lpsc = DA8XX_LPSC1_McASP0,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk mcasp1_clk = {
|
static struct clk mcasp1_clk = {
|
||||||
.name = "mcasp1",
|
.name = "mcasp1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA830_LPSC1_McASP1,
|
.lpsc = DA830_LPSC1_McASP1,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk mcasp2_clk = {
|
static struct clk mcasp2_clk = {
|
||||||
.name = "mcasp2",
|
.name = "mcasp2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA830_LPSC1_McASP2,
|
.lpsc = DA830_LPSC1_McASP2,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk usb20_clk = {
|
static struct clk usb20_clk = {
|
||||||
.name = "usb20",
|
.name = "usb20",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_USB20,
|
.lpsc = DA8XX_LPSC1_USB20,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk aemif_clk = {
|
static struct clk aemif_clk = {
|
||||||
|
@ -332,36 +327,36 @@ static struct clk emac_clk = {
|
||||||
.name = "emac",
|
.name = "emac",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_CPGMAC,
|
.lpsc = DA8XX_LPSC1_CPGMAC,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk gpio_clk = {
|
static struct clk gpio_clk = {
|
||||||
.name = "gpio",
|
.name = "gpio",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_GPIO,
|
.lpsc = DA8XX_LPSC1_GPIO,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk i2c1_clk = {
|
static struct clk i2c1_clk = {
|
||||||
.name = "i2c1",
|
.name = "i2c1",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_I2C,
|
.lpsc = DA8XX_LPSC1_I2C,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk usb11_clk = {
|
static struct clk usb11_clk = {
|
||||||
.name = "usb11",
|
.name = "usb11",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_USB11,
|
.lpsc = DA8XX_LPSC1_USB11,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk emif3_clk = {
|
static struct clk emif3_clk = {
|
||||||
.name = "emif3",
|
.name = "emif3",
|
||||||
.parent = &pll0_sysclk5,
|
.parent = &pll0_sysclk5,
|
||||||
.lpsc = DA8XX_LPSC1_EMIF3C,
|
.lpsc = DA8XX_LPSC1_EMIF3C,
|
||||||
|
.gpsc = 1,
|
||||||
.flags = ALWAYS_ENABLED,
|
.flags = ALWAYS_ENABLED,
|
||||||
.psc_ctlr = 1,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk arm_clk = {
|
static struct clk arm_clk = {
|
||||||
|
@ -411,7 +406,7 @@ static struct davinci_clk da830_clks[] = {
|
||||||
CLK(NULL, "pwm2", &pwm2_clk),
|
CLK(NULL, "pwm2", &pwm2_clk),
|
||||||
CLK("eqep.0", NULL, &eqep0_clk),
|
CLK("eqep.0", NULL, &eqep0_clk),
|
||||||
CLK("eqep.1", NULL, &eqep1_clk),
|
CLK("eqep.1", NULL, &eqep1_clk),
|
||||||
CLK("da830_lcdc", NULL, &lcdc_clk),
|
CLK("da8xx_lcdc.0", NULL, &lcdc_clk),
|
||||||
CLK("davinci-mcasp.0", NULL, &mcasp0_clk),
|
CLK("davinci-mcasp.0", NULL, &mcasp0_clk),
|
||||||
CLK("davinci-mcasp.1", NULL, &mcasp1_clk),
|
CLK("davinci-mcasp.1", NULL, &mcasp1_clk),
|
||||||
CLK("davinci-mcasp.2", NULL, &mcasp2_clk),
|
CLK("davinci-mcasp.2", NULL, &mcasp2_clk),
|
||||||
|
@ -1143,7 +1138,21 @@ static struct davinci_id da830_ids[] = {
|
||||||
.part_no = 0xb7df,
|
.part_no = 0xb7df,
|
||||||
.manufacturer = 0x017, /* 0x02f >> 1 */
|
.manufacturer = 0x017, /* 0x02f >> 1 */
|
||||||
.cpu_id = DAVINCI_CPU_ID_DA830,
|
.cpu_id = DAVINCI_CPU_ID_DA830,
|
||||||
.name = "da830/omap l137",
|
.name = "da830/omap-l137 rev1.0",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.variant = 0x8,
|
||||||
|
.part_no = 0xb7df,
|
||||||
|
.manufacturer = 0x017,
|
||||||
|
.cpu_id = DAVINCI_CPU_ID_DA830,
|
||||||
|
.name = "da830/omap-l137 rev1.1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.variant = 0x9,
|
||||||
|
.part_no = 0xb7df,
|
||||||
|
.manufacturer = 0x017,
|
||||||
|
.cpu_id = DAVINCI_CPU_ID_DA830,
|
||||||
|
.name = "da830/omap-l137 rev2.0",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1178,13 +1187,11 @@ static struct davinci_timer_info da830_timer_info = {
|
||||||
static struct davinci_soc_info davinci_soc_info_da830 = {
|
static struct davinci_soc_info davinci_soc_info_da830 = {
|
||||||
.io_desc = da830_io_desc,
|
.io_desc = da830_io_desc,
|
||||||
.io_desc_num = ARRAY_SIZE(da830_io_desc),
|
.io_desc_num = ARRAY_SIZE(da830_io_desc),
|
||||||
.jtag_id_base = IO_ADDRESS(DA8XX_JTAG_ID_REG),
|
|
||||||
.ids = da830_ids,
|
.ids = da830_ids,
|
||||||
.ids_num = ARRAY_SIZE(da830_ids),
|
.ids_num = ARRAY_SIZE(da830_ids),
|
||||||
.cpu_clks = da830_clks,
|
.cpu_clks = da830_clks,
|
||||||
.psc_bases = da830_psc_bases,
|
.psc_bases = da830_psc_bases,
|
||||||
.psc_bases_num = ARRAY_SIZE(da830_psc_bases),
|
.psc_bases_num = ARRAY_SIZE(da830_psc_bases),
|
||||||
.pinmux_base = IO_ADDRESS(DA8XX_BOOT_CFG_BASE + 0x120),
|
|
||||||
.pinmux_pins = da830_pins,
|
.pinmux_pins = da830_pins,
|
||||||
.pinmux_pins_num = ARRAY_SIZE(da830_pins),
|
.pinmux_pins_num = ARRAY_SIZE(da830_pins),
|
||||||
.intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
|
.intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
|
||||||
|
@ -1201,5 +1208,13 @@ static struct davinci_soc_info davinci_soc_info_da830 = {
|
||||||
|
|
||||||
void __init da830_init(void)
|
void __init da830_init(void)
|
||||||
{
|
{
|
||||||
|
da8xx_syscfg_base = ioremap(DA8XX_SYSCFG_BASE, SZ_4K);
|
||||||
|
if (WARN(!da8xx_syscfg_base, "Unable to map syscfg module"))
|
||||||
|
return;
|
||||||
|
|
||||||
|
davinci_soc_info_da830.jtag_id_base =
|
||||||
|
DA8XX_SYSCFG_VIRT(DA8XX_JTAG_ID_REG);
|
||||||
|
davinci_soc_info_da830.pinmux_base = DA8XX_SYSCFG_VIRT(0x120);
|
||||||
|
|
||||||
davinci_common_init(&davinci_soc_info_da830);
|
davinci_common_init(&davinci_soc_info_da830);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,31 +11,41 @@
|
||||||
* is licensed "as is" without any warranty of any kind, whether express
|
* is licensed "as is" without any warranty of any kind, whether express
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/cpufreq.h>
|
||||||
|
#include <linux/regulator/consumer.h>
|
||||||
|
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/psc.h>
|
#include <mach/psc.h>
|
||||||
#include <mach/mux.h>
|
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/time.h>
|
#include <mach/time.h>
|
||||||
#include <mach/da8xx.h>
|
#include <mach/da8xx.h>
|
||||||
|
#include <mach/cpufreq.h>
|
||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
|
|
||||||
|
/* SoC specific clock flags */
|
||||||
|
#define DA850_CLK_ASYNC3 BIT(16)
|
||||||
|
|
||||||
#define DA850_PLL1_BASE 0x01e1a000
|
#define DA850_PLL1_BASE 0x01e1a000
|
||||||
#define DA850_TIMER64P2_BASE 0x01f0c000
|
#define DA850_TIMER64P2_BASE 0x01f0c000
|
||||||
#define DA850_TIMER64P3_BASE 0x01f0d000
|
#define DA850_TIMER64P3_BASE 0x01f0d000
|
||||||
|
|
||||||
#define DA850_REF_FREQ 24000000
|
#define DA850_REF_FREQ 24000000
|
||||||
|
|
||||||
|
#define CFGCHIP3_ASYNC3_CLKSRC BIT(4)
|
||||||
|
#define CFGCHIP0_PLL_MASTER_LOCK BIT(4)
|
||||||
|
|
||||||
|
static int da850_set_armrate(struct clk *clk, unsigned long rate);
|
||||||
|
static int da850_round_armrate(struct clk *clk, unsigned long rate);
|
||||||
|
static int da850_set_pll0rate(struct clk *clk, unsigned long armrate);
|
||||||
|
|
||||||
static struct pll_data pll0_data = {
|
static struct pll_data pll0_data = {
|
||||||
.num = 1,
|
.num = 1,
|
||||||
.phys_base = DA8XX_PLL0_BASE,
|
.phys_base = DA8XX_PLL0_BASE,
|
||||||
|
@ -52,6 +62,7 @@ static struct clk pll0_clk = {
|
||||||
.parent = &ref_clk,
|
.parent = &ref_clk,
|
||||||
.pll_data = &pll0_data,
|
.pll_data = &pll0_data,
|
||||||
.flags = CLK_PLL,
|
.flags = CLK_PLL,
|
||||||
|
.set_rate = da850_set_pll0rate,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk pll0_aux_clk = {
|
static struct clk pll0_aux_clk = {
|
||||||
|
@ -210,16 +221,16 @@ static struct clk tpcc1_clk = {
|
||||||
.name = "tpcc1",
|
.name = "tpcc1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA850_LPSC1_TPCC1,
|
.lpsc = DA850_LPSC1_TPCC1,
|
||||||
|
.gpsc = 1,
|
||||||
.flags = CLK_PSC | ALWAYS_ENABLED,
|
.flags = CLK_PSC | ALWAYS_ENABLED,
|
||||||
.psc_ctlr = 1,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk tptc2_clk = {
|
static struct clk tptc2_clk = {
|
||||||
.name = "tptc2",
|
.name = "tptc2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA850_LPSC1_TPTC2,
|
.lpsc = DA850_LPSC1_TPTC2,
|
||||||
|
.gpsc = 1,
|
||||||
.flags = ALWAYS_ENABLED,
|
.flags = ALWAYS_ENABLED,
|
||||||
.psc_ctlr = 1,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk uart0_clk = {
|
static struct clk uart0_clk = {
|
||||||
|
@ -232,14 +243,16 @@ static struct clk uart1_clk = {
|
||||||
.name = "uart1",
|
.name = "uart1",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_UART1,
|
.lpsc = DA8XX_LPSC1_UART1,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
|
.flags = DA850_CLK_ASYNC3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk uart2_clk = {
|
static struct clk uart2_clk = {
|
||||||
.name = "uart2",
|
.name = "uart2",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_UART2,
|
.lpsc = DA8XX_LPSC1_UART2,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
|
.flags = DA850_CLK_ASYNC3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk aintc_clk = {
|
static struct clk aintc_clk = {
|
||||||
|
@ -253,22 +266,22 @@ static struct clk gpio_clk = {
|
||||||
.name = "gpio",
|
.name = "gpio",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_GPIO,
|
.lpsc = DA8XX_LPSC1_GPIO,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk i2c1_clk = {
|
static struct clk i2c1_clk = {
|
||||||
.name = "i2c1",
|
.name = "i2c1",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_I2C,
|
.lpsc = DA8XX_LPSC1_I2C,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk emif3_clk = {
|
static struct clk emif3_clk = {
|
||||||
.name = "emif3",
|
.name = "emif3",
|
||||||
.parent = &pll0_sysclk5,
|
.parent = &pll0_sysclk5,
|
||||||
.lpsc = DA8XX_LPSC1_EMIF3C,
|
.lpsc = DA8XX_LPSC1_EMIF3C,
|
||||||
|
.gpsc = 1,
|
||||||
.flags = ALWAYS_ENABLED,
|
.flags = ALWAYS_ENABLED,
|
||||||
.psc_ctlr = 1,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk arm_clk = {
|
static struct clk arm_clk = {
|
||||||
|
@ -276,6 +289,8 @@ static struct clk arm_clk = {
|
||||||
.parent = &pll0_sysclk6,
|
.parent = &pll0_sysclk6,
|
||||||
.lpsc = DA8XX_LPSC0_ARM,
|
.lpsc = DA8XX_LPSC0_ARM,
|
||||||
.flags = ALWAYS_ENABLED,
|
.flags = ALWAYS_ENABLED,
|
||||||
|
.set_rate = da850_set_armrate,
|
||||||
|
.round_rate = da850_round_armrate,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk rmii_clk = {
|
static struct clk rmii_clk = {
|
||||||
|
@ -287,21 +302,22 @@ static struct clk emac_clk = {
|
||||||
.name = "emac",
|
.name = "emac",
|
||||||
.parent = &pll0_sysclk4,
|
.parent = &pll0_sysclk4,
|
||||||
.lpsc = DA8XX_LPSC1_CPGMAC,
|
.lpsc = DA8XX_LPSC1_CPGMAC,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk mcasp_clk = {
|
static struct clk mcasp_clk = {
|
||||||
.name = "mcasp",
|
.name = "mcasp",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_McASP0,
|
.lpsc = DA8XX_LPSC1_McASP0,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
|
.flags = DA850_CLK_ASYNC3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk lcdc_clk = {
|
static struct clk lcdc_clk = {
|
||||||
.name = "lcdc",
|
.name = "lcdc",
|
||||||
.parent = &pll0_sysclk2,
|
.parent = &pll0_sysclk2,
|
||||||
.lpsc = DA8XX_LPSC1_LCDC,
|
.lpsc = DA8XX_LPSC1_LCDC,
|
||||||
.psc_ctlr = 1,
|
.gpsc = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk mmcsd_clk = {
|
static struct clk mmcsd_clk = {
|
||||||
|
@ -404,6 +420,14 @@ static const struct mux_config da850_pins[] = {
|
||||||
MUX_CFG(DA850, MII_RXD_0, 3, 28, 15, 8, false)
|
MUX_CFG(DA850, MII_RXD_0, 3, 28, 15, 8, false)
|
||||||
MUX_CFG(DA850, MDIO_CLK, 4, 0, 15, 8, false)
|
MUX_CFG(DA850, MDIO_CLK, 4, 0, 15, 8, false)
|
||||||
MUX_CFG(DA850, MDIO_D, 4, 4, 15, 8, false)
|
MUX_CFG(DA850, MDIO_D, 4, 4, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_TXD_0, 14, 12, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_TXD_1, 14, 8, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_TXEN, 14, 16, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_CRS_DV, 15, 4, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_RXD_0, 14, 24, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_RXD_1, 14, 20, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_RXER, 14, 28, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, RMII_MHZ_50_CLK, 15, 0, 15, 0, false)
|
||||||
/* McASP function */
|
/* McASP function */
|
||||||
MUX_CFG(DA850, ACLKR, 0, 0, 15, 1, false)
|
MUX_CFG(DA850, ACLKR, 0, 0, 15, 1, false)
|
||||||
MUX_CFG(DA850, ACLKX, 0, 4, 15, 1, false)
|
MUX_CFG(DA850, ACLKX, 0, 4, 15, 1, false)
|
||||||
|
@ -506,8 +530,9 @@ static const struct mux_config da850_pins[] = {
|
||||||
MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false)
|
MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false)
|
||||||
MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false)
|
MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false)
|
||||||
/* GPIO function */
|
/* GPIO function */
|
||||||
|
MUX_CFG(DA850, GPIO2_6, 6, 4, 15, 8, false)
|
||||||
|
MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false)
|
||||||
MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false)
|
MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false)
|
||||||
MUX_CFG(DA850, GPIO8_10, 18, 28, 15, 8, false)
|
|
||||||
MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false)
|
MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false)
|
||||||
MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false)
|
MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false)
|
||||||
#endif
|
#endif
|
||||||
|
@ -547,6 +572,14 @@ const short da850_cpgmac_pins[] __initdata = {
|
||||||
-1
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const short da850_rmii_pins[] __initdata = {
|
||||||
|
DA850_RMII_TXD_0, DA850_RMII_TXD_1, DA850_RMII_TXEN,
|
||||||
|
DA850_RMII_CRS_DV, DA850_RMII_RXD_0, DA850_RMII_RXD_1,
|
||||||
|
DA850_RMII_RXER, DA850_RMII_MHZ_50_CLK, DA850_MDIO_CLK,
|
||||||
|
DA850_MDIO_D,
|
||||||
|
-1
|
||||||
|
};
|
||||||
|
|
||||||
const short da850_mcasp_pins[] __initdata = {
|
const short da850_mcasp_pins[] __initdata = {
|
||||||
DA850_AHCLKX, DA850_ACLKX, DA850_AFSX,
|
DA850_AHCLKX, DA850_ACLKX, DA850_AFSX,
|
||||||
DA850_AHCLKR, DA850_ACLKR, DA850_AFSR, DA850_AMUTE,
|
DA850_AHCLKR, DA850_ACLKR, DA850_AFSR, DA850_AMUTE,
|
||||||
|
@ -555,12 +588,11 @@ const short da850_mcasp_pins[] __initdata = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const short da850_lcdcntl_pins[] __initdata = {
|
const short da850_lcdcntl_pins[] __initdata = {
|
||||||
DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3, DA850_LCD_D_4,
|
DA850_LCD_D_0, DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3,
|
||||||
DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7, DA850_LCD_D_8,
|
DA850_LCD_D_4, DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7,
|
||||||
DA850_LCD_D_9, DA850_LCD_D_10, DA850_LCD_D_11, DA850_LCD_D_12,
|
DA850_LCD_D_8, DA850_LCD_D_9, DA850_LCD_D_10, DA850_LCD_D_11,
|
||||||
DA850_LCD_D_13, DA850_LCD_D_14, DA850_LCD_D_15, DA850_LCD_PCLK,
|
DA850_LCD_D_12, DA850_LCD_D_13, DA850_LCD_D_14, DA850_LCD_D_15,
|
||||||
DA850_LCD_HSYNC, DA850_LCD_VSYNC, DA850_NLCD_AC_ENB_CS, DA850_GPIO2_15,
|
DA850_LCD_PCLK, DA850_LCD_HSYNC, DA850_LCD_VSYNC, DA850_NLCD_AC_ENB_CS,
|
||||||
DA850_GPIO8_10,
|
|
||||||
-1
|
-1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -790,16 +822,221 @@ static struct davinci_timer_info da850_timer_info = {
|
||||||
.clocksource_id = T0_TOP,
|
.clocksource_id = T0_TOP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void da850_set_async3_src(int pllnum)
|
||||||
|
{
|
||||||
|
struct clk *clk, *newparent = pllnum ? &pll1_sysclk2 : &pll0_sysclk2;
|
||||||
|
struct davinci_clk *c;
|
||||||
|
unsigned int v;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
for (c = da850_clks; c->lk.clk; c++) {
|
||||||
|
clk = c->lk.clk;
|
||||||
|
if (clk->flags & DA850_CLK_ASYNC3) {
|
||||||
|
ret = clk_set_parent(clk, newparent);
|
||||||
|
WARN(ret, "DA850: unable to re-parent clock %s",
|
||||||
|
clk->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
v = __raw_readl(DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP3_REG));
|
||||||
|
if (pllnum)
|
||||||
|
v |= CFGCHIP3_ASYNC3_CLKSRC;
|
||||||
|
else
|
||||||
|
v &= ~CFGCHIP3_ASYNC3_CLKSRC;
|
||||||
|
__raw_writel(v, DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP3_REG));
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_CPU_FREQ
|
||||||
|
/*
|
||||||
|
* Notes:
|
||||||
|
* According to the TRM, minimum PLLM results in maximum power savings.
|
||||||
|
* The OPP definitions below should keep the PLLM as low as possible.
|
||||||
|
*
|
||||||
|
* The output of the PLLM must be between 400 to 600 MHz.
|
||||||
|
* This rules out prediv of anything but divide-by-one for 24Mhz OSC input.
|
||||||
|
*/
|
||||||
|
struct da850_opp {
|
||||||
|
unsigned int freq; /* in KHz */
|
||||||
|
unsigned int prediv;
|
||||||
|
unsigned int mult;
|
||||||
|
unsigned int postdiv;
|
||||||
|
unsigned int cvdd_min; /* in uV */
|
||||||
|
unsigned int cvdd_max; /* in uV */
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct da850_opp da850_opp_300 = {
|
||||||
|
.freq = 300000,
|
||||||
|
.prediv = 1,
|
||||||
|
.mult = 25,
|
||||||
|
.postdiv = 2,
|
||||||
|
.cvdd_min = 1140000,
|
||||||
|
.cvdd_max = 1320000,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct da850_opp da850_opp_200 = {
|
||||||
|
.freq = 200000,
|
||||||
|
.prediv = 1,
|
||||||
|
.mult = 25,
|
||||||
|
.postdiv = 3,
|
||||||
|
.cvdd_min = 1050000,
|
||||||
|
.cvdd_max = 1160000,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct da850_opp da850_opp_96 = {
|
||||||
|
.freq = 96000,
|
||||||
|
.prediv = 1,
|
||||||
|
.mult = 20,
|
||||||
|
.postdiv = 5,
|
||||||
|
.cvdd_min = 950000,
|
||||||
|
.cvdd_max = 1050000,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define OPP(freq) \
|
||||||
|
{ \
|
||||||
|
.index = (unsigned int) &da850_opp_##freq, \
|
||||||
|
.frequency = freq * 1000, \
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct cpufreq_frequency_table da850_freq_table[] = {
|
||||||
|
OPP(300),
|
||||||
|
OPP(200),
|
||||||
|
OPP(96),
|
||||||
|
{
|
||||||
|
.index = 0,
|
||||||
|
.frequency = CPUFREQ_TABLE_END,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_REGULATOR
|
||||||
|
static struct regulator *cvdd;
|
||||||
|
|
||||||
|
static int da850_set_voltage(unsigned int index)
|
||||||
|
{
|
||||||
|
struct da850_opp *opp;
|
||||||
|
|
||||||
|
if (!cvdd)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
|
opp = (struct da850_opp *) da850_freq_table[index].index;
|
||||||
|
|
||||||
|
return regulator_set_voltage(cvdd, opp->cvdd_min, opp->cvdd_max);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_regulator_init(void)
|
||||||
|
{
|
||||||
|
cvdd = regulator_get(NULL, "cvdd");
|
||||||
|
if (WARN(IS_ERR(cvdd), "Unable to obtain voltage regulator for CVDD;"
|
||||||
|
" voltage scaling unsupported\n")) {
|
||||||
|
return PTR_ERR(cvdd);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static struct davinci_cpufreq_config cpufreq_info = {
|
||||||
|
.freq_table = &da850_freq_table[0],
|
||||||
|
#ifdef CONFIG_REGULATOR
|
||||||
|
.init = da850_regulator_init,
|
||||||
|
.set_voltage = da850_set_voltage,
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device da850_cpufreq_device = {
|
||||||
|
.name = "cpufreq-davinci",
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &cpufreq_info,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
int __init da850_register_cpufreq(void)
|
||||||
|
{
|
||||||
|
return platform_device_register(&da850_cpufreq_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_round_armrate(struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
int i, ret = 0, diff;
|
||||||
|
unsigned int best = (unsigned int) -1;
|
||||||
|
|
||||||
|
rate /= 1000; /* convert to kHz */
|
||||||
|
|
||||||
|
for (i = 0; da850_freq_table[i].frequency != CPUFREQ_TABLE_END; i++) {
|
||||||
|
diff = da850_freq_table[i].frequency - rate;
|
||||||
|
if (diff < 0)
|
||||||
|
diff = -diff;
|
||||||
|
|
||||||
|
if (diff < best) {
|
||||||
|
best = diff;
|
||||||
|
ret = da850_freq_table[i].frequency;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret * 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_set_armrate(struct clk *clk, unsigned long index)
|
||||||
|
{
|
||||||
|
struct clk *pllclk = &pll0_clk;
|
||||||
|
|
||||||
|
return clk_set_rate(pllclk, index);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_set_pll0rate(struct clk *clk, unsigned long index)
|
||||||
|
{
|
||||||
|
unsigned int prediv, mult, postdiv;
|
||||||
|
struct da850_opp *opp;
|
||||||
|
struct pll_data *pll = clk->pll_data;
|
||||||
|
unsigned int v;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
opp = (struct da850_opp *) da850_freq_table[index].index;
|
||||||
|
prediv = opp->prediv;
|
||||||
|
mult = opp->mult;
|
||||||
|
postdiv = opp->postdiv;
|
||||||
|
|
||||||
|
/* Unlock writing to PLL registers */
|
||||||
|
v = __raw_readl(DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP0_REG));
|
||||||
|
v &= ~CFGCHIP0_PLL_MASTER_LOCK;
|
||||||
|
__raw_writel(v, DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP0_REG));
|
||||||
|
|
||||||
|
ret = davinci_set_pllrate(pll, prediv, mult, postdiv);
|
||||||
|
if (WARN_ON(ret))
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
int __init da850_register_cpufreq(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_set_armrate(struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_set_pll0rate(struct clk *clk, unsigned long armrate)
|
||||||
|
{
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int da850_round_armrate(struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
return clk->rate;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static struct davinci_soc_info davinci_soc_info_da850 = {
|
static struct davinci_soc_info davinci_soc_info_da850 = {
|
||||||
.io_desc = da850_io_desc,
|
.io_desc = da850_io_desc,
|
||||||
.io_desc_num = ARRAY_SIZE(da850_io_desc),
|
.io_desc_num = ARRAY_SIZE(da850_io_desc),
|
||||||
.jtag_id_base = IO_ADDRESS(DA8XX_JTAG_ID_REG),
|
|
||||||
.ids = da850_ids,
|
.ids = da850_ids,
|
||||||
.ids_num = ARRAY_SIZE(da850_ids),
|
.ids_num = ARRAY_SIZE(da850_ids),
|
||||||
.cpu_clks = da850_clks,
|
.cpu_clks = da850_clks,
|
||||||
.psc_bases = da850_psc_bases,
|
.psc_bases = da850_psc_bases,
|
||||||
.psc_bases_num = ARRAY_SIZE(da850_psc_bases),
|
.psc_bases_num = ARRAY_SIZE(da850_psc_bases),
|
||||||
.pinmux_base = IO_ADDRESS(DA8XX_BOOT_CFG_BASE + 0x120),
|
|
||||||
.pinmux_pins = da850_pins,
|
.pinmux_pins = da850_pins,
|
||||||
.pinmux_pins_num = ARRAY_SIZE(da850_pins),
|
.pinmux_pins_num = ARRAY_SIZE(da850_pins),
|
||||||
.intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
|
.intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
|
||||||
|
@ -816,5 +1053,22 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
|
||||||
|
|
||||||
void __init da850_init(void)
|
void __init da850_init(void)
|
||||||
{
|
{
|
||||||
|
da8xx_syscfg_base = ioremap(DA8XX_SYSCFG_BASE, SZ_4K);
|
||||||
|
if (WARN(!da8xx_syscfg_base, "Unable to map syscfg module"))
|
||||||
|
return;
|
||||||
|
|
||||||
|
davinci_soc_info_da850.jtag_id_base =
|
||||||
|
DA8XX_SYSCFG_VIRT(DA8XX_JTAG_ID_REG);
|
||||||
|
davinci_soc_info_da850.pinmux_base = DA8XX_SYSCFG_VIRT(0x120);
|
||||||
|
|
||||||
davinci_common_init(&davinci_soc_info_da850);
|
davinci_common_init(&davinci_soc_info_da850);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Move the clock source of Async3 domain to PLL1 SYSCLK2.
|
||||||
|
* This helps keeping the peripherals on this domain insulated
|
||||||
|
* from CPU frequency changes caused by DVFS. The firmware sets
|
||||||
|
* both PLL0 and PLL1 to the same frequency so, there should not
|
||||||
|
* be any noticible change even in non-DVFS use cases.
|
||||||
|
*/
|
||||||
|
da850_set_async3_src(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
|
@ -21,7 +19,7 @@
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/time.h>
|
#include <mach/time.h>
|
||||||
#include <mach/da8xx.h>
|
#include <mach/da8xx.h>
|
||||||
#include <video/da8xx-fb.h>
|
#include <mach/cpuidle.h>
|
||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
|
|
||||||
|
@ -30,6 +28,7 @@
|
||||||
#define DA8XX_TPTC1_BASE 0x01c08400
|
#define DA8XX_TPTC1_BASE 0x01c08400
|
||||||
#define DA8XX_WDOG_BASE 0x01c21000 /* DA8XX_TIMER64P1_BASE */
|
#define DA8XX_WDOG_BASE 0x01c21000 /* DA8XX_TIMER64P1_BASE */
|
||||||
#define DA8XX_I2C0_BASE 0x01c22000
|
#define DA8XX_I2C0_BASE 0x01c22000
|
||||||
|
#define DA8XX_RTC_BASE 0x01C23000
|
||||||
#define DA8XX_EMAC_CPPI_PORT_BASE 0x01e20000
|
#define DA8XX_EMAC_CPPI_PORT_BASE 0x01e20000
|
||||||
#define DA8XX_EMAC_CPGMACSS_BASE 0x01e22000
|
#define DA8XX_EMAC_CPGMACSS_BASE 0x01e22000
|
||||||
#define DA8XX_EMAC_CPGMAC_BASE 0x01e23000
|
#define DA8XX_EMAC_CPGMAC_BASE 0x01e23000
|
||||||
|
@ -43,6 +42,8 @@
|
||||||
#define DA8XX_MDIO_REG_OFFSET 0x4000
|
#define DA8XX_MDIO_REG_OFFSET 0x4000
|
||||||
#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K
|
#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K
|
||||||
|
|
||||||
|
void __iomem *da8xx_syscfg_base;
|
||||||
|
|
||||||
static struct plat_serial8250_port da8xx_serial_pdata[] = {
|
static struct plat_serial8250_port da8xx_serial_pdata[] = {
|
||||||
{
|
{
|
||||||
.mapbase = DA8XX_UART0_BASE,
|
.mapbase = DA8XX_UART0_BASE,
|
||||||
|
@ -282,6 +283,11 @@ static struct platform_device da8xx_emac_device = {
|
||||||
.resource = da8xx_emac_resources,
|
.resource = da8xx_emac_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int __init da8xx_register_emac(void)
|
||||||
|
{
|
||||||
|
return platform_device_register(&da8xx_emac_device);
|
||||||
|
}
|
||||||
|
|
||||||
static struct resource da830_mcasp1_resources[] = {
|
static struct resource da830_mcasp1_resources[] = {
|
||||||
{
|
{
|
||||||
.name = "mcasp1",
|
.name = "mcasp1",
|
||||||
|
@ -338,12 +344,7 @@ static struct platform_device da850_mcasp_device = {
|
||||||
.resource = da850_mcasp_resources,
|
.resource = da850_mcasp_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init da8xx_register_emac(void)
|
void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
|
||||||
{
|
|
||||||
return platform_device_register(&da8xx_emac_device);
|
|
||||||
}
|
|
||||||
|
|
||||||
void __init da8xx_init_mcasp(int id, struct snd_platform_data *pdata)
|
|
||||||
{
|
{
|
||||||
/* DA830/OMAP-L137 has 3 instances of McASP */
|
/* DA830/OMAP-L137 has 3 instances of McASP */
|
||||||
if (cpu_is_davinci_da830() && id == 1) {
|
if (cpu_is_davinci_da830() && id == 1) {
|
||||||
|
@ -379,10 +380,16 @@ static struct lcd_ctrl_config lcd_cfg = {
|
||||||
.raster_order = 0,
|
.raster_order = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct da8xx_lcdc_platform_data da850_evm_lcdc_pdata = {
|
struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata = {
|
||||||
.manu_name = "sharp",
|
.manu_name = "sharp",
|
||||||
.controller_data = &lcd_cfg,
|
.controller_data = &lcd_cfg,
|
||||||
.type = "Sharp_LK043T1DG01",
|
.type = "Sharp_LCD035Q3DG01",
|
||||||
|
};
|
||||||
|
|
||||||
|
struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata = {
|
||||||
|
.manu_name = "sharp",
|
||||||
|
.controller_data = &lcd_cfg,
|
||||||
|
.type = "Sharp_LK043T1DG01",
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource da8xx_lcdc_resources[] = {
|
static struct resource da8xx_lcdc_resources[] = {
|
||||||
|
@ -398,19 +405,17 @@ static struct resource da8xx_lcdc_resources[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device da850_lcdc_device = {
|
static struct platform_device da8xx_lcdc_device = {
|
||||||
.name = "da8xx_lcdc",
|
.name = "da8xx_lcdc",
|
||||||
.id = 0,
|
.id = 0,
|
||||||
.num_resources = ARRAY_SIZE(da8xx_lcdc_resources),
|
.num_resources = ARRAY_SIZE(da8xx_lcdc_resources),
|
||||||
.resource = da8xx_lcdc_resources,
|
.resource = da8xx_lcdc_resources,
|
||||||
.dev = {
|
|
||||||
.platform_data = &da850_evm_lcdc_pdata,
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init da8xx_register_lcdc(void)
|
int __init da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata)
|
||||||
{
|
{
|
||||||
return platform_device_register(&da850_lcdc_device);
|
da8xx_lcdc_device.dev.platform_data = pdata;
|
||||||
|
return platform_device_register(&da8xx_lcdc_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct resource da8xx_mmcsd0_resources[] = {
|
static struct resource da8xx_mmcsd0_resources[] = {
|
||||||
|
@ -448,3 +453,66 @@ int __init da8xx_register_mmcsd0(struct davinci_mmc_config *config)
|
||||||
da8xx_mmcsd0_device.dev.platform_data = config;
|
da8xx_mmcsd0_device.dev.platform_data = config;
|
||||||
return platform_device_register(&da8xx_mmcsd0_device);
|
return platform_device_register(&da8xx_mmcsd0_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct resource da8xx_rtc_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DA8XX_RTC_BASE,
|
||||||
|
.end = DA8XX_RTC_BASE + SZ_4K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
{ /* timer irq */
|
||||||
|
.start = IRQ_DA8XX_RTC,
|
||||||
|
.end = IRQ_DA8XX_RTC,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{ /* alarm irq */
|
||||||
|
.start = IRQ_DA8XX_RTC,
|
||||||
|
.end = IRQ_DA8XX_RTC,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device da8xx_rtc_device = {
|
||||||
|
.name = "omap_rtc",
|
||||||
|
.id = -1,
|
||||||
|
.num_resources = ARRAY_SIZE(da8xx_rtc_resources),
|
||||||
|
.resource = da8xx_rtc_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
int da8xx_register_rtc(void)
|
||||||
|
{
|
||||||
|
/* Unlock the rtc's registers */
|
||||||
|
__raw_writel(0x83e70b13, IO_ADDRESS(DA8XX_RTC_BASE + 0x6c));
|
||||||
|
__raw_writel(0x95a4f1e0, IO_ADDRESS(DA8XX_RTC_BASE + 0x70));
|
||||||
|
|
||||||
|
return platform_device_register(&da8xx_rtc_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource da8xx_cpuidle_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DA8XX_DDR2_CTL_BASE,
|
||||||
|
.end = DA8XX_DDR2_CTL_BASE + SZ_32K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/* DA8XX devices support DDR2 power down */
|
||||||
|
static struct davinci_cpuidle_config da8xx_cpuidle_pdata = {
|
||||||
|
.ddr2_pdown = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
static struct platform_device da8xx_cpuidle_device = {
|
||||||
|
.name = "cpuidle-davinci",
|
||||||
|
.num_resources = ARRAY_SIZE(da8xx_cpuidle_resources),
|
||||||
|
.resource = da8xx_cpuidle_resources,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &da8xx_cpuidle_pdata,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
int __init da8xx_register_cpuidle(void)
|
||||||
|
{
|
||||||
|
return platform_device_register(&da8xx_cpuidle_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,11 @@
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#include <asm/mach/map.h>
|
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <mach/i2c.h>
|
#include <mach/i2c.h>
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
|
@ -177,7 +173,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config)
|
||||||
mmcsd1_resources[0].start = DM365_MMCSD1_BASE;
|
mmcsd1_resources[0].start = DM365_MMCSD1_BASE;
|
||||||
mmcsd1_resources[0].end = DM365_MMCSD1_BASE +
|
mmcsd1_resources[0].end = DM365_MMCSD1_BASE +
|
||||||
SZ_4K - 1;
|
SZ_4K - 1;
|
||||||
mmcsd0_resources[2].start = IRQ_DM365_SDIOINT1;
|
mmcsd1_resources[2].start = IRQ_DM365_SDIOINT1;
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* is licensed "as is" without any warranty of any kind, whether express
|
* is licensed "as is" without any warranty of any kind, whether express
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
|
@ -21,7 +20,6 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/dm355.h>
|
#include <mach/dm355.h>
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/edma.h>
|
#include <mach/edma.h>
|
||||||
#include <mach/psc.h>
|
#include <mach/psc.h>
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
|
@ -23,7 +22,6 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/dm365.h>
|
#include <mach/dm365.h>
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/edma.h>
|
#include <mach/edma.h>
|
||||||
#include <mach/psc.h>
|
#include <mach/psc.h>
|
||||||
|
@ -32,6 +30,8 @@
|
||||||
#include <mach/time.h>
|
#include <mach/time.h>
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
|
#include <mach/asp.h>
|
||||||
|
#include <mach/keyscan.h>
|
||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
|
@ -369,7 +369,7 @@ static struct clk timer3_clk = {
|
||||||
|
|
||||||
static struct clk usb_clk = {
|
static struct clk usb_clk = {
|
||||||
.name = "usb",
|
.name = "usb",
|
||||||
.parent = &pll2_sysclk1,
|
.parent = &pll1_aux_clk,
|
||||||
.lpsc = DAVINCI_LPSC_USB,
|
.lpsc = DAVINCI_LPSC_USB,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -456,7 +456,7 @@ static struct davinci_clk dm365_clks[] = {
|
||||||
CLK(NULL, "usb", &usb_clk),
|
CLK(NULL, "usb", &usb_clk),
|
||||||
CLK("davinci_emac.1", NULL, &emac_clk),
|
CLK("davinci_emac.1", NULL, &emac_clk),
|
||||||
CLK("voice_codec", NULL, &voicecodec_clk),
|
CLK("voice_codec", NULL, &voicecodec_clk),
|
||||||
CLK("soc-audio.0", NULL, &asp0_clk),
|
CLK("davinci-asp.0", NULL, &asp0_clk),
|
||||||
CLK(NULL, "rto", &rto_clk),
|
CLK(NULL, "rto", &rto_clk),
|
||||||
CLK(NULL, "mjcp", &mjcp_clk),
|
CLK(NULL, "mjcp", &mjcp_clk),
|
||||||
CLK(NULL, NULL, NULL),
|
CLK(NULL, NULL, NULL),
|
||||||
|
@ -531,7 +531,7 @@ MUX_CFG(DM365, EMAC_CRS, 3, 2, 1, 1, false)
|
||||||
MUX_CFG(DM365, EMAC_MDIO, 3, 1, 1, 1, false)
|
MUX_CFG(DM365, EMAC_MDIO, 3, 1, 1, 1, false)
|
||||||
MUX_CFG(DM365, EMAC_MDCLK, 3, 0, 1, 1, false)
|
MUX_CFG(DM365, EMAC_MDCLK, 3, 0, 1, 1, false)
|
||||||
|
|
||||||
MUX_CFG(DM365, KEYPAD, 2, 0, 0x3f, 0x3f, false)
|
MUX_CFG(DM365, KEYSCAN, 2, 0, 0x3f, 0x3f, false)
|
||||||
|
|
||||||
MUX_CFG(DM365, PWM0, 1, 0, 3, 2, false)
|
MUX_CFG(DM365, PWM0, 1, 0, 3, 2, false)
|
||||||
MUX_CFG(DM365, PWM0_G23, 3, 26, 3, 3, false)
|
MUX_CFG(DM365, PWM0_G23, 3, 26, 3, 3, false)
|
||||||
|
@ -603,6 +603,9 @@ INT_CFG(DM365, INT_IMX1_ENABLE, 24, 1, 1, false)
|
||||||
INT_CFG(DM365, INT_IMX1_DISABLE, 24, 1, 0, false)
|
INT_CFG(DM365, INT_IMX1_DISABLE, 24, 1, 0, false)
|
||||||
INT_CFG(DM365, INT_NSF_ENABLE, 25, 1, 1, false)
|
INT_CFG(DM365, INT_NSF_ENABLE, 25, 1, 1, false)
|
||||||
INT_CFG(DM365, INT_NSF_DISABLE, 25, 1, 0, false)
|
INT_CFG(DM365, INT_NSF_DISABLE, 25, 1, 0, false)
|
||||||
|
|
||||||
|
EVT_CFG(DM365, EVT2_ASP_TX, 0, 1, 0, false)
|
||||||
|
EVT_CFG(DM365, EVT3_ASP_RX, 1, 1, 0, false)
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -696,6 +699,7 @@ static u8 dm365_default_priorities[DAVINCI_N_AINTC_IRQ] = {
|
||||||
[IRQ_I2C] = 3,
|
[IRQ_I2C] = 3,
|
||||||
[IRQ_UARTINT0] = 3,
|
[IRQ_UARTINT0] = 3,
|
||||||
[IRQ_UARTINT1] = 3,
|
[IRQ_UARTINT1] = 3,
|
||||||
|
[IRQ_DM365_RTCINT] = 3,
|
||||||
[IRQ_DM365_SPIINT0_0] = 3,
|
[IRQ_DM365_SPIINT0_0] = 3,
|
||||||
[IRQ_DM365_SPIINT3_0] = 3,
|
[IRQ_DM365_SPIINT3_0] = 3,
|
||||||
[IRQ_DM365_GPIO0] = 3,
|
[IRQ_DM365_GPIO0] = 3,
|
||||||
|
@ -806,6 +810,50 @@ static struct platform_device dm365_edma_device = {
|
||||||
.resource = edma_resources,
|
.resource = edma_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct resource dm365_asp_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DAVINCI_DM365_ASP0_BASE,
|
||||||
|
.end = DAVINCI_DM365_ASP0_BASE + SZ_8K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = DAVINCI_DMA_ASP0_TX,
|
||||||
|
.end = DAVINCI_DMA_ASP0_TX,
|
||||||
|
.flags = IORESOURCE_DMA,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = DAVINCI_DMA_ASP0_RX,
|
||||||
|
.end = DAVINCI_DMA_ASP0_RX,
|
||||||
|
.flags = IORESOURCE_DMA,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device dm365_asp_device = {
|
||||||
|
.name = "davinci-asp",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(dm365_asp_resources),
|
||||||
|
.resource = dm365_asp_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource dm365_rtc_resources[] = {
|
||||||
|
{
|
||||||
|
.start = DM365_RTC_BASE,
|
||||||
|
.end = DM365_RTC_BASE + SZ_1K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = IRQ_DM365_RTCINT,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device dm365_rtc_device = {
|
||||||
|
.name = "rtc_davinci",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(dm365_rtc_resources),
|
||||||
|
.resource = dm365_rtc_resources,
|
||||||
|
};
|
||||||
|
|
||||||
static struct map_desc dm365_io_desc[] = {
|
static struct map_desc dm365_io_desc[] = {
|
||||||
{
|
{
|
||||||
.virtual = IO_VIRT,
|
.virtual = IO_VIRT,
|
||||||
|
@ -822,6 +870,28 @@ static struct map_desc dm365_io_desc[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct resource dm365_ks_resources[] = {
|
||||||
|
{
|
||||||
|
/* registers */
|
||||||
|
.start = DM365_KEYSCAN_BASE,
|
||||||
|
.end = DM365_KEYSCAN_BASE + SZ_1K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
/* interrupt */
|
||||||
|
.start = IRQ_DM365_KEYINT,
|
||||||
|
.end = IRQ_DM365_KEYINT,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device dm365_ks_device = {
|
||||||
|
.name = "davinci_keyscan",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(dm365_ks_resources),
|
||||||
|
.resource = dm365_ks_resources,
|
||||||
|
};
|
||||||
|
|
||||||
/* Contents of JTAG ID register used to identify exact cpu type */
|
/* Contents of JTAG ID register used to identify exact cpu type */
|
||||||
static struct davinci_id dm365_ids[] = {
|
static struct davinci_id dm365_ids[] = {
|
||||||
{
|
{
|
||||||
|
@ -907,6 +977,33 @@ static struct davinci_soc_info davinci_soc_info_dm365 = {
|
||||||
.sram_len = SZ_32K,
|
.sram_len = SZ_32K,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void __init dm365_init_asp(struct snd_platform_data *pdata)
|
||||||
|
{
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_BDX);
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_X);
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_BFSX);
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_BDR);
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_R);
|
||||||
|
davinci_cfg_reg(DM365_MCBSP0_BFSR);
|
||||||
|
davinci_cfg_reg(DM365_EVT2_ASP_TX);
|
||||||
|
davinci_cfg_reg(DM365_EVT3_ASP_RX);
|
||||||
|
dm365_asp_device.dev.platform_data = pdata;
|
||||||
|
platform_device_register(&dm365_asp_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
void __init dm365_init_ks(struct davinci_ks_platform_data *pdata)
|
||||||
|
{
|
||||||
|
davinci_cfg_reg(DM365_KEYSCAN);
|
||||||
|
dm365_ks_device.dev.platform_data = pdata;
|
||||||
|
platform_device_register(&dm365_ks_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
void __init dm365_init_rtc(void)
|
||||||
|
{
|
||||||
|
davinci_cfg_reg(DM365_INT_PRTCSS);
|
||||||
|
platform_device_register(&dm365_rtc_device);
|
||||||
|
}
|
||||||
|
|
||||||
void __init dm365_init(void)
|
void __init dm365_init(void)
|
||||||
{
|
{
|
||||||
davinci_common_init(&davinci_soc_info_dm365);
|
davinci_common_init(&davinci_soc_info_dm365);
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* is licensed "as is" without any warranty of any kind, whether express
|
* is licensed "as is" without any warranty of any kind, whether express
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/dm644x.h>
|
#include <mach/dm644x.h>
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/edma.h>
|
#include <mach/edma.h>
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
|
@ -370,6 +368,11 @@ MUX_CFG(DM644X, ATAEN_DISABLE, 0, 17, 1, 0, true)
|
||||||
MUX_CFG(DM644X, HPIEN_DISABLE, 0, 29, 1, 0, true)
|
MUX_CFG(DM644X, HPIEN_DISABLE, 0, 29, 1, 0, true)
|
||||||
|
|
||||||
MUX_CFG(DM644X, AEAW, 0, 0, 31, 31, true)
|
MUX_CFG(DM644X, AEAW, 0, 0, 31, 31, true)
|
||||||
|
MUX_CFG(DM644X, AEAW0, 0, 0, 1, 0, true)
|
||||||
|
MUX_CFG(DM644X, AEAW1, 0, 1, 1, 0, true)
|
||||||
|
MUX_CFG(DM644X, AEAW2, 0, 2, 1, 0, true)
|
||||||
|
MUX_CFG(DM644X, AEAW3, 0, 3, 1, 0, true)
|
||||||
|
MUX_CFG(DM644X, AEAW4, 0, 4, 1, 0, true)
|
||||||
|
|
||||||
MUX_CFG(DM644X, MSTK, 1, 9, 1, 0, false)
|
MUX_CFG(DM644X, MSTK, 1, 9, 1, 0, false)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* is licensed "as is" without any warranty of any kind, whether express
|
* is licensed "as is" without any warranty of any kind, whether express
|
||||||
* or implied.
|
* or implied.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/dm646x.h>
|
#include <mach/dm646x.h>
|
||||||
#include <mach/clock.h>
|
|
||||||
#include <mach/cputype.h>
|
#include <mach/cputype.h>
|
||||||
#include <mach/edma.h>
|
#include <mach/edma.h>
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
|
@ -789,7 +787,14 @@ static struct davinci_id dm646x_ids[] = {
|
||||||
.part_no = 0xb770,
|
.part_no = 0xb770,
|
||||||
.manufacturer = 0x017,
|
.manufacturer = 0x017,
|
||||||
.cpu_id = DAVINCI_CPU_ID_DM6467,
|
.cpu_id = DAVINCI_CPU_ID_DM6467,
|
||||||
.name = "dm6467",
|
.name = "dm6467_rev1.x",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.variant = 0x1,
|
||||||
|
.part_no = 0xb770,
|
||||||
|
.manufacturer = 0x017,
|
||||||
|
.cpu_id = DAVINCI_CPU_ID_DM6467,
|
||||||
|
.name = "dm6467_rev3.x",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -18,22 +18,13 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/sched.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/spinlock.h>
|
|
||||||
#include <linux/compiler.h>
|
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#include <mach/cputype.h>
|
|
||||||
#include <mach/memory.h>
|
|
||||||
#include <mach/hardware.h>
|
|
||||||
#include <mach/irqs.h>
|
|
||||||
#include <mach/edma.h>
|
#include <mach/edma.h>
|
||||||
#include <mach/mux.h>
|
|
||||||
|
|
||||||
|
|
||||||
/* Offsets matching "struct edmacc_param" */
|
/* Offsets matching "struct edmacc_param" */
|
||||||
#define PARM_OPT 0x00
|
#define PARM_OPT 0x00
|
||||||
|
@ -509,43 +500,59 @@ static irqreturn_t dma_tc1err_handler(int irq, void *data)
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int reserve_contiguous_params(int ctlr, unsigned int id,
|
static int reserve_contiguous_slots(int ctlr, unsigned int id,
|
||||||
unsigned int num_params,
|
unsigned int num_slots,
|
||||||
unsigned int start_param)
|
unsigned int start_slot)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
unsigned int count = num_params;
|
unsigned int count = num_slots;
|
||||||
|
int stop_slot = start_slot;
|
||||||
|
DECLARE_BITMAP(tmp_inuse, EDMA_MAX_PARAMENTRY);
|
||||||
|
|
||||||
for (i = start_param; i < edma_info[ctlr]->num_slots; ++i) {
|
for (i = start_slot; i < edma_info[ctlr]->num_slots; ++i) {
|
||||||
j = EDMA_CHAN_SLOT(i);
|
j = EDMA_CHAN_SLOT(i);
|
||||||
if (!test_and_set_bit(j, edma_info[ctlr]->edma_inuse))
|
if (!test_and_set_bit(j, edma_info[ctlr]->edma_inuse)) {
|
||||||
|
/* Record our current beginning slot */
|
||||||
|
if (count == num_slots)
|
||||||
|
stop_slot = i;
|
||||||
|
|
||||||
count--;
|
count--;
|
||||||
|
set_bit(j, tmp_inuse);
|
||||||
|
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
break;
|
break;
|
||||||
else if (id == EDMA_CONT_PARAMS_FIXED_EXACT)
|
} else {
|
||||||
break;
|
clear_bit(j, tmp_inuse);
|
||||||
else
|
|
||||||
count = num_params;
|
if (id == EDMA_CONT_PARAMS_FIXED_EXACT) {
|
||||||
|
stop_slot = i;
|
||||||
|
break;
|
||||||
|
} else
|
||||||
|
count = num_slots;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We have to clear any bits that we set
|
* We have to clear any bits that we set
|
||||||
* if we run out parameter RAMs, i.e we do find a set
|
* if we run out parameter RAM slots, i.e we do find a set
|
||||||
* of contiguous parameter RAMs but do not find the exact number
|
* of contiguous parameter RAM slots but do not find the exact number
|
||||||
* requested as we may reach the total number of parameter RAMs
|
* requested as we may reach the total number of parameter RAM slots
|
||||||
*/
|
*/
|
||||||
if (count) {
|
if (i == edma_info[ctlr]->num_slots)
|
||||||
for (j = i - num_params + count + 1; j <= i ; ++j)
|
stop_slot = i;
|
||||||
|
|
||||||
|
for (j = start_slot; j < stop_slot; j++)
|
||||||
|
if (test_bit(j, tmp_inuse))
|
||||||
clear_bit(j, edma_info[ctlr]->edma_inuse);
|
clear_bit(j, edma_info[ctlr]->edma_inuse);
|
||||||
|
|
||||||
|
if (count)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
|
||||||
|
|
||||||
for (j = i - num_params + 1; j <= i; ++j)
|
for (j = i - num_slots + 1; j <= i; ++j)
|
||||||
memcpy_toio(edmacc_regs_base[ctlr] + PARM_OFFSET(j),
|
memcpy_toio(edmacc_regs_base[ctlr] + PARM_OFFSET(j),
|
||||||
&dummy_paramset, PARM_SIZE);
|
&dummy_paramset, PARM_SIZE);
|
||||||
|
|
||||||
return EDMA_CTLR_CHAN(ctlr, i - num_params + 1);
|
return EDMA_CTLR_CHAN(ctlr, i - num_slots + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------*/
|
||||||
|
@ -743,26 +750,27 @@ EXPORT_SYMBOL(edma_free_slot);
|
||||||
/**
|
/**
|
||||||
* edma_alloc_cont_slots- alloc contiguous parameter RAM slots
|
* edma_alloc_cont_slots- alloc contiguous parameter RAM slots
|
||||||
* The API will return the starting point of a set of
|
* The API will return the starting point of a set of
|
||||||
* contiguous PARAM's that have been requested
|
* contiguous parameter RAM slots that have been requested
|
||||||
*
|
*
|
||||||
* @id: can only be EDMA_CONT_PARAMS_ANY or EDMA_CONT_PARAMS_FIXED_EXACT
|
* @id: can only be EDMA_CONT_PARAMS_ANY or EDMA_CONT_PARAMS_FIXED_EXACT
|
||||||
* or EDMA_CONT_PARAMS_FIXED_NOT_EXACT
|
* or EDMA_CONT_PARAMS_FIXED_NOT_EXACT
|
||||||
* @count: number of contiguous Paramter RAM's
|
* @count: number of contiguous Paramter RAM slots
|
||||||
* @param - the start value of Parameter RAM that should be passed if id
|
* @slot - the start value of Parameter RAM slot that should be passed if id
|
||||||
* is EDMA_CONT_PARAMS_FIXED_EXACT or EDMA_CONT_PARAMS_FIXED_NOT_EXACT
|
* is EDMA_CONT_PARAMS_FIXED_EXACT or EDMA_CONT_PARAMS_FIXED_NOT_EXACT
|
||||||
*
|
*
|
||||||
* If id is EDMA_CONT_PARAMS_ANY then the API starts looking for a set of
|
* If id is EDMA_CONT_PARAMS_ANY then the API starts looking for a set of
|
||||||
* contiguous Parameter RAMs from parameter RAM 64 in the case of DaVinci SOCs
|
* contiguous Parameter RAM slots from parameter RAM 64 in the case of
|
||||||
* and 32 in the case of Primus
|
* DaVinci SOCs and 32 in the case of DA8xx SOCs.
|
||||||
*
|
*
|
||||||
* If id is EDMA_CONT_PARAMS_FIXED_EXACT then the API starts looking for a
|
* If id is EDMA_CONT_PARAMS_FIXED_EXACT then the API starts looking for a
|
||||||
* set of contiguous parameter RAMs from the "param" that is passed as an
|
* set of contiguous parameter RAM slots from the "slot" that is passed as an
|
||||||
* argument to the API.
|
* argument to the API.
|
||||||
*
|
*
|
||||||
* If id is EDMA_CONT_PARAMS_FIXED_NOT_EXACT then the API initially tries
|
* If id is EDMA_CONT_PARAMS_FIXED_NOT_EXACT then the API initially tries
|
||||||
* starts looking for a set of contiguous parameter RAMs from the "param"
|
* starts looking for a set of contiguous parameter RAMs from the "slot"
|
||||||
* that is passed as an argument to the API. On failure the API will try to
|
* that is passed as an argument to the API. On failure the API will try to
|
||||||
* find a set of contiguous Parameter RAMs in the remaining Parameter RAMs
|
* find a set of contiguous Parameter RAM slots from the remaining Parameter
|
||||||
|
* RAM slots
|
||||||
*/
|
*/
|
||||||
int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)
|
int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)
|
||||||
{
|
{
|
||||||
|
@ -771,12 +779,13 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)
|
||||||
* the number of channels and lesser than the total number
|
* the number of channels and lesser than the total number
|
||||||
* of slots
|
* of slots
|
||||||
*/
|
*/
|
||||||
if (slot < edma_info[ctlr]->num_channels ||
|
if ((id != EDMA_CONT_PARAMS_ANY) &&
|
||||||
slot >= edma_info[ctlr]->num_slots)
|
(slot < edma_info[ctlr]->num_channels ||
|
||||||
|
slot >= edma_info[ctlr]->num_slots))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The number of parameter RAMs requested cannot be less than 1
|
* The number of parameter RAM slots requested cannot be less than 1
|
||||||
* and cannot be more than the number of slots minus the number of
|
* and cannot be more than the number of slots minus the number of
|
||||||
* channels
|
* channels
|
||||||
*/
|
*/
|
||||||
|
@ -786,11 +795,11 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case EDMA_CONT_PARAMS_ANY:
|
case EDMA_CONT_PARAMS_ANY:
|
||||||
return reserve_contiguous_params(ctlr, id, count,
|
return reserve_contiguous_slots(ctlr, id, count,
|
||||||
edma_info[ctlr]->num_channels);
|
edma_info[ctlr]->num_channels);
|
||||||
case EDMA_CONT_PARAMS_FIXED_EXACT:
|
case EDMA_CONT_PARAMS_FIXED_EXACT:
|
||||||
case EDMA_CONT_PARAMS_FIXED_NOT_EXACT:
|
case EDMA_CONT_PARAMS_FIXED_NOT_EXACT:
|
||||||
return reserve_contiguous_params(ctlr, id, count, slot);
|
return reserve_contiguous_slots(ctlr, id, count, slot);
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -799,21 +808,21 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)
|
||||||
EXPORT_SYMBOL(edma_alloc_cont_slots);
|
EXPORT_SYMBOL(edma_alloc_cont_slots);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* edma_free_cont_slots - deallocate DMA parameter RAMs
|
* edma_free_cont_slots - deallocate DMA parameter RAM slots
|
||||||
* @slot: first parameter RAM of a set of parameter RAMs to be freed
|
* @slot: first parameter RAM of a set of parameter RAM slots to be freed
|
||||||
* @count: the number of contiguous parameter RAMs to be freed
|
* @count: the number of contiguous parameter RAM slots to be freed
|
||||||
*
|
*
|
||||||
* This deallocates the parameter RAM slots allocated by
|
* This deallocates the parameter RAM slots allocated by
|
||||||
* edma_alloc_cont_slots.
|
* edma_alloc_cont_slots.
|
||||||
* Callers/applications need to keep track of sets of contiguous
|
* Callers/applications need to keep track of sets of contiguous
|
||||||
* parameter RAMs that have been allocated using the edma_alloc_cont_slots
|
* parameter RAM slots that have been allocated using the edma_alloc_cont_slots
|
||||||
* API.
|
* API.
|
||||||
* Callers are responsible for ensuring the slots are inactive, and will
|
* Callers are responsible for ensuring the slots are inactive, and will
|
||||||
* not be activated.
|
* not be activated.
|
||||||
*/
|
*/
|
||||||
int edma_free_cont_slots(unsigned slot, int count)
|
int edma_free_cont_slots(unsigned slot, int count)
|
||||||
{
|
{
|
||||||
unsigned ctlr;
|
unsigned ctlr, slot_to_free;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ctlr = EDMA_CTLR(slot);
|
ctlr = EDMA_CTLR(slot);
|
||||||
|
@ -826,11 +835,11 @@ int edma_free_cont_slots(unsigned slot, int count)
|
||||||
|
|
||||||
for (i = slot; i < slot + count; ++i) {
|
for (i = slot; i < slot + count; ++i) {
|
||||||
ctlr = EDMA_CTLR(i);
|
ctlr = EDMA_CTLR(i);
|
||||||
slot = EDMA_CHAN_SLOT(i);
|
slot_to_free = EDMA_CHAN_SLOT(i);
|
||||||
|
|
||||||
memcpy_toio(edmacc_regs_base[ctlr] + PARM_OFFSET(slot),
|
memcpy_toio(edmacc_regs_base[ctlr] + PARM_OFFSET(slot_to_free),
|
||||||
&dummy_paramset, PARM_SIZE);
|
&dummy_paramset, PARM_SIZE);
|
||||||
clear_bit(slot, edma_info[ctlr]->edma_inuse);
|
clear_bit(slot_to_free, edma_info[ctlr]->edma_inuse);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -12,23 +12,14 @@
|
||||||
|
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/list.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/irq.h>
|
|
||||||
#include <linux/bitops.h>
|
|
||||||
|
|
||||||
#include <mach/cputype.h>
|
|
||||||
#include <mach/irqs.h>
|
|
||||||
#include <mach/hardware.h>
|
|
||||||
#include <mach/common.h>
|
|
||||||
#include <mach/gpio.h>
|
#include <mach/gpio.h>
|
||||||
|
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(gpio_lock);
|
static DEFINE_SPINLOCK(gpio_lock);
|
||||||
|
|
||||||
struct davinci_gpio {
|
struct davinci_gpio {
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
#define DAVINCI_ASP0_BASE 0x01E02000
|
#define DAVINCI_ASP0_BASE 0x01E02000
|
||||||
#define DAVINCI_ASP1_BASE 0x01E04000
|
#define DAVINCI_ASP1_BASE 0x01E04000
|
||||||
|
|
||||||
|
/* Bases of dm365 register banks */
|
||||||
|
#define DAVINCI_DM365_ASP0_BASE 0x01D02000
|
||||||
|
|
||||||
/* Bases of dm646x register banks */
|
/* Bases of dm646x register banks */
|
||||||
#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
|
#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
|
||||||
#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
|
#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
|
||||||
|
|
|
@ -20,12 +20,6 @@ extern void davinci_irq_init(void);
|
||||||
extern void __iomem *davinci_intc_base;
|
extern void __iomem *davinci_intc_base;
|
||||||
extern int davinci_intc_type;
|
extern int davinci_intc_type;
|
||||||
|
|
||||||
/* parameters describe VBUS sourcing for host mode */
|
|
||||||
extern void setup_usb(unsigned mA, unsigned potpgt_msec);
|
|
||||||
|
|
||||||
/* parameters describe VBUS sourcing for host mode */
|
|
||||||
extern void setup_usb(unsigned mA, unsigned potpgt_msec);
|
|
||||||
|
|
||||||
struct davinci_timer_instance {
|
struct davinci_timer_instance {
|
||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
u32 bottom_irq;
|
u32 bottom_irq;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue