I previously worked on ARM Specific platform drivers, recently shifted to Intel Atom based. On ARM, it used to have arch/arm/boot/dts/xx.dts
and arch/arm/mach-xx/
for adding platform devices. I am not seeing these files or folders on x86. When I went into arch/x86/...
there is no dts files or platform files.
How can i add my platform device information, if i want to add my platform device into Intel Atom platform? Where can i get the dts files specific to x86(assuming even though dts is not specific any architecture)?
There are two new features that allows you to have one driver for x86 and ARM worlds simultaneously. First is _DSD method in the ACPI which allows the vendor to supply any device properties they need to have the IP works properly. The second part is the unified device properties interface in the Linux kernel (look at drivers/base/property.c). Thus, if your device needs let's say clock-frequency
property you just write in the driver something like this:
u32 clock_freq;
int err;
err = device_property_read_u32(…, &clock_freq);
if (err)
dev_err(…, "A mandatory property not found!\n");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With