I would like to add support for a new hardware. I followed this documentation. I searched through commits to see the recent support added for devices. I got some basic idea how to start but I am having lots of difficulty to proceed further. The most difficult part is writing mach-device.c file. I didn't find any documentation for the functions used in this file. It would be great if someone guide me to the right direction and help me how should I start and what should be the starting point?
ath79: add support for 8devices Carambola2 development board
Specifications:
- Atheros AR9331 (400 MHz)
- 64 MB of RAM (DDR2)
- 16 MB of Flash (SPI)
- 1T1R 2.4 Wlan (AR9331)
- 2x 10/100 Mbps Ethernet
- 3x LEDs, 1x gpio button
- 1x USB 2.0, 5V
- UART over usb, 115200n8
You should just duplicate that (and the possible later commits for the device). If you have deviated from that in your hardware / bootloader design, just modify the hardware definition in DTS accordingly.