summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckkim <changkon12@gmail.com>2014-05-12 10:40:40 +0400
committerckkim <changkon12@gmail.com>2014-05-12 10:40:40 +0400
commitc36aebdd0e906ab555276c3eea7c03cade9d3144 (patch)
tree5fda5a361c8cff2a6be6c4a461adf125c7ca7e60
parent78e686b5e35d1a247ec5770b043e2d2fcb470d3d (diff)
downloadu-boot-c36aebdd0e906ab555276c3eea7c03cade9d3144.tar.xz
mmc EXT_CSD_RST_N_FUNCTION enable
-rw-r--r--drivers/mmc/mmc.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 5fe0a32260..7c56a7411f 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -565,26 +565,11 @@ int mmc_change_freq(struct mmc *mmc)
char man_ID= (mmc->cid[0] >> 24);
unsigned long size = (mmc->capacity/(1024*1024/mmc->read_bl_len));
- if(man_ID == 0x15) { //samsung
- printf("Manufacturer SAMSUNG [ %dMB ]\n",size);
- }
- else if(man_ID == 0x90) {
- printf("Manufacturer HYNIX [ %dMB ] \n", size);
- if(size < 16000) {
- err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_RST_N_FUNCTION, EXT_CSD_RST_N_ENABLED);
- if (err) {
- printf("\n%s[%d] : EXT_CSD_RST_N_FUNCTION Set error....... \n\n",__func__,__LINE__);
- return err;
- }
- }
- }
- else if(man_ID == 0x11) {
- printf("Manufacturer TOSHIBA [ %dMB ]\n",size);
- err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_RST_N_FUNCTION, EXT_CSD_RST_N_ENABLED);
- if(err) {
- printf("\n%s[%d] : EXT_CSD_RST_N_FUNCTION Set error....... \n\n",__func__,__LINE__);
- return err;
- }
+ printf("Manufacture ID 0x%x [ %dMB ] \n",man_ID, size);
+ err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_RST_N_FUNCTION, EXT_CSD_RST_N_ENABLED);
+ if (err) {
+ printf("\n%s[%d] : EXT_CSD_RST_N_FUNCTION Set error....... \n\n",__func__,__LINE__);
+ return err;
}
once = 0;
}