> > > > Coming back to hardware, which does not have mask around wdt, how > > > > to implement this feature. > > > > > > Simple - you can't. > > > > > > You can absolutely implement exactly the functionality you have > > > today, with minimal changes to the protocol - it just should not be > > > registered as an implementation of > EFI_WATCHDOG_TIMER_ARCH_PROTOCOL. > > > > I believe, EFI_WATCHDOG_TIMER_ARCH_PROTOCOL is must Are you > > suggesting to EFI_WATCHDOG_TIMER_ARCH_PROTOCOL from > MdeModulePkg and > > hook platform specific code with this. > > Or simply register EFI_WATCHDOG_TIMER_ARCH_PROTOCOL with dummy > functions. > > Are you referring to > MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf?
Yes !! > That is certainly what most of the platforms in edk2-platforms use. > > The EFI_WATCHDOG_TIMER_ARCH_PROTOCOL is used by core code. > > If you want to use your hardware watchdog as part of your platform specific > code, that is absolutely fine and probably a very good idea - but it has > nothing to > do with this protocol. There is nothing forcing you to use the platform- > independent EFI_WATCHDOG_TIMER_ARCH_PROTOCOL for this. Yes, this was idea to use MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf and if needed, install a custom protocol for hardware wdt. And this to be used by platform specific code. > Regards, > > Leif _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel