-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers/timer/hpet.c: migrate to devicetree #19091
Conversation
This driver was still using CONFIG_* values to determine its address, IRQ, etc. Add a binding for an "intel,hpet" device and migrate this driver to devicetree. Fixes: #18657 Signed-off-by: Charles E. Youse <charles.youse@intel.com>
Whoops. I guess I need to make x86_64 work with devicetree. |
x86_64 doesn't use devicetree, so put some hand-coded definitions into arch.h to allow it to use the DT-enabled HPET driver. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uugh, I'd prefer we don't hack in DT_
defines. Can you just ifdef the driver or something?
or even better add dts support for x86_64. Should be pretty trivial to get a simple dts going. |
Which do you prefer? I was trying to AVOID doing it "properly" because x86_64 is being retired. |
If x86_64 is being retired, than I'd say ifdef the driver for now. Will the new intel64 use DTS? |
How is this a better solution than the current one? Why pollute global code when I can merely put the fix in the area affected?
Yes. It already does. |
@galak Do you want to +1 this or should I shelve this until |
when is |
I believe the plan is to pull it once SMP and memory protection are implemented in the Intel64 subarch stuff in x86, so I would think before the 2.1 release. |
This driver was still using CONFIG_* values to determine its address,
IRQ, etc. Add a binding for an "intel,hpet" device and migrate this
driver to devicetree.
Fixes: #18657
Signed-off-by: Charles E. Youse charles.youse@intel.com