Tested with a 512M and 1GB module on a JSK dev board. Signed-off-by: Jason Cobham <cobham.jason@xxxxxxxxx> --- arch/arm/boards/ccxmx53/board.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/arm/boards/ccxmx53/board.c b/arch/arm/boards/ccxmx53/board.c index 721eb0d..a6d37e2 100644 --- a/arch/arm/boards/ccxmx53/board.c +++ b/arch/arm/boards/ccxmx53/board.c @@ -70,12 +70,9 @@ static void ccwmx53_fec_reset(void) gpio_set_value(ccwmx53_FEC_PHY_RST, 1); } -/* - * Configure this board for 256Mb. The real - * size is determined by the board id read from the IIM module - * and added as ram1. - */ - +/* On these boards, memory information is encoded in the MAC address. + * Print device memory, and option info from lookup table. + * */ static int ccwmx53_devices_init(void) { u8 hwid[6] = {0}; @@ -108,10 +105,7 @@ static int ccwmx53_devices_init(void) } printf("Module Serial : %c%d\n", manloc, ((hwid[2] & 0x3f) << 24) | (hwid[3] << 16) | (hwid[4] << 8) | hwid[5]); printf("Module RAM : %dK\n", (ccwmx53_id->mem_sz)/1024); - if ((ccwmx53_id->mem_sz - SZ_512M) > 0) - { - //arm_add_mem_device("ram1", MX53_CSD0_BASE_ADDR + SZ_512M, (ccwmx53_id->mem_sz)-SZ_512M); - } + } else { return -ENOSYS; } @@ -146,7 +140,7 @@ static int ccxmx53_reg_init(void) client.adapter = adapter; client.addr = addr; - /* Enable 3.3V ext regulator. This is not supported in dt */ + /* Enable 3.3V ext regulator. */ value = 0xfa; if (i2c_write_reg(&client, 0x19, &value, 1) < 0){ printf("****I2C write failed\n"); -- 1.9.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox