| 94f536fc | 17-Jul-2017 |
Srinivas, Madan <madans@ti.com> |
arm: mach-keystone: Fixes issue with return values in inline assembly
The inline assembly functions in mon.c assume that the caller will check for the return value in r0 according to regular ARM cal
arm: mach-keystone: Fixes issue with return values in inline assembly
The inline assembly functions in mon.c assume that the caller will check for the return value in r0 according to regular ARM calling conventions.
However, this assumption breaks down if the compiler inlines the functions. The caller is then under no obligation to use r0 for the result.
To fix this disconnect, we must explicitly move the return value from the smc/bl call to the variable that the function returns.
Signed-off-by: Madan Srinivas <madans@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| e5e546aa | 16-Jun-2017 |
Cooper Jr., Franklin <fcooper@ti.com> |
ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mas
ARM: k2g: Program DDRPHY_DATX8 registers via mask and value variables
Different K2G evms may need to program the various KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to properly program the register.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| a76a6f3e | 16-Jun-2017 |
Cooper Jr., Franklin <fcooper@ti.com> |
ARM: k2g: Program DDR PHY MR2 register with the default value
K2G GP doesn't require the MR2 register to be programed since the default is good enough. However, newer K2G boards do need to change th
ARM: k2g: Program DDR PHY MR2 register with the default value
K2G GP doesn't require the MR2 register to be programed since the default is good enough. However, newer K2G boards do need to change this register value. Therefore, instead of not writing this register if ran on a K2G board just program the value to be written to match the default/reset value.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| ee3c6532 | 03-May-2017 |
Lokesh Vutla <lokeshvutla@ti.com> |
ARM: keystone2: Add support for getting external clock dynamically
One some keystone2 platforms like K2G ICE, there is an option to switch between 24MHz or 25MHz as sysclk. But the existing driver a
ARM: keystone2: Add support for getting external clock dynamically
One some keystone2 platforms like K2G ICE, there is an option to switch between 24MHz or 25MHz as sysclk. But the existing driver assumes it is always 24MHz. Add support for getting all reference clocks dynamically by reading boot pins.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 5d214065 | 16-Sep-2016 |
Lokesh Vutla <lokeshvutla@ti.com> |
ARM: keystone2: Add support for parsing monitor header
Given that boot monitor image is being generated to a specific target location depending on the SoC and U-boot relies on addr_mon env variable
ARM: keystone2: Add support for parsing monitor header
Given that boot monitor image is being generated to a specific target location depending on the SoC and U-boot relies on addr_mon env variable to be aligned with boot monitor target location. When ever the target address gets updated in boot monitor, it is difficult to sync between u-boot and boot monitor and also there is no way to update user that boot monitor image is updated.
To avoid this problem, boot monitor image is being generated with mkimage header. Adding support in mon_install command for parsing this header.
Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|