From 4a63ac7c00a6d560b1429315fbeba3dced5376f8 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Wed, 21 Oct 2009 18:53:41 +0000 Subject: Add iPod Nano 2G µsec timer, and use it in the clickwheel driver. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23309 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/s5l8700.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/s5l8700.h b/firmware/export/s5l8700.h index 70c601a7b3..853b672500 100644 --- a/firmware/export/s5l8700.h +++ b/firmware/export/s5l8700.h @@ -304,6 +304,8 @@ #define TDDATA1 (*(REG32_PTR_T)(0x3C70006C)) /* Data1 Register */ #define TDPRE (*(REG32_PTR_T)(0x3C700070)) /* Pre-scale register */ #define TDCNT (*(REG32_PTR_T)(0x3C700074)) /* Counter register */ +#define USEC_TIMER (((*(REG32_PTR_T)(0x3C700080) << 32) \ + | *(REG32_PTR_T)(0x3C700084)) * 5) /* 64bit 5usec timer */ /* 12. NAND FLASH CONTROLER */ #if CONFIG_CPU==S5L8701 -- cgit v1.2.3