script: Add option to filter module and to dump gpio
Add another --module / -m option to generate values only
While iterating over all the pads, skip all the pads which
are not configured for the module specified.
Also, add the checks to avoid MMC configuration in uboot and
restrict the non MMC configuration in kernel.
For debugging purposes, some of the pads (input pads) can be
sampled using the GPIO DATA-IN registers even if the pad is
configured in non GPIO mux mode.
Add a command line option --gpio / -g to dump the script
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Add another --module / -m option to generate values only
While iterating over all the pads, skip all the pads which
are not configured for the module specified.
Also, add the checks to avoid MMC configuration in uboot and
restrict the non MMC configuration in kernel.
For debugging purposes, some of the pads (input pads) can be
sampled using the GPIO DATA-IN registers even if the pad is
configured in non GPIO mux mode.
Add a command line option --gpio / -g to dump the script
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
script: Add support for output format linux and uboot
Add a command line option to select the output format.
Format the pad and delay dump differently based on the format
selected by user.
Along with the padconf and delayconf lists(which are sorted address wise)
maintain a dictonary which has entries grouped for a specific module.
Use padconf in uboot format to generate one big array.
Use per_padconf in linux format to generate DTS entries for each module.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Add a command line option to select the output format.
Format the pad and delay dump differently based on the format
selected by user.
Along with the padconf and delayconf lists(which are sorted address wise)
maintain a dictonary which has entries grouped for a specific module.
Use padconf in uboot format to generate one big array.
Use per_padconf in linux format to generate DTS entries for each module.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
script: Refactoring the logic improved interface
* Remove the config file and the config parser.
* Add command line option parser and add basic options.
* Introduce debug levels controlled by cmd line option.
* Do not dump the generated values on the fly, save and dump later.
* Hooks to generate the data in the required format - kernel/uboot/QNX.
* Rename functions and variable to improve readability.
* Rearranged functions and added comments for better understanding.
* Fixed bugs for handling unused pads and lagacy mode.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* Remove the config file and the config parser.
* Add command line option parser and add basic options.
* Introduce debug levels controlled by cmd line option.
* Do not dump the generated values on the fly, save and dump later.
* Hooks to generate the data in the required format - kernel/uboot/QNX.
* Rename functions and variable to improve readability.
* Rearranged functions and added comments for better understanding.
* Fixed bugs for handling unused pads and lagacy mode.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
README: Add Initial README file
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
config: Set default config options
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
dump: Add GLSDK CTRL CORE regdumps for common use cases
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
PCT XML: Add XML files used in PCT v1.0.6
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
script: Initial version of the IOdelay autogen script
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>