HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33687
Change subject: soc/nvidia: Use 'include <stdlib.h>' when appropriate ......................................................................
soc/nvidia: Use 'include <stdlib.h>' when appropriate
Change-Id: I812d468c68b31917da5d406e2fb3b84bc6331b69 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/nvidia/tegra/i2c.c M src/soc/nvidia/tegra124/dp.c M src/soc/nvidia/tegra124/spi.c M src/soc/nvidia/tegra210/addressmap.c M src/soc/nvidia/tegra210/arm_tf.c M src/soc/nvidia/tegra210/dc.c M src/soc/nvidia/tegra210/dp.c M src/soc/nvidia/tegra210/jdi_25x18_display/panel-jdi-lpm102a188a.c M src/soc/nvidia/tegra210/mipi.c M src/soc/nvidia/tegra210/mipi_dsi.c M src/soc/nvidia/tegra210/mmu_operations.c 11 files changed, 15 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/33687/1
diff --git a/src/soc/nvidia/tegra/i2c.c b/src/soc/nvidia/tegra/i2c.c index 9dbfde8..c96ebc2 100644 --- a/src/soc/nvidia/tegra/i2c.c +++ b/src/soc/nvidia/tegra/i2c.c @@ -17,9 +17,9 @@ #include <console/console.h> #include <delay.h> #include <device/i2c_simple.h> -#include <stdlib.h> #include <string.h> #include <soc/addressmap.h> + #include "i2c.h"
static void do_bus_clear(int bus) diff --git a/src/soc/nvidia/tegra124/dp.c b/src/soc/nvidia/tegra124/dp.c index b9fa0ea..102e9df 100644 --- a/src/soc/nvidia/tegra124/dp.c +++ b/src/soc/nvidia/tegra124/dp.c @@ -27,7 +27,7 @@ #include <soc/nvidia/tegra/dc.h> #include <soc/nvidia/tegra/displayport.h> #include <soc/sor.h> -#include <stdlib.h> +#include <stddef.h> #include <string.h>
#include "chip.h" diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c index 45159c2..e0d62d7 100644 --- a/src/soc/nvidia/tegra124/spi.c +++ b/src/soc/nvidia/tegra124/spi.c @@ -26,8 +26,8 @@ #include <soc/spi.h> #include <spi-generic.h> #include <spi_flash.h> +#include <stddef.h> #include <stdint.h> -#include <stdlib.h> #include <symbols.h> #include <timer.h>
diff --git a/src/soc/nvidia/tegra210/addressmap.c b/src/soc/nvidia/tegra210/addressmap.c index 4f11d4e..e5f94c0 100644 --- a/src/soc/nvidia/tegra210/addressmap.c +++ b/src/soc/nvidia/tegra210/addressmap.c @@ -21,7 +21,7 @@ #include <soc/id.h> #include <soc/mc.h> #include <soc/sdram.h> -#include <stdlib.h> +#include <stddef.h> #include <symbols.h> #include <soc/nvidia/tegra/types.h>
diff --git a/src/soc/nvidia/tegra210/arm_tf.c b/src/soc/nvidia/tegra210/arm_tf.c index bd34185..c6f564b 100644 --- a/src/soc/nvidia/tegra210/arm_tf.c +++ b/src/soc/nvidia/tegra210/arm_tf.c @@ -18,7 +18,7 @@ #include <assert.h> #include <soc/addressmap.h> #include <soc/console_uart.h> -#include <stdlib.h> +#include <stddef.h> #include <symbols.h>
typedef struct bl31_plat_params { diff --git a/src/soc/nvidia/tegra210/dc.c b/src/soc/nvidia/tegra210/dc.c index ceffb41..46443cf 100644 --- a/src/soc/nvidia/tegra210/dc.c +++ b/src/soc/nvidia/tegra210/dc.c @@ -12,16 +12,17 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ + #include <console/console.h> #include <device/mmio.h> #include <stdint.h> -#include <stdlib.h> #include <edid.h> #include <device/device.h> #include <soc/nvidia/tegra/dc.h> -#include "chip.h" #include <soc/display.h>
+#include "chip.h" + int dump = 0; unsigned long READL(void *p) { diff --git a/src/soc/nvidia/tegra210/dp.c b/src/soc/nvidia/tegra210/dp.c index b0c0846..a7a931e 100644 --- a/src/soc/nvidia/tegra210/dp.c +++ b/src/soc/nvidia/tegra210/dp.c @@ -20,7 +20,6 @@ #include <device/device.h> #include <device/i2c_simple.h> #include <edid.h> -#include <stdlib.h> #include <string.h> #include <delay.h> #include <soc/addressmap.h> @@ -32,6 +31,7 @@ #include <soc/nvidia/tegra/pwm.h> #include <soc/nvidia/tegra/displayport.h> #include <soc/sor.h> +#include <stddef.h> #include "chip.h"
#define DO_FAST_LINK_TRAINING 0 diff --git a/src/soc/nvidia/tegra210/jdi_25x18_display/panel-jdi-lpm102a188a.c b/src/soc/nvidia/tegra210/jdi_25x18_display/panel-jdi-lpm102a188a.c index a9101b8..f95a819 100644 --- a/src/soc/nvidia/tegra210/jdi_25x18_display/panel-jdi-lpm102a188a.c +++ b/src/soc/nvidia/tegra210/jdi_25x18_display/panel-jdi-lpm102a188a.c @@ -12,18 +12,19 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ + #include <console/console.h> #include <stdint.h> -#include <stdlib.h> #include <delay.h> #include <soc/addressmap.h> #include <soc/clock.h> #include <device/device.h> #include <soc/nvidia/tegra/types.h> -#include "../chip.h" #include <soc/display.h> #include <soc/mipi_dsi.h> #include <soc/tegra_dsi.h> + +#include "../chip.h" #include "panel-jdi-lpm102a188a.h"
struct panel_jdi jdi_data[NUM_DSI]; diff --git a/src/soc/nvidia/tegra210/mipi.c b/src/soc/nvidia/tegra210/mipi.c index f863496..89349a0 100644 --- a/src/soc/nvidia/tegra210/mipi.c +++ b/src/soc/nvidia/tegra210/mipi.c @@ -17,7 +17,6 @@ #include <console/console.h> #include <device/mmio.h> #include <stdint.h> -#include <stdlib.h> #include <delay.h> #include <soc/addressmap.h> #include <soc/clock.h> @@ -26,6 +25,7 @@ #include <soc/display.h> #include <soc/mipi_dsi.h> #include <soc/tegra_dsi.h> + #include "jdi_25x18_display/panel-jdi-lpm102a188a.h"
static unsigned long dsi_pads[] = { diff --git a/src/soc/nvidia/tegra210/mipi_dsi.c b/src/soc/nvidia/tegra210/mipi_dsi.c index 23d9274..db61ce1 100644 --- a/src/soc/nvidia/tegra210/mipi_dsi.c +++ b/src/soc/nvidia/tegra210/mipi_dsi.c @@ -40,8 +40,8 @@ */
#include <console/console.h> +#include <stddef.h> #include <stdint.h> -#include <stdlib.h> #include <string.h> #include <soc/addressmap.h> #include <soc/clock.h> diff --git a/src/soc/nvidia/tegra210/mmu_operations.c b/src/soc/nvidia/tegra210/mmu_operations.c index 9cee6b2..0c620a4 100644 --- a/src/soc/nvidia/tegra210/mmu_operations.c +++ b/src/soc/nvidia/tegra210/mmu_operations.c @@ -17,7 +17,7 @@ #include <assert.h> #include <soc/addressmap.h> #include <soc/mmu_operations.h> -#include <stdlib.h> +#include <stddef.h> #include <stdint.h> #include <symbols.h>