linux-010-pru_ena.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. diff -Nur -x '*.S' -x '*.lds' a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c
  2. --- a/arch/arm/mach-omap2/omap_device.c 2014-02-07 00:05:20.000000000 +0100
  3. +++ b/arch/arm/mach-omap2/omap_device.c 2016-01-10 20:05:46.923487984 +0100
  4. @@ -123,8 +123,8 @@
  5. struct omap_device *od;
  6. struct omap_hwmod *oh;
  7. struct device_node *node = pdev->dev.of_node;
  8. - const char *oh_name;
  9. - int oh_cnt, i, ret = 0;
  10. + const char *oh_name, *rst_name;
  11. + int oh_cnt, dstr_cnt, i, ret = 0;
  12. bool device_active = false;
  13. oh_cnt = of_property_count_strings(node, "ti,hwmods");
  14. @@ -176,6 +176,26 @@
  15. pm_runtime_set_active(&pdev->dev);
  16. }
  17. + dstr_cnt =
  18. + of_property_count_strings(node, "ti,deassert-hard-reset");
  19. + if (dstr_cnt > 0) {
  20. + for (i = 0; i < dstr_cnt; i += 2) {
  21. + of_property_read_string_index(
  22. + node, "ti,deassert-hard-reset", i,
  23. + &oh_name);
  24. + of_property_read_string_index(
  25. + node, "ti,deassert-hard-reset", i+1,
  26. + &rst_name);
  27. + oh = omap_hwmod_lookup(oh_name);
  28. + if (!oh) {
  29. + dev_warn(&pdev->dev,
  30. + "Cannot parse deassert property for '%s'\n",
  31. + oh_name);
  32. + break;
  33. + }
  34. + omap_hwmod_deassert_hardreset(oh, rst_name);
  35. + }
  36. + }
  37. odbfd_exit1:
  38. kfree(hwmods);
  39. odbfd_exit:
  40. diff -Nur -x '*.S' -x '*.lds' a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c
  41. --- a/drivers/uio/uio_pruss.c 2016-01-10 22:06:02.731071925 +0100
  42. +++ b/drivers/uio/uio_pruss.c 2016-01-10 22:04:52.011075216 +0100
  43. @@ -182,10 +182,6 @@
  44. "pins are not configured from the driver\n");
  45. else{
  46. count = of_get_child_count(dev->dev.of_node);
  47. - if (!count){
  48. - dev_info(&dev->dev, "No children\n");
  49. - return -ENODEV;
  50. - }
  51. // Run through all children. They have lables for easy reference.
  52. for_each_child_of_node(dev->dev.of_node, child){
  53. enum of_gpio_flags flags;