[CPUINFO] Clean up for strcpy

Replaced strcpy with strncpy with appropriate to help prevent memory
leaks.

Signed-off-by: Gilberto Rodriguez <gilrod@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[CPUINFO][AM335X] Update max cpu speed

Instead of matching specific bitfield values against the EFUSE_SMA
register, the max cpu speed is calculated by comparing individual
bits 9-4 of the EFUSE_SMA register for silicon revision 2.X, which
have been defined. Silicon revision 1.0 has max speed set as the
lowest supported speed, since it cannot be determined.

Signed-off-by: Gilberto Rodriguez <gilrod@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[CPUINFO][AM335X] Add support for AM335X SoC

AM335X is now supported on cpuinfo. This required the ability to
differentiate between AM335X and OMAP chips, which was solved by
reading the machine file of soc0. Package type was determined through
the EFUSE_SMA register (silicon revisions 2.0 and 2.1). For silicon
revision 1.0, package type is left as unknown. Silicon revision was
determined by DEVICE_ID register, and chip type was determined by
DEV_FEATURE register.

There is a small comment on the AM335X DIEID in the cpu get DIEID
function. The AM335X DIEID is TI proprietary information and cannot be
displayed.

While at it, add the necessary components for the project to build
with the AM335X files and file paths.

Signed-off-by: Gilberto Rodriguez <gilrod@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[LIB] Update CPU information print

In the AM335X TRM, there is no indication for the actual performance
of the silicon. The package was used, since the package type is
available in the EFUSE register. The print will print the silicon
performance (unknown if not available) and package type (AM335X only).

Signed-off-by: Gilberto Rodriguez <gilrod@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>