5162de08d1
For mx1_defconfig this yields: add/remove: 1/0 grow/shrink: 1/4 up/down: 49/-108 (-59) function old new delta imx1_imx_uart_data - 48 +48 kernel_config_data 7277 7278 +1 imx_add_imx_uart_1irq 132 128 -4 imx_add_imx_uart_3irq 164 156 -8 scb9328_init 96 64 -32 mx1ads_init 220 156 -64 for mx21_defconfig this yields: add/remove: 1/0 grow/shrink: 0/3 up/down: 64/-52 (12) function old new delta imx21_imx_uart_data - 64 +64 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 mx21ads_board_init 220 176 -44 for a random mx25 config this yields: add/remove: 1/0 grow/shrink: 0/5 up/down: 80/-56 (24) function old new delta imx25_imx_uart_data - 80 +80 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 mx25pdk_init 288 272 -16 eukrea_mbimxsd_baseboard_init 272 256 -16 eukrea_cpuimx25_init 252 236 -16 for mx27_defconfig this yields: add/remove: 1/0 grow/shrink: 0/10 up/down: 96/-280 (-184) function old new delta imx27_imx_uart_data - 96 +96 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 pca100_init 560 544 -16 mx27pdk_init 112 96 -16 mx27lite_init 92 76 -16 eukrea_cpuimx27_init 332 316 -16 pcm038_init 388 348 -40 mxt_td60_board_init 320 280 -40 eukrea_mbimx27_baseboard_init 476 436 -40 mx27ads_board_init 368 280 -88 and finally for mx3_defconfig: add/remove: 2/0 grow/shrink: 0/9 up/down: 128/-344 (-216) function old new delta imx31_imx_uart_data - 80 +80 imx35_imx_uart_data - 48 +48 imx_add_imx_uart_1irq 132 128 -4 imx_add_imx_uart_3irq 164 152 -12 mx31moboard_devboard_init 360 344 -16 mx31lite_db_init 176 160 -16 mx31moboard_smartbot_init 384 360 -24 kzm_board_init 232 208 -24 armadillo5x0_init 392 364 -28 mx31lilly_db_init 248 208 -40 mxc_board_init 3760 3580 -180 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2010 Pengutronix
|
|
* Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License version 2 as published by the
|
|
* Free Software Foundation.
|
|
*/
|
|
#include <mach/mx31.h>
|
|
#include <mach/devices-common.h>
|
|
|
|
#define imx31_add_imx_i2c0(pdata) \
|
|
imx_add_imx_i2c(0, MX31_I2C1_BASE_ADDR, SZ_4K, MX31_INT_I2C1, pdata)
|
|
#define imx31_add_imx_i2c1(pdata) \
|
|
imx_add_imx_i2c(1, MX31_I2C2_BASE_ADDR, SZ_4K, MX31_INT_I2C2, pdata)
|
|
#define imx31_add_imx_i2c2(pdata) \
|
|
imx_add_imx_i2c(2, MX31_I2C3_BASE_ADDR, SZ_4K, MX31_INT_I2C3, pdata)
|
|
|
|
extern const struct imx_imx_uart_1irq_data imx31_imx_uart_data[] __initconst;
|
|
#define imx31_add_imx_uart(id, pdata) \
|
|
imx_add_imx_uart_1irq(&imx31_imx_uart_data[id], pdata)
|
|
#define imx31_add_imx_uart0(pdata) imx31_add_imx_uart(0, pdata)
|
|
#define imx31_add_imx_uart1(pdata) imx31_add_imx_uart(1, pdata)
|
|
#define imx31_add_imx_uart2(pdata) imx31_add_imx_uart(2, pdata)
|
|
#define imx31_add_imx_uart3(pdata) imx31_add_imx_uart(3, pdata)
|
|
#define imx31_add_imx_uart4(pdata) imx31_add_imx_uart(4, pdata)
|
|
|
|
#define imx31_add_mxc_nand(pdata) \
|
|
imx_add_mxc_nand_v1(MX31_NFC_BASE_ADDR, MX31_INT_NANDFC, pdata)
|
|
|
|
extern const struct imx_spi_imx_data imx31_cspi_data[] __initconst;
|
|
#define imx31_add_cspi(id, pdata) \
|
|
imx_add_spi_imx(&imx31_cspi_data[id], pdata)
|
|
#define imx31_add_spi_imx0(pdata) imx31_add_cspi(0, pdata)
|
|
#define imx31_add_spi_imx1(pdata) imx31_add_cspi(1, pdata)
|
|
#define imx31_add_spi_imx2(pdata) imx31_add_cspi(2, pdata)
|