From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Wed, 13 Jul 2011 10:55:48 +0000 Subject: [PATCH] ARM: mach-shmobile: AG5EVM LED TPU platform data prototype Message-Id: <20110713110406.14241.48635.sendpatchset@t400s> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org From: Magnus Damm This patch adds prototype platform data for the DS2 LED on AG5EVM. DS2 is hooked up to PORT247 which apart from a regular GPIO pin also has the pin function TPU3TO1 which means the pin will generate output from channel 1 of TPU3. Because of this channel 1 of TPU3 is added as platform data to the TPU LED driver and clock bindings for the MSTP bit of TPU3 is also added. The PORT247 pin happen to be used to control power to one of the camera sensors on AG5EVM, so this patch is not upstream material and should only be seen as an example of TPU LED driver usage. Not-Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/board-ag5evm.c | 31 +++++++++++++++++++++++++++++++ arch/arm/mach-shmobile/clock-sh73a0.c | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) --- 0001/arch/arm/mach-shmobile/board-ag5evm.c +++ work/arch/arm/mach-shmobile/board-ag5evm.c 2011-07-13 19:56:14.000000000 +0900 @@ -37,6 +37,7 @@ #include #include #include +#include #include