Skip to content

Commit

Permalink
ArmPlatformPkg/ArmJunoPkg: Move the watchdog generic driver to ArmPkg…
Browse files Browse the repository at this point in the history
…/Drivers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16512 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
ronald-cron-arm authored and oliviermartin committed Dec 12, 2014
1 parent 9520453 commit 0b4d97a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
8 changes: 8 additions & 0 deletions ArmPkg/ArmPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@
gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26|UINT32|0x00000040
gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|27|UINT32|0x00000041

#
# ARM Generic Watchdog
#

gArmTokenSpaceGuid.PcdGenericWatchdogControlBase|0x2A440000|UINT32|0x00000007
gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase|0x2A450000|UINT32|0x00000008
gArmTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum|93|UINT32|0x00000009

#
# ARM Generic Interrupt Controller
#
Expand Down
1 change: 1 addition & 0 deletions ArmPkg/ArmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
ArmPkg/Drivers/ArmGic/ArmGicLib.inf
ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
ArmPkg/Drivers/TimerDxe/TimerDxe.inf

ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <Protocol/WatchdogTimer.h>
#include <Protocol/HardwareInterrupt.h>

#include <Drivers/GenericWatchdog.h>
#include "GenericWatchdog.h"

// The number of 100ns periods (the unit of time passed to these functions)
// in a second
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
EmbeddedPkg/EmbeddedPkg.dec
ArmPkg/ArmPkg.dec
ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg/ArmJunoPkg/ArmJuno.dec

[LibraryClasses]
ArmGenericTimerCounterLib
Expand All @@ -41,10 +40,10 @@
UefiDriverEntryPoint
UefiRuntimeServicesTableLib

[FixedPcd]
gArmJunoTokenSpaceGuid.PcdGenericWatchdogControlBase
gArmJunoTokenSpaceGuid.PcdGenericWatchdogRefreshBase
gArmJunoTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum
[Pcd.common]
gArmTokenSpaceGuid.PcdGenericWatchdogControlBase
gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase
gArmTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum

[Protocols]
gEfiWatchdogTimerArchProtocolGuid
Expand Down
4 changes: 0 additions & 4 deletions ArmPlatformPkg/ArmJunoPkg/ArmJuno.dec
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,5 @@
gArmJunoTokenSpaceGuid = { 0xa1147a20, 0x3144, 0x4f8d, { 0x82, 0x95, 0xb4, 0x83, 0x11, 0xc8, 0xe4, 0xa4 } }

[PcdsFixedAtBuild.common]
gArmJunoTokenSpaceGuid.PcdGenericWatchdogControlBase|0x2A440000|UINT32|0x00000001
gArmJunoTokenSpaceGuid.PcdGenericWatchdogRefreshBase|0x2A450000|UINT32|0x00000002
gArmJunoTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum|93|UINT32|0x00000003

gArmJunoTokenSpaceGuid.PcdSynopsysUsbOhciBaseAddress|0x7FFB0000|UINT32|0x00000004
gArmJunoTokenSpaceGuid.PcdSynopsysUsbEhciBaseAddress|0x7FFC0000|UINT32|0x00000005
2 changes: 1 addition & 1 deletion ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
ArmPkg/Drivers/TimerDxe/TimerDxe.inf
ArmPlatformPkg/ArmJunoPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf

#
# Semi-hosting filesystem
Expand Down
2 changes: 1 addition & 1 deletion ArmPlatformPkg/ArmJunoPkg/ArmJuno.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ READ_LOCK_STATUS = TRUE

INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
INF ArmPlatformPkg/ArmJunoPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
INF ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf

# NOR Flash driver
INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
Expand Down

0 comments on commit 0b4d97a

Please sign in to comment.