]>
git.proxmox.com Git - mirror_edk2.git/blob - Omap35xxPkg/Library/OmapLib/OmapLib.c
cfea62e6d69180bc86f0425a7c98a3e9c6d603fc
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/DebugLib.h>
11 #include <Library/OmapLib.h>
12 #include <Omap3530/Omap3530.h>
20 case 1: return GPIO1_BASE
;
21 case 2: return GPIO2_BASE
;
22 case 3: return GPIO3_BASE
;
23 case 4: return GPIO4_BASE
;
24 case 5: return GPIO5_BASE
;
25 case 6: return GPIO6_BASE
;
26 default: ASSERT(FALSE
); return 0;
36 case 1: return GPTIMER1_BASE
;
37 case 2: return GPTIMER2_BASE
;
38 case 3: return GPTIMER3_BASE
;
39 case 4: return GPTIMER4_BASE
;
40 case 5: return GPTIMER5_BASE
;
41 case 6: return GPTIMER6_BASE
;
42 case 7: return GPTIMER7_BASE
;
43 case 8: return GPTIMER8_BASE
;
44 case 9: return GPTIMER9_BASE
;
45 case 10: return GPTIMER10_BASE
;
46 case 11: return GPTIMER11_BASE
;
47 case 12: return GPTIMER12_BASE
;
53 InterruptVectorForTimer (
57 if ((Timer
< 1) || (Timer
> 12)) {
71 case 1: return UART1_BASE
;
72 case 2: return UART2_BASE
;
73 case 3: return UART3_BASE
;
74 default: ASSERT(FALSE
); return 0;